HomeSort by relevance Sort by last modified time
    Searched refs:testing (Results 1 - 25 of 7453) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/toybox/tests/
factor.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "-32" "factor -32" "-32: -1 2 2 2 2 2\n" "" ""
8 testing "0" "factor 0" "0: 0\n" "" ""
9 testing "1" "factor 1" "1: 1\n" "" ""
10 testing "2" "factor 2" "2: 2\n" "" ""
11 testing "3" "factor 3" "3: 3\n" "" ""
12 testing "4" "factor 4" "4: 2 2\n" "" ""
13 testing "10000000017" "factor 10000000017"
    [all...]
touch.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "touch" "touch walrus && [ -e walrus ] && echo yes" "yes\n" "" ""
8 testing "1 2 3" "touch one two three && rm one two three && echo yes" "yes\n" \
10 testing "-c" "touch -c walrus && [ -e walrus ] && echo yes" "yes\n" "" ""
11 testing "-c missing" "touch -c warrus && [ ! -e warrus ] && echo yes" \
14 testing "-t" \
19 testing "-t MMDDhhmm" \
23 testing "-t YYMMDDhhmm"
    [all...]
expr.test 3 [ -f testing.sh ] && . testing.sh
5 testing "integer" "expr 5" "5\n" "" ""
6 testing "integer negative" "expr -5" "-5\n" "" ""
7 testing "string" "expr astring" "astring\n" "" ""
8 testing "addition" "expr 1 + 3" "4\n" "" ""
9 testing "5 + 6 * 3" "expr 5 + 6 \* 3" "23\n" "" ""
10 testing "( 5 + 6 ) * 3" "expr \( 5 + 6 \) \* 3" "33\n" "" ""
11 testing ">" "expr 3 \> 2" "1\n" "" ""
12 testing "* / same priority" "expr 4 \* 3 / 2" "6\n" "" "
    [all...]
test_human_readable.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "l 1024" "test_human_readable 123456789" "118M\n" "" ""
8 testing "l 1000" "test_human_readable -i 123456789" "123M\n" "" ""
9 testing "s 1024" "test_human_readable 5675" "5.5K\n" "" ""
10 testing "s 1000" "test_human_readable -i 5675" "5.6k\n" "" ""
14 testing "test_human_readable" "test_human_readable 267350" "261K\n" "" ""
16 testing "-b" "test_human_readable -b 123" "123B\n" "" ""
17 testing "-b" "test_human_readable -b 123456789" "118M\n" "" "
    [all...]
uudecode.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "uu empty file" "uudecode -o - && echo yes" \
9 testing "uu 1-char" "uudecode -o -" "a" "" \
11 testing "uu 2-char" "uudecode -o -" "ab" "" \
13 testing "uu 3-char" "uudecode -o -" "abc" "" \
16 testing "b64 empty file" "uudecode -o - && echo yes" \
18 testing "b64 1-char" "uudecode -o -" "a" "" \
20 testing "b64 2-char" "uudecode -o -" "ab" ""
    [all...]
uuencode.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "not enough args [fail]" "uuencode 2>/dev/null" "" "" ""
9 testing "uu empty file" "uuencode test" \
11 testing "uu 1-char" "uuencode test" \
13 testing "uu 2-char" "uuencode test" \
15 testing "uu 3-char" "uuencode test" \
18 testing "b64 empty file" "uuencode -m test" \
20 testing "b64 1-char" "uuencode -m test"
    [all...]
sed.test 3 #testing "name" "command" "result" "infile" "stdin"
5 testing 'as cat' 'sed ""' "one\ntwo\nthree" "" "one\ntwo\nthree"
7 SKIP_HOST=1 testing 'sed - - twice' 'sed "" - -' "hello\n" "" "hello\n"
8 testing '-n' 'sed -n ""' "" "" "one\ntwo\nthree"
9 testing '-n p' 'sed -n p' "one\ntwo\nthree" "" "one\ntwo\nthree"
10 testing 'explicit pattern' 'sed -e p -n' "one\ntwo\nthree" "" \
14 testing '' 'sed -n 1p' "one\n" "" "one\ntwo\nthree"
15 testing '' 'sed 2p' "one\ntwo\ntwo\nthree" "" "one\ntwo\nthree"
16 testing '' 'sed -n 2p' "two\n" "" "one\ntwo\nthree"
17 testing '-n $p' 'sed -n \$p' "three" "" "one\ntwo\nthree
    [all...]
nl.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "nl" "nl" " 1\tone\n 2\ttwo\n 3\tthree\n" \
10 testing "explicit defaults" "nl -nrn -b a" \
15 testing "-nln" "nl -nln" "1 \tone\n2 \ttwo\n3 \tthree\n" \
17 testing "-nln -w" "nl -nln -w 8" \
20 testing "-nrz" "nl -nrz" "000001\tone\n000002\ttwo\n000003\tthree\n" \
23 testing "-nrz -w" "nl -w3 -nrz" "001\tone\n002\ttwo\n003\tthree\n" \
34 testing "-b t" "nl -b t" " \n 1\tone\n \n 2\ttwo\n"
    [all...]
