Lines Matching refs:testcmd
6 testcmd "one argument match" 'input && echo yes' "yes\n" \
9 testcmd "one argument diff" 'input | sed s/byte/char/' \
12 testcmd "missing file1 [fail]" 'file1 input 2>/dev/null || echo $?' "2\n" "foo" ""
22 testcmd "identical files, stdout" "input input2" "" "ab\nc\n" ""
23 testcmd "identical files, return code" "input input2 && echo yes" "yes\n" "ab\nc\n" ""
25 testcmd "EOF, stderr" "input input2 2>&1" \
27 testcmd "EOF, return code" "input input2 2>/dev/null || echo yes" "yes\n" "ab\nc\nx" ""
29 testcmd "diff, stdout" "input input2 | sed s/byte/char/" \
31 testcmd "diff, return code" "input input2 > /dev/null || echo yes" "yes\n" "ab\nx\nx" ""
33 testcmd "-s EOF, return code" "-s input input2 2>&1 || echo yes" "yes\n" "ab\nc\nx" ""
34 testcmd "-s diff, return code" "-s input input2 2>&1 || echo yes" "yes\n" "ab\nx\nx" ""
36 testcmd "-l EOF, stderr" "-l input input2 2>&1" \
38 testcmd "-l diff and EOF, stdout and stderr" "-l input input2 2>&1 | sort" \
41 testcmd "-s not exist" "-s input doesnotexist 2>&1 || echo yes" "yes\n" "x" ""
45 testcmd "stdin and file" "input - | sed s/byte/char/" \
47 testcmd "-n skip1 skip2" "-n 3 input - 3 5 && echo yes" "yes\n" "abcdef123" "vwxyzdef987"