Revision: 495 http://trac.macosforge.org/projects/darwinbuild/changeset/495 Author: wsiegrist@apple.com Date: 2009-03-25 13:53:30 -0700 (Wed, 25 Mar 2009) Log Message: ----------- Adding a simple set of tests for darwinup Added Paths: ----------- branches/PR-6722857/testing/ branches/PR-6722857/testing/darwinup/ branches/PR-6722857/testing/darwinup/dest.tar.gz branches/PR-6722857/testing/darwinup/root.tar.gz branches/PR-6722857/testing/darwinup/run-tests.sh Added: branches/PR-6722857/testing/darwinup/dest.tar.gz =================================================================== (Binary files differ) Property changes on: branches/PR-6722857/testing/darwinup/dest.tar.gz ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/PR-6722857/testing/darwinup/root.tar.gz =================================================================== (Binary files differ) Property changes on: branches/PR-6722857/testing/darwinup/root.tar.gz ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: branches/PR-6722857/testing/darwinup/run-tests.sh =================================================================== --- branches/PR-6722857/testing/darwinup/run-tests.sh (rev 0) +++ branches/PR-6722857/testing/darwinup/run-tests.sh 2009-03-25 20:53:30 UTC (rev 495) @@ -0,0 +1,42 @@ +#!/bin/bash + +# +# Run tests on darwinup +# + +PREFIX=/tmp/testing/darwinup +ORIG=$PREFIX/orig +DEST=$PREFIX/dest +ROOT=$PREFIX/root +DESTTAR=dest.tar.gz +ROOTTAR=root.tar.gz + +echo "INFO: Cleaning up testing area ..." +rm -rf $PREFIX +mkdir -p $PREFIX + +echo "INFO: Untarring the test files ..." +tar zxvf $DESTTAR -C $PREFIX +tar zxvf $ROOTTAR -C $PREFIX + +mkdir -p $ORIG +cp -R $DEST/* $ORIG/ + +echo "INFO: Installing test root ..." +darwinup -p $DEST install $ROOT + +echo "DIFF: diffing root and dest files (should be no diffs) ..." +diff -qru $ROOT $DEST 2>&1 | grep -v \\.DarwinDepot + +echo "INFO: Determining the UUID ..." +UUID=$(darwinup -p $DEST list | tail -1 | awk '{print $1}') +echo "UUID=$UUID" + +echo "INFO: Uninstalling test root ..." +darwinup -p $DEST uninstall $UUID + +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!" + Property changes on: branches/PR-6722857/testing/darwinup/run-tests.sh ___________________________________________________________________ Added: svn:executable + *
participants (1)
-
source_changes@macosforge.org