Revision
837
Author
wsiegrist@apple.com
Date
2010-06-11 09:18:54 -0700 (Fri, 11 Jun 2010)

Log Message

Test coverage for multiple renames. Make sure we uninstall all roots used in rename testing.

Modified Paths

Diff

Modified: branches/PR-7872907/testing/darwinup/run-tests.sh (836 => 837)


--- branches/PR-7872907/testing/darwinup/run-tests.sh	2010-06-10 18:13:21 UTC (rev 836)
+++ branches/PR-7872907/testing/darwinup/run-tests.sh	2010-06-11 16:18:54 UTC (rev 837)
@@ -288,10 +288,19 @@
 C=$($DARWINUP files "RENAME2" | wc -l | xargs)
 test "$C" == "17" 
 C=$($DARWINUP verify "RENAME2" | wc -l | xargs)
-test "$C" == "17" 
+test "$C" == "17"
+$DARWINUP rename root6 RENAME3 RENAME3 RENAME4 RENAME4 RENAME5 RENAME5 RENAME6
+C=$($DARWINUP list | grep "root6" | wc -l | xargs)
+test "$C" == "0" 
+C=$($DARWINUP list | grep "RENAME6" | wc -l | xargs)
+test "$C" == "1" 
+C=$($DARWINUP files "RENAME6" | wc -l | xargs)
+test "$C" == "8"
+$DARWINUP uninstall all
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+$DIFF $ORIG $DEST 2>&1
 
 
-
 #
 # The following are expected failures
 #