Skip to content

Commit

Permalink
Test case for 8604911 which tests that we restore directory contents …
Browse files Browse the repository at this point in the history
…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 committed Oct 28, 2010
1 parent f6ed8ef commit 82055e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file modified testing/darwinup/dest.tar.gz
Binary file not shown.
7 changes: 7 additions & 0 deletions testing/darwinup/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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) ..."
Expand All @@ -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

Expand All @@ -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) ..."
Expand All @@ -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) ..."
Expand Down

0 comments on commit 82055e5

Please sign in to comment.