date.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
8 testing "-d @0" "TZ=UTC date -d @0 2>&1" "Thu Jan 1 00:00:00 GMT 1970\n" "" ""
9 testing "-d @0x123" "TZ=UTC date -d @0x123 2>&1" "date: bad date '@0x123'\n" "" ""
13 testing "-d 06021234" "TZ=UTC date -d 06021234 2>&1" "Sun Jun 2 12:34:00 UTC 1900\n" "" ""
14 testing "-d 060212341982" "TZ=UTC date -d 060212341982 2>&1" "Sun Jun 2 12:34:00 UTC 1982\n" "" ""
15 testing "-d 123" "TZ=UTC date -d 123 2>&1" "date: bad date '123'\n" "" ""
18 testing "-d 1110143115.30" "TZ=UTC date -d 1110143115.30 2>&1" "Sun Nov 10 14:31:30 UTC 1915\n" "" ""
19 testing "-d 111014312015.30" "TZ=UTC date -d 111014312015.30 2>&1" "Sun Nov 10 14:31:30 UTC 2015\n" "" "
    [all...]
xxd.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
12 testing "file1" "xxd file1" \
15 testing "file1 -l" "xxd -l 2 file1" \
18 testing "file2" "xxd file2" "" "" ""
19 testing "-" "xxd -" \
21 testing "xxd" "xxd" \
23 testing "-c 8 -g 4 file1" "xxd -c 8 -g 4 file1" \
25 testing "-c 8 -g 3 file1" "xxd -c 8 -g 3 file1"
    [all...]
dirname.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "/-only" "dirname ///////" "/\n" "" ""
8 testing "trailing /" "dirname a//////" ".\n" "" ""
9 testing "combined" "dirname /////a///b///c///d/////" "/////a///b///c\n" "" ""
10 testing "/a/" "dirname /////a///" "/\n" "" ""
cmp.test 3 [ -f testing.sh ] && . testing.sh
5 testing "not enough arguments [fail]" "cmp input 2>/dev/null || echo yes" "yes\n" "foo" ""
6 testing "missing file1 [fail]" "cmp file1 input 2>/dev/null || echo yes" "yes\n" "foo" ""
9 #testing "directory [fail]" "cmp dir dir 2>/dev/null || echo yes" \
16 testing "identical files, stdout" "cmp input input2" "" "ab\nc\n" ""
17 testing "identical files, return code" "cmp input input2 && echo yes" "yes\n" "ab\nc\n" ""
19 testing "EOF, stderr" "cmp input input2 2>&1" "cmp: EOF on input2\n" "ab\nc\nx" ""
20 testing "EOF, return code" "cmp input input2 2>/dev/null || echo yes" "yes\n" "ab\nc\nx" ""
22 testing "diff, stdout" "cmp input input2" "input input2 differ: char 4, line 2\n" "ab\nx\nx" "
    [all...]
head.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "head, stdin" "head -n 1 && echo yes" "one\nyes\n" "" "one\ntwo"
8 testing "head, stdin via -" "head -n 1 - && echo yes" "one\nyes\n" "" "one\ntwo"
9 testing "head, file" "head input -n 1 && echo yes" "one\nyes\n" "one\ntwo" ""
10 testing "-number" "head -2 input && echo yes" "one\ntwo\nyes\n" \
12 testing "head, default lines" "head" "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n" "" "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12"
15 testing "-v file" "head -v -n 1 input" "==> input <==\none\n" "one\ntwo\n" ""
16 testing "-v stdin" "head -v -n 1 | sed 's/==> standard input <==/==> - <==/'"
    [all...]
uptime.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "uptime" "uptime | grep -q 'load average:' && echo t" "t\n" "" ""
8 testing "uptime -s" \
grep.test 3 [ -f testing.sh ] && . testing.sh
8 #testing "name" "command" "result" "infile" "stdin"
10 testing "-c" "grep -c 123 input" "3\n" "123\ncount 123\n123\nfasdfasdf" ""
15 testing "-l" "grep -l test foo foo2 foo3" "foo\nfoo2\n" "" ""
18 testing "-q" "grep -q test input && echo yes" "yes\n" "this is a test\n" ""
19 testing "-E" "grep -E '[0-9]' input" "1234123asdfas123123\n1\n" \
21 testing "-e" "grep -e '[0-9]' input" "1234123asdfas123123\n1\n" \
23 testing "-e -e" "grep -e one -e two -e three input" \
25 testing "-F" "grep -F is input" "this is test\nthis is test2\n"
    [all...]
strings.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "stdin" "strings" "foobar\n" "" "foobar\n"
8 testing "file" "strings input" "foobar\n" "foobar\n" ""
9 testing "string to the end" "strings input" "foobar\n" "foobar" ""
10 testing "short strings" "strings input" "" "foo\nbar\n" ""
11 testing "-n6" "strings -n6 input" "foobar\n" "foobar\nbaz\n" ""
12 testing "string and nulls" "strings input" "foobar\nbazfoo\n" \
14 testing "-f" "strings -f input" "input: foobar\n" "foobar\n" "
    [all...]
