Lines Matching refs:testing
3 [ -f testing.sh ] && . testing.sh
6 testing "one argument match" 'cmp input && echo yes' "yes\n" \
9 testing "one argument diff" 'cmp input | sed s/byte/char/' \
12 testing "missing file1 [fail]" 'cmp file1 input 2>/dev/null || echo $?' "2\n" "foo" ""
22 testing "identical files, stdout" "cmp input input2" "" "ab\nc\n" ""
23 testing "identical files, return code" "cmp input input2 && echo yes" "yes\n" "ab\nc\n" ""
25 testing "EOF, stderr" "cmp input input2 2>&1" "cmp: EOF on input2\n" "ab\nc\nx" ""
26 testing "EOF, return code" "cmp input input2 2>/dev/null || echo yes" "yes\n" "ab\nc\nx" ""
28 testing "diff, stdout" "cmp input input2 | sed s/byte/char/" \
30 testing "diff, return code" "cmp input input2 > /dev/null || echo yes" "yes\n" "ab\nx\nx" ""
32 testing "-s EOF, return code" "cmp -s input input2 2>&1 || echo yes" "yes\n" "ab\nc\nx" ""
33 testing "-s diff, return code" "cmp -s input input2 2>&1 || echo yes" "yes\n" "ab\nx\nx" ""
35 testing "-l EOF, stderr" "cmp -l input input2 2>&1" "cmp: EOF on input2\n" "ab\nc\nx" ""
36 testing "-l diff and EOF, stdout and stderr" "cmp -l input input2 2>&1 | sort" "4 170 143\ncmp: EOF…
38 testing "-s not exist" "cmp -s input doesnotexist 2>&1 || echo yes" "yes\n" "" ""
42 testing "stdin and file" "cmp input - | sed s/byte/char/" \