diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2013-11-04 10:11:13 +0000 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2013-11-05 12:00:29 +0000 |
commit | 6695045aa6da08d572363fe14c7c7565c7bfcb9b (patch) | |
tree | 7f8a1d886db40dfbdc7d78d84cd7844c97e6b0bd /tests/dir_add_remove.sh.disabled | |
parent | 7804883ce512a7cacb911cdea3a4896ecb79b22b (diff) | |
download | tbdiff-6695045aa6da08d572363fe14c7c7565c7bfcb9b.tar.gz |
Conversion of tbdiff directory tests
Disabled (renamed) old tests that have been converted
Removed compilation instruction for symtime.c from README
Diffstat (limited to 'tests/dir_add_remove.sh.disabled')
-rwxr-xr-x | tests/dir_add_remove.sh.disabled | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/dir_add_remove.sh.disabled b/tests/dir_add_remove.sh.disabled new file mode 100755 index 0000000..295b0f9 --- /dev/null +++ b/tests/dir_add_remove.sh.disabled @@ -0,0 +1,41 @@ +#!/bin/bash + +TEST_ID="07" +TEST_NAME="Directory add remove" + +CREATE=`pwd`/$1 +DEPLOY=`pwd`/$2 +TEST_TOOLS=$3 + +. ./test_lib.sh + +############# Test specific code ############ + +setup_origin () { + mkdir -p $ORIGIN/remove/1/2/3/4 +} + +setup_target () { + mkdir -p $TARGET/add/4/3/2/1 && + mkdir -p $TARGET/addsticky && + mkdir -p $TARGET/addsetgid && + chown -h :cdrom $TARGET/add && + chown -h :cdrom $TARGET/add/4/3/2/1 && + chmod +t $TARGET/addsticky && + chmod g+s $TARGET/addsetgid +} + +check_results () { + test -d $ORIGIN/add/4/3/2/1 && + test ! -d $ORIGIN/remove && + test -k $ORIGIN/addsticky && + test -g $ORIGIN/addsetgid && + check_same_mtime $ORIGIN/add $TARGET/add && + check_same_mode $ORIGIN/add $TARGET/add && + check_same_uidgid $ORIGIN/add $TARGET/add && + check_same_mode $ORIGIN/add $TARGET/add && + check_same_uidgid $ORIGIN/add/4/3/2/1 $TARGET/add/4/3/2/1 +} + +############################################# +main $@ |