[darwinbuild-changes] [495] branches/PR-6722857

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 25 13:53:32 PDT 2009


Revision: 495
          http://trac.macosforge.org/projects/darwinbuild/changeset/495
Author:   wsiegrist at 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
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20090325/c000df11/attachment.html>


More information about the darwinbuild-changes mailing list