Lines Matching refs:testing
3 [ -f testing.sh ] && . testing.sh
7 testing "xargs" "xargs && echo yes" "hello\nyes\n" "" "hello"
8 testing "spaces" "xargs" \
11 testing "-n 0" "xargs -n 0 2>/dev/null || echo ok" "ok\n" \
13 testing "-n 1" "xargs -n 1" "one\n" "" "one\n"
14 testing "-n 2" "xargs -n 2" "one two\nthree\n" "" "one \ntwo\n three"
15 testing "-n exact match" "xargs -n 3" "one two three\n" "" "one two three"
16 testing "xargs2" "xargs -n2" "one two\nthree four\nfive\n" "" \
18 testing "-s too long" "xargs -s 9 echo 2>/dev/null; echo \$?" \
20 testing "-s 13" "xargs -s 13 echo" "one two\nthree\n" "" "one \ntwo\n three"
21 testing "-s 12" "xargs -s 12 echo" "one\ntwo\nthree\n" "" "one \ntwo\n three"
23 testing "-s counts args" "xargs -s 13 echo ' ' ' '" " one\n" "" "one\n"
25 testing "-s 4 fails" "xargs -s 4 2>/dev/null || echo bad" "bad\n" "" ""
26 testing "-s 5 no input okay" "xargs -s 5" "\n" "" ""
27 testing "-s 5 with input bad" "xargs -s 5 2>/dev/null || echo bad" "bad\n" \
31 testing "command -opt" "xargs -n2 ls -1" "one\ntwo\nthree\n" "" \
35 testing "-0 -n1" "printf 'a\0b\0c\0d\0e\0f' | xargs -0 -n1 echo _" "_ a\n_ b\n_ c\n_ d\n_ e\n_ f\n"…
36 testing "-0 -n2" "printf 'a\0b\0c\0d\0e\0f' | xargs -0 -n2 echo _" "_ a b\n_ c d\n_ e f\n" "" ""
38 testing "-t" "xargs -t 2>stderr ; cat stderr ; rm stderr" "one two\necho one two \n" "" "one\ntwo\n"
40 testing "-E END" "xargs -E END" "a b ENDE\n" "" "a\nb\nENDE\nEND\nc\nd\n"
42 testing "-r" "xargs -r echo x" "" "" ""
43 testing "no -r" "xargs echo x" "x\n" "" ""
46 testing "true" "xargs true; echo \$?" "0\n" "" ""
47 testing "command not found" "xargs does-not-exist 2>/dev/null; echo \$?" \
50 testing "false" "xargs false; echo \$?" "123\n" "" ""
52 testing "exit 255" "xargs sh -c 'exit 255' 2>&1; echo \$?" \
56 toyonly testing "max argument size" \
60 testing "big input forces split" \
65 testing "max-proc=1" "xargs -n 1 -P 1" "one\ntwo\nthree\n" "" "one\ntwo\nthree\n"
66 testing "max-proc=2" "xargs -n 1 -P 2" "y\ny\ny\n" "" "y\ny\ny\n"
67 testing "max-proc=3" "xargs -n 1 -P 3" "y\ny\ny\n" "" "y\ny\ny\n"
69 testing "parallel sleep" "