summaryrefslogtreecommitdiff
path: root/tests/07_dir_add_remove.sh
diff options
context:
space:
mode:
authorBen Brown <ben.brown@codethink.co.uk>2013-11-04 10:11:13 +0000
committerBen Brown <ben.brown@codethink.co.uk>2013-11-05 12:00:29 +0000
commit6695045aa6da08d572363fe14c7c7565c7bfcb9b (patch)
tree7f8a1d886db40dfbdc7d78d84cd7844c97e6b0bd /tests/07_dir_add_remove.sh
parent7804883ce512a7cacb911cdea3a4896ecb79b22b (diff)
downloadtbdiff-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/07_dir_add_remove.sh')
-rwxr-xr-xtests/07_dir_add_remove.sh41
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/07_dir_add_remove.sh b/tests/07_dir_add_remove.sh
deleted file mode 100755
index 295b0f9..0000000
--- a/tests/07_dir_add_remove.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/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 $@