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/fifo_diff.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/fifo_diff.sh.disabled')
-rwxr-xr-x | tests/fifo_diff.sh.disabled | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/fifo_diff.sh.disabled b/tests/fifo_diff.sh.disabled new file mode 100755 index 0000000..f256414 --- /dev/null +++ b/tests/fifo_diff.sh.disabled @@ -0,0 +1,32 @@ +#!/bin/bash + +TEST_ID="02" +TEST_NAME="Named pipe (FIFO) diff test" + +CREATE=`pwd`/$1 +DEPLOY=`pwd`/$2 +TEST_TOOLS=$3 + +. ./test_lib.sh + +############# Test specific code ############ + +setup_origin () { + mkfifo $ORIGIN/remove +} + +setup_target () { + mkfifo $TARGET/add && + chmod 707 $TARGET/add && + chown -h :cdrom $TARGET/add +} + +check_results () { + test -p $ORIGIN/add && \ + test ! -p $ORIGIN/remove && \ + check_same_mtime $ORIGIN/add $TARGET/add && \ + check_same_uidgid $ORIGIN/add $TARGET/add +} + +############################################# +main $@ |