Date: Fri, 13 Sep 2013 22:22:41 GMT From: mattbw@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r257287 - soc2013/mattbw/tests Message-ID: <201309132222.r8DMMfxA077915@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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}" ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309132222.r8DMMfxA077915>
