3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "mkfifo" "mkfifo one && [ -p one ] && echo yes" "yes\n" "" ""
11 testing "mkfifo existing" \
12 "mkfifo existing 2> /dev/null || [ -f existing ] && echo yes" "yes\n" "" ""
15 testing "mkfifo one two" \
16 "mkfifo one two && [ -p one ] && [ -p two ] && echo yes" "yes\n" "" ""
20 testing "mkfifo (default permissions)" \
21 "mkfifo one && stat -c %a one" "644\n" "" ""
26 testing "mkfifo -m 124" \
27 "mkfifo -m 124 one && stat -c %a one" "124\n" "" ""