diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2013-11-06 14:27:08 +0000 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2013-11-06 14:27:08 +0000 |
commit | 057bee132cf0bde4db35a6c6e7c4724e9331ce03 (patch) | |
tree | 19d33be6f8288ed21888fd69fb208ead12f0a871 /tests/regular_file_diff.sh.disabled | |
parent | 7804883ce512a7cacb911cdea3a4896ecb79b22b (diff) | |
parent | daddec13b84ca2729a1d9e09d9df260663557ba8 (diff) | |
download | tbdiff-057bee132cf0bde4db35a6c6e7c4724e9331ce03.tar.gz |
Merge branch 'benbrown/S9451/convert-directory-tests'
Diffstat (limited to 'tests/regular_file_diff.sh.disabled')
-rwxr-xr-x | tests/regular_file_diff.sh.disabled | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/regular_file_diff.sh.disabled b/tests/regular_file_diff.sh.disabled new file mode 100755 index 0000000..0e12454 --- /dev/null +++ b/tests/regular_file_diff.sh.disabled @@ -0,0 +1,40 @@ +#!/bin/bash + +TEST_ID="00" +TEST_NAME="Simple file diff" + +CREATE=`pwd`/$1 +DEPLOY=`pwd`/$2 +TEST_TOOLS=$3 + +. ./test_lib.sh + +############# Test specific code ############ + +ORG_FILE=$ORIGIN/b.txt +TGT_FILE=$TARGET/b.txt + +setup_origin () { + echo 1 >$ORIGIN/a.txt && + chgrp tty $ORIGIN/a.txt && + echo 1 > $ORG_FILE +} + +setup_target () { + echo 2 >$TARGET/a.txt && + chgrp tty $TARGET/a.txt && + echo 2 > $TGT_FILE && + chown :cdrom $TGT_FILE && + chmod 707 $TGT_FILE +} + +check_results () { + check_group $ORIGIN/a.txt tty && + check_content $ORG_FILE "2" && \ + check_perm $ORG_FILE 707 && \ + check_group $ORG_FILE cdrom && \ + check_same_mtime $ORG_FILE $TGT_FILE +} + +############################################# +main $@ |