[darwinbuild-changes] [790] branches/PR-7765119/testing/darwinup/run-tests.sh
source_changes at macosforge.org
source_changes at macosforge.org
Thu Mar 18 09:15:07 PDT 2010
Revision: 790
http://trac.macosforge.org/projects/darwinbuild/changeset/790
Author: wsiegrist at apple.com
Date: 2010-03-18 09:15:07 -0700 (Thu, 18 Mar 2010)
Log Message:
-----------
Testing coverage for upgrade, verify, files, and dump subcommands. Test coverage for UUID, oldest, and superseded archive specifiers.
Modified Paths:
--------------
branches/PR-7765119/testing/darwinup/run-tests.sh
Modified: branches/PR-7765119/testing/darwinup/run-tests.sh
===================================================================
--- branches/PR-7765119/testing/darwinup/run-tests.sh 2010-03-18 14:55:38 UTC (rev 789)
+++ branches/PR-7765119/testing/darwinup/run-tests.sh 2010-03-18 16:15:07 UTC (rev 790)
@@ -41,6 +41,10 @@
mkdir -p $ORIG
cp -R $DEST/* $ORIG/
+echo "========== TEST: Listing ============="
+sudo -u nobody $DARWINUP list
+$DARWINUP list
+
echo "========== TEST: Trying both 32 and 64 bit =========="
for R in $ROOTS;
do
@@ -85,12 +89,18 @@
$DIFF $ORIG $DEST 2>&1
-echo "========== TEST: Trying all roots at once, uninstall in reverse ==========";
+echo "========== TEST: Trying all roots at once and verifying ==============";
for R in $ROOTS;
do
echo "INFO: Installing $R ...";
$DARWINUP install $PREFIX/$R
done
+
+$DARWINUP verify all
+$DARWINUP files all
+$DARWINUP dump
+
+echo "========== TEST: uninstall in reverse ==========";
for R in $ROOTS;
do
UUID=$($DARWINUP list | head -3 | tail -1 | awk '{print $1}')
@@ -100,7 +110,7 @@
echo "DIFF: diffing original test files to dest (should be no diffs) ..."
$DIFF $ORIG $DEST 2>&1
-echo "========== TEST: Trying all roots at once, uninstall in install order =========="
+echo "========== TEST: Trying all roots at once, uninstall in install order by serial =========="
for R in $ROOTS;
do
echo "INFO: Installing $R ...";
@@ -115,7 +125,7 @@
echo "DIFF: diffing original test files to dest (should be no diffs) ..."
$DIFF $ORIG $DEST 2>&1
-echo "========== TEST: Trying all roots at once, uninstall root2, root3, root =========="
+echo "========== TEST: Trying all roots at once, uninstall root2, root3, root by UUID =========="
for R in $ROOTS;
do
echo "INFO: Installing $R ...";
@@ -123,7 +133,7 @@
done
for R in root2 root3 root;
do
- UUID=$($DARWINUP list | grep $R$ | awk '{print $1}')
+ UUID=$($DARWINUP list | grep $R$ | awk '{print $2}')
echo "INFO: Uninstalling $UUID ...";
$DARWINUP uninstall $UUID
done
@@ -209,7 +219,35 @@
echo "DIFF: diffing original test files to dest (should be no diffs) ..."
$DIFF $ORIG $DEST 2>&1
+echo "========== TEST: Upgrades ============="
+$DARWINUP install $PREFIX/root5
+$DARWINUP upgrade $PREFIX/root5
+$DARWINUP upgrade $PREFIX/root5
+$DARWINUP upgrade $PREFIX/root5
+C=$($DARWINUP list | grep root5 | wc -l | xargs)
+test "$C" == "1"
+$DARWINUP uninstall oldest
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+$DIFF $ORIG $DEST 2>&1
+echo "========== TEST: Superseded ============="
+$DARWINUP install $PREFIX/root5
+$DARWINUP install $PREFIX/root6
+$DARWINUP install $PREFIX/root5
+$DARWINUP install $PREFIX/root2
+$DARWINUP install $PREFIX/root6
+$DARWINUP install $PREFIX/root6
+$DARWINUP install $PREFIX/root5
+$DARWINUP list superseded
+$DARWINUP uninstall superseded
+C=$($DARWINUP list | grep root | wc -l | xargs)
+test "$C" == "2"
+$DARWINUP uninstall oldest
+$DARWINUP uninstall oldest
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+$DIFF $ORIG $DEST 2>&1
+
+
#
# The following are expected failures
#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20100318/c40f1848/attachment.html>
More information about the darwinbuild-changes
mailing list