cat.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
9 testing "cat" "cat && echo yes" "oneyes\n" "" "one"
10 testing "-" "cat - && echo yes" "oneyes\n" "" "one"
11 testing "file1 file2" "cat file1 file2" "one\ntwo\n" "" ""
12 testing "- file" "cat - file1" "zero\none\n" "" "zero\n"
13 testing "file -" "cat file1 -" "one\nzero\n" "" "zero\n"
15 testing "file1 notfound file2" \
20 testing "file1"
    [all...]
seq.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
7 testing "(exit with error)" "seq 2> /dev/null || echo yes" "yes\n" "" ""
8 testing "(exit with error)" "seq 1 2 3 4 2> /dev/null || echo yes" \
10 testing "one argument" "seq 3" "1\n2\n3\n" "" ""
11 testing "two arguments" "seq 5 7" "5\n6\n7\n" "" ""
12 testing "two arguments reversed" "seq 7 5" "" "" ""
13 testing "two arguments equal" "seq 3 3" "3\n" "" ""
14 testing "two arguments equal, arbitrary negative step" "seq 1 -15 1"
    [all...]
blkid.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
10 testing "file" "blkid temp.img" 'temp.img: TYPE="squashfs"\n' "" ""
13 testing "cramfs" 'bzcat "$BDIR"/cramfs.bz2 | blkid -' \
15 testing "ext2" 'bzcat "$BDIR"/ext2.bz2 | blkid -' \
18 testing "ext3" 'bzcat "$BDIR"/ext3.bz2 | blkid -' \
21 testing "ext4" 'bzcat "$BDIR"/ext4.bz2 | blkid -' \
24 testing "f2fs" 'bzcat "$BDIR"/f2fs.bz2 | blkid -' \
27 testing "msdos" 'bzcat "$BDIR"/msdos.bz2 | blkid -'
    [all...]
xargs.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
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 2" "xargs -n 2" "one two\nthree\n" "" "one \ntwo\n three"
14 testing "-n exact match" "xargs -n 3" "one two three\n" "" "one two three"
15 testing "xargs2" "xargs -n2" "one two\nthree four\nfive\n" "" \
17 testing "-s too long" "xargs -s 9 echo 2>/dev/null || echo ok"
    [all...]
bzcat.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
6 testing "2 known files" \
10 testing "overflow" \
14 testing "badcrc" \
rev.test 3 [ -f testing.sh ] && . testing.sh
5 #testing "name" "command" "result" "infile" "stdin"
9 testing "rev" "rev && echo yes" "orez\nyes\n" "" "zero\n"
10 testing "-" "rev - && echo yes" "orez\nyes\n" "" "zero\n"
11 testing "file1 file2" "rev file1 file2" "eno\nowt\n" "" ""
12 testing "- file" "rev - file1" "orez\neno\n" "" "zero\n"
13 testing "file -" "rev file1 -" "eno\norez\n" "" "zero\n"
14 testing "no trailing newline" "rev -" "cba\nfed\n" "" "abc\ndef"
16 testing "file1 notfound file2"
    [all...]
sort.test 6 [ -f testing.sh ] && . testing.sh
10 testing "sort" "sort input" "a\nb\nc\n" "c\na\nb\n" ""
11 testing "#2" "sort input" "010\n1\n3\n" "3\n1\n010\n" ""
12 testing "stdin" "sort" "a\nb\nc\n" "" "b\na\nc\n"
13 testing "numeric" "sort -n input" "1\n3\n010\n" "3\n1\n010\n" ""
14 testing "reverse" "sort -r input" "wook\nwalrus\npoint\npabst\naargh\n" \
32 testing "one key" "sort -k4,4 input" \
44 testing "key range with numeric option" "sort -k2,3n input" \
55 testing "key range with numeric option and global reverse"
    [all...]
cut.test 7 [ -f testing.sh ] && . testing.sh
9 #testing "name" "command" "result" "infile" "stdin"
12 # Creating test file for testing cut
17 testing "with -c (a-b)" "cut -c 4-10 abc.txt" ":two:th\nha:beta\n quick \n" "" ""
18 testing "with -f (a-)" "cut -d ':' -f 5- abc.txt" "five:six:seven\nepsilon:zeta:eta:teta:iota:kappa:lambda:mu\nthe quick brown fox jumps over the lazy dog\n" "" ""
20 testing "with -f (a)" "cut -d ' ' -f 3 abc.txt" "one:two:three:four:five:six:seven\nalpha:beta:gamma:delta:epsilon:zeta:eta:teta:iota:kappa:lambda:mu\nbrown\n" "" ""
22 testing "with echo, -c (a-b)" "echo 'ref_categorie=test' | cut -c 1-15 " "ref_categorie=t\n" "" ""
23 testing "with echo, -c (a)" "echo 'ref_categorie=test' | cut -c 14" "=\n" "" ""
28 testing "with -c (a,b,c)" "cut -c 4,5,20 abc.txt" "det\n" "" "
    [all...]
  /external/python/cpython3/Lib/idlelib/
__init__.py 10 testing = False # Set True by test.test_idle. variable

Completed in 423 milliseconds

1 2 3 4 5 6 7 8 91011>>