diff options
author | Alberto Ruiz <alberto.ruiz@codethink.co.uk> | 2011-10-04 01:22:28 +0100 |
---|---|---|
committer | Alberto Ruiz <alberto.ruiz@codethink.co.uk> | 2011-10-04 01:22:28 +0100 |
commit | fe006e0138cb83e2a25a9e11acec46f8615893d9 (patch) | |
tree | 1bdecb01bd3a5c6013c48a06e5c2e5b5b0c3e16c /tests/07_dir_add_remove.sh | |
parent | e32df33d9074d5d43dbcebbc507377e801018225 (diff) | |
download | tbdiff-fe006e0138cb83e2a25a9e11acec46f8615893d9.tar.gz |
Added directory tests
Diffstat (limited to 'tests/07_dir_add_remove.sh')
-rwxr-xr-x | tests/07_dir_add_remove.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/07_dir_add_remove.sh b/tests/07_dir_add_remove.sh new file mode 100755 index 0000000..e141351 --- /dev/null +++ b/tests/07_dir_add_remove.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +TEST_ID="05" +TEST_NAME="Symlink add/remove" + +CREATE=`pwd`/$1 +DEPLOY=`pwd`/$2 +TEST_TOOLS=$3 + +. ./test_lib.sh + +############# Test specific code ############ + +function setup { + mkdir $ORIGIN/remove && \ + mkdir $TARGET/add && \ + chown -h :cdrom $TARGET/add +} + +function check_results { + test -d $ORIGIN/add && \ + test ! -d $ORIGIN/remove && \ + check_same_mtime $ORIGIN/add $TARGET/add && \ + check_same_mode $ORIGIN/add $TARGET/add && \ + check_same_uidgid $ORIGIN/add $TARGET/add +} + +############################################# +main $@ |