Home | History | Annotate | Download | only in tests

Lines Matching refs:CMD

7 # To make it work, "$CMD" is an explicit path to the command being tested,
10 CMD="$(which echo)"
14 testing "echo" "$CMD && echo yes" "\nyes\n" "" ""
15 testing "echo 1 2 3" "$CMD one two three" "one two three\n" "" ""
16 testing "echo with spaces" "$CMD 'one two three'" \
18 testing "echo -n" "$CMD -n" "" "" ""
19 testing "echo -n one" "$CMD -n one" "one" "" ""
20 testing "echo one -n" "$CMD one -n" "one -n\n" "" ""
21 testing "echo -en" "$CMD -en 'one\ntwo'" "one\ntwo" "" ""
22 testing "echo --hello" "$CMD --hello" "--hello\n" "" ""
23 testing "echo -e all" "$CMD -e '\a\b\c\f\n\r\t\v\\\0123'" \
25 testing "echo -nex hello" "$CMD -nex hello" "-nex hello\n" "" ""
29 "$CMD -ne '\01234 \0060 \060 \0130\0131\0132 \077\012'" \
34 "$CMD -ne '\x534 \x30 \x58\x59\x5a \x3F\x0A'"\
37 testing "echo -e \p" "$CMD -e '\\p'" "\\p\n" "" ""