Home
last modified time | relevance | path

Searched refs:testcmd (Results 1 – 12 of 12) sorted by relevance

/external/toybox/tests/
Decho.test12 testcmd "echo" "&& echo yes" "\nyes\n" "" ""
13 testcmd "1 2 3" "one two three" "one two three\n" "" ""
14 testcmd "with spaces" "'one two three'" \
16 testcmd "" "-n" "" "" ""
17 testcmd "" "-n one" "one" "" ""
18 testcmd "" "one -n" "one -n\n" "" ""
19 testcmd "-en" "-en 'one\ntwo'" "one\ntwo" "" ""
20 testcmd "" "--hello" "--hello\n" "" ""
21 testcmd "-e all" "-e '\a\b\c\f\n\r\t\v\\\0123' | xxd -p" "0708\n" "" ""
22 testcmd "-e all but \\c" "-e '"'\a\b\f\n\r\t\v\\\0123'"' | xxd -p" \
[all …]
Dtest.test7 testcmd '0 args' '; echo $?' '1\n' '' ''
8 testcmd '1 arg' '== ; echo $?' '0\n' '' ''
9 testcmd '2 args' '-e == ; echo $?' '1\n' '' ''
10 testcmd '3 args' '-e == -e ; echo $?' '0\n' '' ''
11 testcmd '' '\( == \) ; echo $?' '1\n' '' ''
12 testcmd '' '\( == \( ; echo $?' '0\n' '' ''
47 testcmd "" "'' || echo yes" "yes\n" "" ""
48 testcmd "" "a && echo yes" "yes\n" "" ""
49 testcmd "-n" "-n '' || echo yes" "yes\n" "" ""
50 testcmd "-n2" "-n a && echo yes" "yes\n" "" ""
[all …]
Dtimeout.test8 testcmd "times out" '.1 sleep 100 ; echo $?' '124\n' '' ''
9 testcmd "failure" '-s MONKEY .1 sleep 100 2>/dev/null ; echo $?' '125\n' '' ''
10 testcmd "early failure" '2>/dev/null ; echo $?' '125\n' '' ''
11 testcmd "can't execute" '.1 / 2>/dev/null ; echo $?' '126\n' '' ''
12 testcmd "can't find" '.1 /does/not/exist 2>/dev/null ; echo $?' '127\n' '' ''
13 testcmd "custom signal" '-s 3 .1 sleep 100; echo $?' '124\n' '' ''
14 testcmd "killed" '-s 9 .1 sleep 100; echo $?' '137\n' '' ''
15 testcmd "TERM" '-s TERM .1 sleep 100; echo $?' '124\n' '' ''
16 testcmd "exit 0" '.1 true ; echo $?' '0\n' '' ''
17 testcmd "exit 1" '.1 false ; echo $?' '1\n' '' ''
[all …]
Dbasename.test8 testcmd "/-only" "///////" "/\n" "" ""
9 testcmd "trailing /" "a//////" "a\n" "" ""
10 testcmd "combined" "/////a///b///c///d/////" "d\n" "" ""
13 testcmd "suffix" "a/b/c/d.suffix .suffix" "d\n" "" ""
16 testcmd "suffix=result" ".txt .txt" ".txt\n" "" ""
19 testcmd "reappearing suffix 1" "a.txt.txt .txt" "a.txt\n" "" ""
20 testcmd "reappearing suffix 2" "a.txt.old .txt" "a.txt.old\n" "" ""
23 testcmd "invalid suffix" "isthisasuffix? suffix" "isthisasuffix?\n" "" ""
26 testcmd "zero-length suffix" "a/b/c ''" "c\n" "" ""
29 testcmd "-s" "-s .txt /a/b/c.txt" "c\n" "" ""
[all …]
Ddemo_number.test7 testcmd "l 1024" "-h 123456789" "118M\n" "" ""
8 testcmd "l 1000" "-d 123456789" "123M\n" "" ""
9 testcmd "s 1024" "-h 5675" "5.5K\n" "" ""
10 testcmd "s 1000" "-d 5675" "5.6k\n" "" ""
14 testcmd "edge case" "-h 267350" "261K\n" "" ""
16 testcmd "-b" "-b 123" "123B\n" "" ""
17 testcmd "-b" "-b 123456789" "118M\n" "" ""
18 testcmd "-s" "-s 123456789" "118 M\n" "" ""
19 testcmd "-bs" "-bs 123456789" "118 M\n" "" ""
21 testcmd "units" "-b 1c 1b 1k 1kd 1m 1md 1g 1gd 1t 1td 1e 1ed" \
[all …]
Dbase64.test7 testcmd "simple" "" "c2ltcGxlCg==\n" "" "simple\n"
8 testcmd "file" "input" "c2ltcGxlCg==\n" "simple\n" ""
9 testcmd "simple -d" "-d" "simple\n" "" "c2ltcGxlCg==\n"
10 testcmd "simple -d" "-d input" "simple\n" "c2ltcGxlCg==" ""
11 testcmd "default wrap" "" \
14 testcmd "multiline -d " "-d" \
18 testcmd "-w" "-w 10" \
22 testcmd "-w0" "-w0 input" \
Denv.test11 testcmd "read" "$FILTER" "BANANA=hello\nLETTERS=\nWALRUS=42\n" "" ""
12 testcmd "-u" "-u BANANA $FILTER" "LETTERS=\nWALRUS=42\n" "" ""
13 testcmd "-uu" "-u LETTERS -u WALRUS $FILTER" "BANANA=hello\n" "" ""
14 testcmd "-i" "-i env" "" "" ""
15 testcmd "-i =" "-i one=two three=four env | sort" \
17 testcmd "-0" "-i five=six seven=eight env -0 | sort -z" "five=six\0seven=eight\0" "" ""
20 testcmd "early fail" '--oops 2> /dev/null ; echo $?' "125\n" "" ""
Dcut.test38 SKIP_HOST=1 testcmd "-DF" "-DF 2,7,5" \
48 testcmd "empty field" "-d ':' -f 1-3" "a::b\n" "" "a::b\n"
49 testcmd "empty field 2" "-d ':' -f 3-5" "b::c\n" "" "a::b::c:d\n"
Dbc.test13 testcmd "$tst" "-l $BDIR/$tst.txt" "$results\n" "$BDIR/$tst.txt" ""
40 testcmd "stdin" "" "2\n" "" "1+1\n"
DREADME.txt8 (mostly "testcmd" and "optional") is described in scripts/test.sh
/external/toybox/scripts/
Druntest.sh138 testcmd() function
/external/curl/tests/
Druntests.pl568 my ($testcmd, $testnum, $gdbline) = @_;
574 runclient($testcmd);
576 logmsg " CMD: $testcmd\n" if($verbose);
616 my $cmd = $testcmd;
627 $cmd = "$valgrindcmd $testcmd";