Home
last modified time | relevance | path

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

/third_party/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 …]
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" "" ""
21 testcmd "why is this allowed" "=BLAH env | grep '^=BLAH\$'" "=BLAH\n" "" ""
23 testcmd "replace" "A=foo PATH= `which printenv` A" "foo\n" "" ""
29 testcmd "norecurse" 'env PATH="$PWD:$PATH" true hello' "hello\n" "" ""
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" \
Dlosetup.test33 testcmd "-f" "-f" "$DIR/loop0\n" "" ""
34 testcmd "-f blah.img" "-f blah.img" "" "" ""
35 testcmd "-f --show" "-f --show blah.img" "$DIR/loop1\n" "" ""
36 testcmd "-a" "-a | sort" \
38 testcmd "-d $DIR/loop0" "-d $DIR/loop0 && losetup -a" \
40 testcmd "-D" "-D && losetup -a" "" "" ""
Dpidof.test16 testcmd "short argv[1]" "pidof-$$.test" "" "" ""
17 testcmd "short argv[1] -x" "-x pidof-$$.test" "$pid\n" "" ""
22 testcmd "long argv[1]" "toybox.pidof-$$.test.script" "" "" ""
23 testcmd "long argv[1] -x" "-x toybox.pidof-$$.test.script" "$pid\n" "" ""
29 testcmd "pidof pidof" "pidof > /dev/null && echo found" "found\n" "" ""
Dprintf.test79 testcmd "invalid hex 1" "'one\xvdtwo' 2>/dev/null || echo err" "oneerr\n" "" ""
80 testcmd "invalid hex 2" "'one\xavtwo'" "one\nvtwo" "" ""
82 testcmd "invalid oct" "'one\079two'" "one\a9two" "" ""
85 testcmd "%b \e" "'%b' '\\e' | xxd -p" "1b\n" "" ""
86 testcmd "\e" "'\\e' | xxd -p" "1b\n" "" ""
Dcut.test38 toyonly 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"
Dkill.test7 testcmd "-l HUP" "-l HUP" "1\n" "" ""
8 testcmd "-l 1" "-l 1" "HUP\n" "" ""
Dzcat.test11 testcmd "files" "1.gz 2.gz && test -f 1.gz && test -f 2.gz" "hi there\n" "" ""
13 testcmd "-c" "-c 1.gz 2.gz && test -f 1.gz && test -f 2.gz" "hi there\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
Dmodinfo.test17 testcmd "missing" "missing 2>&1" "modinfo: missing: not found\n" "" ""
/third_party/curl/tests/
Drunner.pm408 my ($testcmd, $testnum, $gdbline) = @_;
414 runclient($testcmd);
416 logmsg " CMD: $testcmd\n" if($verbose);
477 my $cmd = $testcmd;
488 $cmd = "$valgrindcmd $testcmd";
/third_party/toybox/scripts/
Druntest.sh146 testcmd() function