Searched refs:testcmd (Results 1 – 19 of 19) sorted by relevance
12 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 …]
8 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 …]
7 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 …]
8 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 …]
7 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 …]
11 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 $C | sort" \17 testcmd "-0" "-i five=six seven=eight $C -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" "" ""
7 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" \
8 testcmd "as echo" "-c hello file" "hello\n" "" ""9 testcmd "lone %" "-c % file" "%\n" "" ""10 testcmd "%% escapes" "-c '%% and %% then %%' file" "% and % then %\n" "" ""11 testcmd "%unknown = ?" "-c %q% file" "?%\n" "" ""13 TZ=utc testcmd "%x" "-c %x file" "2000-01-01 01:01:01.000000000 +0000\n" "" ""14 TZ=utc testcmd "%X" "-c %X file" "946688461\n" "" ""17 TZ=utc testcmd "%y" "-c %y file" "2000-02-02 02:02:02.000000000 +0000\n" "" ""18 TZ=utc testcmd "%Y" "-c %Y file" "949456922\n" "" ""
33 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" "" "" ""
16 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" "" ""
84 testcmd "invalid hex 1" "'one\xvdtwo' 2>/dev/null || echo err" "oneerr\n" "" ""85 testcmd "invalid hex 2" "'one\xavtwo'" "one\nvtwo" "" ""87 testcmd "invalid oct" "'one\079two'" "one\a9two" "" ""90 testcmd "%b \e" "'%b' '\\e' | xxd -p" "1b\n" "" ""91 testcmd "\e" "'\\e' | xxd -p" "1b\n" "" ""
8 testcmd "$1" "$1" "$2\n" "" ""43 testcmd "-T" "-T ; echo \$?" "4\n" "" ""44 testcmd "-n" "-n unlikely a -x 2>&1 | grep -o unlikely:" "unlikely:\n" "" ""
41 toyonly testcmd "-DF" "-DF 2,7,5" \51 testcmd "empty field" "-d ':' -f 1-3" "a::b\n" "" "a::b\n"52 testcmd "empty field 2" "-d ':' -f 3-5" "b::c\n" "" "a::b::c:d\n"
7 testcmd "-l HUP" "-l HUP" "1\n" "" ""8 testcmd "-l 1" "-l 1" "HUP\n" "" ""
13 testcmd "$tst" "-l $BDIR/$tst.txt" "$results\n" "$BDIR/$tst.txt" ""40 testcmd "stdin" "" "2\n" "" "1+1\n"
8 (mostly "testcmd" and "optional") is described in scripts/test.sh
17 testcmd "missing" "missing 2>&1" "modinfo: missing: not found\n" "" ""
152 testcmd() function
569 my ($testcmd, $testnum, $gdbline) = @_;575 runclient($testcmd);577 logmsg " CMD: $testcmd\n" if($verbose);617 my $cmd = $testcmd;628 $cmd = "$valgrindcmd $testcmd";