[darwinbuild-changes] [889] branches/PR-8488719/testing/darwinup
source_changes at macosforge.org
source_changes at macosforge.org
Tue Sep 28 16:12:02 PDT 2010
Revision: 889
http://trac.macosforge.org/projects/darwinbuild/changeset/889
Author: wsiegrist at apple.com
Date: 2010-09-28 16:12:01 -0700 (Tue, 28 Sep 2010)
Log Message:
-----------
Add more test cases for symlinks and object changes.
Modified Paths:
--------------
branches/PR-8488719/testing/darwinup/rep_dir_link.tar.gz
branches/PR-8488719/testing/darwinup/rep_file_link.tar.gz
branches/PR-8488719/testing/darwinup/run-tests.sh
Added Paths:
-----------
branches/PR-8488719/testing/darwinup/rep_dir_flink.tar.gz
branches/PR-8488719/testing/darwinup/rep_file_flink.tar.gz
branches/PR-8488719/testing/darwinup/rep_flink_flink.tar.gz
branches/PR-8488719/testing/darwinup/rep_flink_link.tar.gz
branches/PR-8488719/testing/darwinup/rep_link_flink.tar.gz
branches/PR-8488719/testing/darwinup/rep_link_link.tar.gz
Added: branches/PR-8488719/testing/darwinup/rep_dir_flink.tar.gz
===================================================================
(Binary files differ)
Property changes on: branches/PR-8488719/testing/darwinup/rep_dir_flink.tar.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: branches/PR-8488719/testing/darwinup/rep_dir_link.tar.gz
===================================================================
(Binary files differ)
Added: branches/PR-8488719/testing/darwinup/rep_file_flink.tar.gz
===================================================================
(Binary files differ)
Property changes on: branches/PR-8488719/testing/darwinup/rep_file_flink.tar.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: branches/PR-8488719/testing/darwinup/rep_file_link.tar.gz
===================================================================
(Binary files differ)
Added: branches/PR-8488719/testing/darwinup/rep_flink_flink.tar.gz
===================================================================
(Binary files differ)
Property changes on: branches/PR-8488719/testing/darwinup/rep_flink_flink.tar.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/PR-8488719/testing/darwinup/rep_flink_link.tar.gz
===================================================================
(Binary files differ)
Property changes on: branches/PR-8488719/testing/darwinup/rep_flink_link.tar.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/PR-8488719/testing/darwinup/rep_link_flink.tar.gz
===================================================================
(Binary files differ)
Property changes on: branches/PR-8488719/testing/darwinup/rep_link_flink.tar.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/PR-8488719/testing/darwinup/rep_link_link.tar.gz
===================================================================
(Binary files differ)
Property changes on: branches/PR-8488719/testing/darwinup/rep_link_link.tar.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: branches/PR-8488719/testing/darwinup/run-tests.sh
===================================================================
--- branches/PR-8488719/testing/darwinup/run-tests.sh 2010-09-28 22:30:27 UTC (rev 888)
+++ branches/PR-8488719/testing/darwinup/run-tests.sh 2010-09-28 23:12:01 UTC (rev 889)
@@ -51,10 +51,9 @@
tar zxvf $R.tar.gz -C $PREFIX
done;
-for R in rep_dir_file rep_dir_link rep_file_dir rep_file_link \
- rep_link_dir rep_link_file rep_flink_dir rep_flink_file;
+for R in rep_*;
do
- tar zxvf $R.tar.gz -C $PREFIX
+ tar zxvf $R -C $PREFIX
done;
for R in 300dirs.tbz2 300files.tbz2 deep-rollback.cpgz deep-rollback-2.xar extension.tar.bz2;
@@ -332,7 +331,41 @@
echo "DIFF: diffing original test files to dest (should be no diffs) ..."
$DIFF $ORIG $DEST 2>&1
+echo "========== TEST: Installing symlinks over symlinks =========="
+is_link $DEST/rep_link
+$DARWINUP install $PREFIX/rep_link_link
+is_link $DEST/rep_link
+$DARWINUP uninstall newest
+is_link $DEST/rep_link
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+$DIFF $ORIG $DEST 2>&1
+is_link $DEST/rep_flink
+$DARWINUP install $PREFIX/rep_flink_flink
+is_link $DEST/rep_flink
+$DARWINUP uninstall newest
+is_link $DEST/rep_flink
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+$DIFF $ORIG $DEST 2>&1
+
+is_link $DEST/rep_flink
+$DARWINUP install $PREFIX/rep_flink_link
+is_link $DEST/rep_flink
+$DARWINUP uninstall newest
+is_link $DEST/rep_flink
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+$DIFF $ORIG $DEST 2>&1
+
+is_link $DEST/rep_link
+$DARWINUP install $PREFIX/rep_link_flink
+is_link $DEST/rep_link
+$DARWINUP uninstall newest
+is_link $DEST/rep_link
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+$DIFF $ORIG $DEST 2>&1
+
+
+
echo "========== TEST: Forcing object change: file to directory =========="
is_file $DEST/rep_file
$DARWINUP -f install $PREFIX/rep_file_dir
@@ -427,6 +460,13 @@
$DIFF $ORIG $DEST 2>&1
if [ $? -ne 0 ]; then exit 1; fi
+echo "========== TEST: Try replacing File with Symlink to file =========="
+$DARWINUP install $PREFIX/rep_file_flink
+if [ $? -ne 255 ]; then exit 1; fi
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+$DIFF $ORIG $DEST 2>&1
+if [ $? -ne 0 ]; then exit 1; fi
+
echo "========== TEST: Try replacing Directory with Symlink =========="
$DARWINUP install $PREFIX/rep_dir_link
if [ $? -ne 255 ]; then exit 1; fi
@@ -441,6 +481,13 @@
$DIFF $ORIG $DEST 2>&1
if [ $? -ne 0 ]; then exit 1; fi
+echo "========== TEST: Try replacing Directory with Symlink to file =========="
+$DARWINUP install $PREFIX/rep_dir_flink
+if [ $? -ne 255 ]; then exit 1; fi
+echo "DIFF: diffing original test files to dest (should be no diffs) ..."
+$DIFF $ORIG $DEST 2>&1
+if [ $? -ne 0 ]; then exit 1; fi
+
echo "========== TEST: Try replacing Symlink to directory with Directory =========="
$DARWINUP install $PREFIX/rep_link_dir
if [ $? -ne 255 ]; then exit 1; fi
@@ -469,6 +516,8 @@
$DIFF $ORIG $DEST 2>&1
if [ $? -ne 0 ]; then exit 1; fi
+
+
popd >> /dev/null
echo "INFO: Done testing!"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20100928/e42e9352/attachment-0001.html>
More information about the darwinbuild-changes
mailing list