socsvn commit: r257287 - soc2013/mattbw/tests

mattbw at FreeBSD.org mattbw at FreeBSD.org
Fri Sep 13 22:22:41 UTC 2013


Author: mattbw
Date: Fri Sep 13 22:22:41 2013
New Revision: 257287
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=257287

Log:
  Add file listing check to the install/remove functional test.
  
  Doing this has revealed  that the file list-when-not-installed case no
  longer spits out an error.  I should rectify this.
  

Modified:
  soc2013/mattbw/tests/ftest-install-remove-single.sh

Modified: soc2013/mattbw/tests/ftest-install-remove-single.sh
==============================================================================
--- soc2013/mattbw/tests/ftest-install-remove-single.sh	Fri Sep 13 22:08:12 2013	(r257286)
+++ soc2013/mattbw/tests/ftest-install-remove-single.sh	Fri Sep 13 22:22:41 2013	(r257287)
@@ -35,6 +35,21 @@
 	exit
 fi
 
+# Now check to see if the correct files come up on a file list
+pkcon get-files testpkg > files
+DIFF=`diff -rupN - files << EOF
+Package files
+  /usr/local/testpkgs/testfile
+  /usr/local/testpkgs/testfile2
+EOF
+`
+if [ -n "${DIFF}" ]
+then
+	echo "Test failed: file listing invalid, diff follows:"
+	echo "${DIFF}"
+	exit
+fi
+
 # It should come up as available...
 RESOLVE=`pkcon resolve --filter "~installed" testpkg | grep "Available.*"`
 if [ -n "${RESOLVE}" ]


More information about the svn-soc-all mailing list