diff options
Diffstat (limited to 'tests/fifo_add_remove.sh.disabled')
-rwxr-xr-x | tests/fifo_add_remove.sh.disabled | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/fifo_add_remove.sh.disabled b/tests/fifo_add_remove.sh.disabled new file mode 100755 index 0000000..9db6d12 --- /dev/null +++ b/tests/fifo_add_remove.sh.disabled @@ -0,0 +1,32 @@ +#!/bin/bash + +TEST_ID="03" +TEST_NAME="Named pipe (FIFO) add remove 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 $@ |