diff options
Diffstat (limited to 'tests/regular_file_add_remove.sh.disabled')
-rwxr-xr-x | tests/regular_file_add_remove.sh.disabled | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/regular_file_add_remove.sh.disabled b/tests/regular_file_add_remove.sh.disabled new file mode 100755 index 0000000..66b5bc8 --- /dev/null +++ b/tests/regular_file_add_remove.sh.disabled @@ -0,0 +1,32 @@ +#!/bin/bash + +TEST_ID="01" +TEST_NAME="Regular file add remove" + +CREATE=`pwd`/$1 +DEPLOY=`pwd`/$2 +TEST_TOOLS=$3 + +. ./test_lib.sh + +############# Test specific code ############ + +setup_origin () { + touch $ORIGIN/remove +} + +setup_target () { + echo 1 > $TARGET/add && + chown -h :cdrom $TARGET/add +} + +check_results () { + test -f $ORIGIN/add && \ + test ! -f $ORIGIN/remove && \ + check_content $ORIGIN/add "1" && \ + check_same_mtime $ORIGIN/add $TARGET/add && \ + check_same_uidgid $ORIGIN/add $TARGET/add +} + +############################################# +main $@ |