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