Skip to content
Permalink
Browse files

Test case for 8604911 which tests that we restore directory contents …

…of dir->file forced installs upon uninstall

git-svn-id: https://svn.macosforge.org/repository/darwinbuild/branches/PR-8604911@903 10a61168-4876-4dac-953b-31e694342555
  • Loading branch information
wsiegrist@apple.com
wsiegrist@apple.com committed Oct 28, 2010
1 parent f6ed8ef commit 82055e58bed2987df30f97c27ecd3195801bc041
Showing with 7 additions and 0 deletions.
  1. BIN testing/darwinup/dest.tar.gz
  2. +7 −0 testing/darwinup/run-tests.sh
BIN +94 Bytes (120%) testing/darwinup/dest.tar.gz
Binary file not shown.
@@ -353,6 +353,7 @@ echo "========== TEST: Forcing object change: file to directory =========="
is_file $DEST/rep_file
$DARWINUP -f install $PREFIX/rep_file_dir
is_dir $DEST/rep_file
is_file $DEST/rep_file/subfile
$DARWINUP uninstall newest
is_file $DEST/rep_file
echo "DIFF: diffing original test files to dest (should be no diffs) ..."
@@ -369,19 +370,23 @@ $DIFF $ORIG $DEST 2>&1

echo "========== TEST: Forcing object change: directory to file =========="
is_dir $DEST/rep_dir
is_file $DEST/rep_dir/subfile
$DARWINUP -f install $PREFIX/rep_dir_file
is_file $DEST/rep_dir
$DARWINUP uninstall newest
is_dir $DEST/rep_dir
is_file $DEST/rep_dir/subfile
echo "DIFF: diffing original test files to dest (should be no diffs) ..."
$DIFF $ORIG $DEST 2>&1

echo "========== TEST: Forcing object change: directory to symlink =========="
is_dir $DEST/rep_dir
is_file $DEST/rep_dir/subfile
$DARWINUP -f install $PREFIX/rep_dir_link
is_link $DEST/rep_dir
$DARWINUP uninstall newest
is_dir $DEST/rep_dir
is_file $DEST/rep_dir/subfile
echo "DIFF: diffing original test files to dest (should be no diffs) ..."
$DIFF $ORIG $DEST 2>&1

@@ -398,6 +403,7 @@ echo "========== TEST: Forcing object change: symlink->dir to directory ========
is_link $DEST/rep_link
$DARWINUP -f install $PREFIX/rep_link_dir
is_dir $DEST/rep_link
is_file $DEST/rep_link/subfile
$DARWINUP uninstall newest
is_link $DEST/rep_link
echo "DIFF: diffing original test files to dest (should be no diffs) ..."
@@ -416,6 +422,7 @@ echo "========== TEST: Forcing object change: symlink->file to directory =======
is_link $DEST/rep_flink
$DARWINUP -f install $PREFIX/rep_flink_dir
is_dir $DEST/rep_flink
is_file $DEST/rep_flink/subfile
$DARWINUP uninstall newest
is_link $DEST/rep_flink
echo "DIFF: diffing original test files to dest (should be no diffs) ..."

0 comments on commit 82055e5

Please sign in to comment.
You can’t perform that action at this time.