summaryrefslogtreecommitdiff
path: root/tests/02_fifo_diff.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/02_fifo_diff.sh')
-rwxr-xr-xtests/02_fifo_diff.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/02_fifo_diff.sh b/tests/02_fifo_diff.sh
new file mode 100755
index 0000000..0bf719e
--- /dev/null
+++ b/tests/02_fifo_diff.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+TEST_ID="02"
+TEST_NAME="Named pipe (FIFO) add remove test"
+
+CREATE=`pwd`/$1
+DEPLOY=`pwd`/$2
+TEST_TOOLS=$3
+
+. ./test_lib.sh
+
+############# Test specific code ############
+
+function setup {
+ mkfifo $ORIGIN/remove && \
+ mkfifo $TARGET/add && \
+ chmod 707 $TARGET/add && \
+ chown -h :cdrom $TARGET/add
+}
+
+function 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 $@