Revision
636
Author
wsiegrist@apple.com
Date
2009-11-11 15:43:07 -0800 (Wed, 11 Nov 2009)

Log Message

Add test case for gracefully rolling back a bad install

Modified Paths

Added Paths

Diff

Added: branches/PR-7250612/testing/darwinup/root4.tar.gz


(Binary files differ)
Property changes on: branches/PR-7250612/testing/darwinup/root4.tar.gz ___________________________________________________________________

Added: svn:mime-type

Modified: branches/PR-7250612/testing/darwinup/run-tests.sh (635 => 636)


--- branches/PR-7250612/testing/darwinup/run-tests.sh	2009-11-11 18:25:38 UTC (rev 635)
+++ branches/PR-7250612/testing/darwinup/run-tests.sh	2009-11-11 23:43:07 UTC (rev 636)
@@ -22,6 +22,7 @@
 do
 	tar zxvf $R.tar.gz -C $PREFIX
 done;
+tar zxvf root4.tar.gz -C $PREFIX
 
 mkdir -p $ORIG
 cp -R $DEST/* $ORIG/
@@ -108,6 +109,11 @@
 echo "DIFF: diffing original test files to dest (should be no diffs) ..."
 diff -qru $ORIG $DEST 2>&1 | grep -v \\.DarwinDepot
 
+echo "TEST: Trying a root that will fail due to object change ..."
+darwinup -vv -p $DEST install $PREFIX/root4
+if [ $? -ne 1 ]; then exit 1; fi
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+diff -qru $ORIG $DEST 2>&1 | grep -v \\.DarwinDepot
 
 echo "INFO: Done testing!"