Home
last modified time | relevance | path

Searched refs:testing (Results 1 – 25 of 2042) sorted by relevance

12345678910>>...82

/external/toybox/tests/
Dsed.test5 testing 'sed as cat' 'sed ""' "one\ntwo\nthree" "" "one\ntwo\nthree"
7 SKIP_HOST=1 testing 'sed - - twice' 'sed "" - -' "hello\n" "" "hello\n"
8 testing 'sed -n' 'sed -n ""' "" "" "one\ntwo\nthree"
9 testing 'sed -n p' 'sed -n p' "one\ntwo\nthree" "" "one\ntwo\nthree"
10 testing 'sed 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 'sed -n $p' 'sed -n \$p' "three" "" "one\ntwo\nthree"
18 testing 'sed as cat #2' "sed -n '1,\$p'" "one\ntwo\nthree" "" "one\ntwo\nthree"
[all …]
Dgrep.test3 [ -f testing.sh ] && . testing.sh
10 testing "grep -c" "grep -c 123 input" "3\n" "123\ncount 123\n123\nfasdfasdf" ""
15 testing "grep -l" "grep -l test foo foo2 foo3" "foo\nfoo2\n" "" ""
18 testing "grep -q" "grep -q test input && echo yes" "yes\n" "this is a test\n" ""
19 testing "grep -E" "grep -E '[0-9]' input" "1234123asdfas123123\n1\n" \
21 testing "grep -e" "grep -e '[0-9]' input" "1234123asdfas123123\n1\n" \
23 testing "grep -e -e" "grep -e one -e two -e three input" \
25 testing "grep -F" "grep -F is input" "this is test\nthis is test2\n" \
31 testing "grep -H" "grep -H is foo foo2 foo3" "foo:this is test\nfoo:this is test2\nfoo2:hello this …
34 testing "grep -b" "grep -b is input" "0:this is test\n13:this is test2\n" \
[all …]
Ddd.test6 [ -f testing.sh ] && . testing.sh
13 testing "dd if=(file)" "dd if=input $opt" "I WANT\n" "I WANT\n" ""
14 testing "dd of=(file)" "dd of=file $opt && cat file" "I WANT\n" "" "I WANT\n"
15 testing "dd if=file of=file" "dd if=input of=foo $opt && cat foo && rm -f foo" \
17 testing "dd if=file | dd of=file" "dd if=input $opt | dd of=foo $opt &&
19 testing "dd (stdout)" "dd $opt" "I WANT\n" "" "I WANT\n"
20 testing "dd sync,noerror" \
23 testing "dd if=file of=(null)" \
25 testing "dd with if of bs" \
28 testing "dd with if of ibs obs" \
[all …]
Difconfig.test22 [ -f testing.sh ] && . testing.sh
38 testing "ifconfig dummy0 down and if config /-only" \
44 testing "ifconfig dummy0 up" \
51 testing "ifconfig dummy0 10.240.240.240" \
58 testing "ifconfig dummy0 netmask 255.255.240.0" \
65 testing "ifconfig dummy0 broadcast 10.240.240.255" \
72 testing "ifconfig dummy0 default" \
79 testing "ifconfig dummy0 mtu 1269" \
86 testing "ifconfig dummy0 add ::2 -- too small mtu" \
93 testing "ifconfig dummy0 mtu 2000" \
[all …]
Dlsattr.test3 [ -f testing.sh ] && . testing.sh
14 testing "chattr [-/+]i FILE[write]" "$IN && echo "$_t" > testFile &&
17 testing "chattr [-/+]i FILE[re-write]" "$IN && echo "$_t" > testFile &&
21 testing "chattr [-/+]i FILE[append]" "$IN && echo "$_t" > testFile &&
24 testing "chattr [-/+]i FILE[move]" "$IN && echo "$_t" > testFile &&
27 testing "chattr [-/+]i FILE[delete]" "$IN && echo "$_t" > testFile &&
30 testing "chattr [-/+]i FILE[read]" "$IN && echo "$_t" > testFile &&
33 testing "chattr [-/+]a FILE[write]" "$IN && echo "$_t" > testFile &&
36 testing "chattr [-/+]a FILE[re-write]" "$IN && echo "$_t" > testFile &&
41 testing "chattr [-/+]a FILE[append]" "$IN && echo "$_t" > testFile &&
[all …]
Dtail.test3 [ -f testing.sh ] && . testing.sh
9 testing "tail" "tail && echo yes" "oneyes\n" "" "one"
10 testing "tail file" "tail file1" \
12 testing "tail -n in bounds" "tail -n 3 file1" "nine\nten\neleven\n" "" ""
13 testing "tail -n out of bounds" "tail -n 999 file1" "$BIGTEST" "" ""
14 testing "tail -n+ in bounds" "tail -n +3 file1" \
16 testing "tail -n+ outof bounds" "tail -n +999 file1" "" "" ""
17 testing "tail -c in bounds" "tail -c 27 file1" \
19 testing "tail -c out of bounds" "tail -c 999 file1" "$BIGTEST" "" ""
20 testing "tail -c+ in bounds" "tail -c +27 file1" \
[all …]
Dreadlink.test3 [ -f testing.sh ] && . testing.sh
9 testing "readlink missing" "readlink notfound || echo yes" "yes\n" "" ""
14 testing "readlink file" "readlink file || echo yes" "yes\n" "" ""
15 testing "readlink -f dir" "readlink -f ." "$APWD\n" "" ""
16 testing "readlink -f missing" "readlink -f notfound" "$APWD/notfound\n" "" ""
19 testing "readlink link" "readlink link" "notfound\n" "" ""
20 testing "readlink link->missing" "readlink -f link" "$APWD/notfound\n" "" ""
22 testing "readlink stays relative" "readlink link" "../../\n" "" ""
25 testing "readlink -f link->file" "readlink -f link" "$APWD/file\n" "" ""
27 testing "readlink -f link->dir" "readlink -f link" "$APWD\n" "" ""
[all …]
Dtest.test3 [ -f testing.sh ] && . testing.sh
28 testing "test -b" "type_test -b" "" "" ""
29 testing "test -c" "type_test -c" "L" "" ""
30 testing "test -d" "type_test -d" "d" "" ""
31 testing "test -f" "type_test -f" "fs" "" ""
32 testing "test -h" "type_test -h" "L" "" ""
33 testing "test -L" "type_test -L" "L" "" ""
34 testing "test -s" "type_test -s" "ds" "" ""
35 testing "test -S" "type_test -S" "" "" ""
36 testing "test -p" "type_test -p" "p" "" ""
[all …]
Dseq.test3 [ -f testing.sh ] && . testing.sh
7 testing "seq (exit with error)" "seq 2> /dev/null || echo yes" "yes\n" "" ""
8 testing "seq (exit with error)" "seq 1 2 3 4 2> /dev/null || echo yes" \
10 testing "seq one argument" "seq 3" "1\n2\n3\n" "" ""
11 testing "seq two arguments" "seq 5 7" "5\n6\n7\n" "" ""
12 testing "seq two arguments reversed" "seq 7 5" "" "" ""
13 testing "seq two arguments equal" "seq 3 3" "3\n" "" ""
14 testing "seq two arguments equal, arbitrary negative step" "seq 1 -15 1" \
16 testing "seq two arguments equal, arbitrary positive step" "seq 1 +15 1" \
18 testing "seq count up by 2" "seq 4 2 8" "4\n6\n8\n" "" ""
[all …]
Dprintf.test6 [ -f testing.sh ] && . testing.sh
13 testing "printf text" "$PRINTF TEXT" "TEXT" "" ""
14 testing "printf escapes" "$PRINTF 'one\ntwo\n\v\t\r\f\e\b\athree'" \
16 testing "printf %b escapes" "$PRINTF %b 'one\ntwo\n\v\t\r\f\e\b\athree'" \
18 testing "printf null" "$PRINTF 'x\0y' | od -An -tx1" ' 78 00 79\n' "" ""
19 testing "printf trailing slash" "$PRINTF 'abc\'" 'abc\' "" ""
37 testing "printf extra args" "$PRINTF 'abc%s!%ddef\n' X 42 ARG 36" \
40 testing "printf '%3c'" "$PRINTF '%3c' x" " x" "" ""
41 testing "printf '%-3c'" "$PRINTF '%-3c' x" "x " "" ""
42 testing "printf '%+d'" "$PRINTF '%+d' 5" "+5" "" ""
[all …]
Dexpr.test3 [ -f testing.sh ] && . testing.sh
5 testing "expr integer" "expr 5" "5\n" "" ""
6 testing "expr integer negative" "expr -5" "-5\n" "" ""
7 testing "expr string" "expr astring" "astring\n" "" ""
8 testing "expr 1 + 3" "expr 1 + 3" "4\n" "" ""
9 testing "expr 5 + 6 * 3" "expr 5 + 6 \* 3" "23\n" "" ""
10 testing "expr ( 5 + 6 ) * 3" "expr \( 5 + 6 \) \* 3" "33\n" "" ""
11 testing "expr * / same priority" "expr 4 \* 3 / 2" "6\n" "" ""
12 testing "expr / * same priority" "expr 3 / 2 \* 4" "4\n" "" ""
13 testing "expr & before |" "expr 0 \| 1 \& 0" "0\n" "" ""
[all …]
Dchmod.test42 testing "chmod $u$g$o $type" "chmod $u$g$o $type &&
49 testing "chmod 750 dir 640 file" \
54 testing "chmod 666 dir file" \
59 testing "chmod 765 *" "chmod 765 * &&
64 testing "chmod u=r dir file" "chmod u=r dir file &&
68 testing "chmod u=w dir file" "chmod u=w dir file &&
72 testing "chmod u=x dir file" "chmod u=x dir file &&
76 testing "chmod u+r dir file" "chmod u+r dir file &&
80 testing "chmod u+w dir file" "chmod u+w dir file &&
84 testing "chmod u+x dir file" "chmod u+x dir file &&
[all …]
Dcp.test3 [ -f testing.sh ] && . testing.sh
10 testing "cp not enough arguments [fail]" "cp one 2>/dev/null || echo yes" \
12 testing "cp -missing source [fail]" "cp missing two 2>/dev/null || echo yes" \
14 testing "cp file->file" "cp random two && cmp random two && echo yes" \
19 testing "cp file->dir" "cp random two && cmp random two/random && echo yes" \
22 testing "cp file->dir/file" \
25 testing "cp -r dir->missing" \
29 testing "cp -r dir->file [fail]" \
32 testing "cp -r dir hits file." \
38 testing "cp file->inaccessable [fail]" \
[all …]
Dxargs.test3 [ -f testing.sh ] && . testing.sh
7 testing "xargs" "xargs && echo yes" "hello\nyes\n" "" "hello"
8 testing "xargs spaces" "xargs" \
11 testing "xargs -n 0" "xargs -n 0 2>/dev/null || echo ok" "ok\n" \
13 testing "xargs -n 2" "xargs -n 2" "one two\nthree\n" "" "one \ntwo\n three"
14 testing "xargs -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 "xargs -s too long" "xargs -s 9 echo 2>/dev/null || echo ok" \
19 testing "xargs -s 13" "xargs -s 13 echo" "one two\nthree\n" "" "one \ntwo\n three"
20 testing "xargs -s 12" "xargs -s 12 echo" "one\ntwo\nthree\n" "" "one \ntwo\n three"
[all …]
Dcmp.test3 [ -f testing.sh ] && . testing.sh
5 testing "cmp not enough arguments [fail]" "cmp input 2>/dev/null || echo yes" "yes\n" "foo" ""
6 testing "cmp missing file1 [fail]" "cmp file1 input 2>/dev/null || echo yes" "yes\n" "foo" ""
16 testing "cmp identical files, stdout" "cmp input input2" "" "ab\nc\n" ""
17 testing "cmp identical files, return code" "cmp input input2 && echo yes" "yes\n" "ab\nc\n" ""
19 testing "cmp EOF, stderr" "cmp input input2 2>&1" "cmp: EOF on input2\n" "ab\nc\nx" ""
20 testing "cmp EOF, return code" "cmp input input2 2>/dev/null || echo yes" "yes\n" "ab\nc\nx" ""
22 testing "cmp diff, stdout" "cmp input input2" "input input2 differ: char 4, line 2\n" "ab\nx\nx" ""
23 testing "cmp diff, return code" "cmp input input2 > /dev/null || echo yes" "yes\n" "ab\nx\nx" ""
25 testing "cmp -s EOF, return code" "cmp -s input input2 || echo yes" "yes\n" "ab\nc\nx" ""
[all …]
Dmkdir.test3 [ -f testing.sh ] && . testing.sh
7 testing "mkdir" "mkdir one && [ -d one ] && echo yes" "yes\n" "" ""
11 testing "mkdir existing" \
15 testing "mkdir one two" \
19 testing "mkdir missing/one" \
22 testing "mkdir -p" \
27 testing "mkdir -p existing" "mkdir -p existing && echo yes" "yes\n" "" ""
31 testing "mkdir (default permissions)" \
35 testing "mkdir -m 124" \
40 testing "mkdir -p -m 653" \
[all …]
Dsort.test6 [ -f testing.sh ] && . testing.sh
10 testing "sort" "sort input" "a\nb\nc\n" "c\na\nb\n" ""
11 testing "sort #2" "sort input" "010\n1\n3\n" "3\n1\n010\n" ""
12 testing "sort stdin" "sort" "a\nb\nc\n" "" "b\na\nc\n"
13 testing "sort numeric" "sort -n input" "1\n3\n010\n" "3\n1\n010\n" ""
14 testing "sort reverse" "sort -r input" "wook\nwalrus\npoint\npabst\naargh\n" \
32 testing "sort one key" "sort -k4,4 input" \
44 testing "sort key range with numeric option" "sort -k2,3n input" \
55 testing "sort key range with numeric option and global reverse" \
67 testing "sort key range with multiple options" "sort -k2,3rn input" \
[all …]
Decho.test3 [ -f testing.sh ] && . testing.sh
14 testing "echo" "$CMD && echo yes" "\nyes\n" "" ""
15 testing "echo 1 2 3" "$CMD one two three" "one two three\n" "" ""
16 testing "echo with spaces" "$CMD 'one two three'" \
18 testing "echo -n" "$CMD -n" "" "" ""
19 testing "echo -n one" "$CMD -n one" "one" "" ""
20 testing "echo one -n" "$CMD one -n" "one -n\n" "" ""
21 testing "echo -en" "$CMD -en 'one\ntwo'" "one\ntwo" "" ""
22 testing "echo --hello" "$CMD --hello" "--hello\n" "" ""
23 testing "echo -e all" "$CMD -e '\a\b\c\f\n\r\t\v\\\0123'" \
[all …]
/external/guava/guava-gwt/test/com/google/common/testing/
DEqualsTesterTest_gwt.java16 package com.google.common.testing;
22 …com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTe… in testAddEqualObjectWithOArgConstructor()
28 …com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTe… in testAddNullEqualObject()
34 …com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTe… in testAddNullReference()
40 …com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTe… in testAddTwoEqualObjectsAtOnceWithNull()
46 …com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTe… in testEqualityGroups()
52 …com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTe… in testInvalidEqualsIncompatibleClass()
58 …com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTe… in testInvalidEqualsNull()
64 …com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTe… in testInvalidHashCode()
70 …com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTe… in testInvalidNotEqualsEqualObject()
[all …]
/external/gtest/include/gtest/
Dgtest-spi.h40 namespace testing {
144 ::testing::TestPartResultArray gtest_failures;\
145 ::testing::internal::SingleFailureChecker gtest_checker(\
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
149 ::testing::ScopedFakeTestPartResultReporter:: \
153 } while (::testing::internal::AlwaysFalse())
161 ::testing::TestPartResultArray gtest_failures;\
162 ::testing::internal::SingleFailureChecker gtest_checker(\
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
[all …]
/external/mesa3d/src/gtest/include/gtest/
Dgtest-spi.h40 namespace testing {
144 ::testing::TestPartResultArray gtest_failures;\
145 ::testing::internal::SingleFailureChecker gtest_checker(\
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
149 ::testing::ScopedFakeTestPartResultReporter:: \
153 } while (::testing::internal::AlwaysFalse())
161 ::testing::TestPartResultArray gtest_failures;\
162 ::testing::internal::SingleFailureChecker gtest_checker(\
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
[all …]
/external/google-breakpad/src/testing/gtest/include/gtest/
Dgtest-spi.h40 namespace testing {
144 ::testing::TestPartResultArray gtest_failures;\
145 ::testing::internal::SingleFailureChecker gtest_checker(\
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
149 ::testing::ScopedFakeTestPartResultReporter:: \
153 } while (::testing::internal::AlwaysFalse())
161 ::testing::TestPartResultArray gtest_failures;\
162 ::testing::internal::SingleFailureChecker gtest_checker(\
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
[all …]
/external/llvm/utils/unittest/googletest/include/gtest/
Dgtest-spi.h40 namespace testing {
145 ::testing::TestPartResultArray gtest_failures;\
146 ::testing::internal::SingleFailureChecker gtest_checker(\
147 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
149 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
150 ::testing::ScopedFakeTestPartResultReporter:: \
154 } while (::testing::internal::AlwaysFalse())
162 ::testing::TestPartResultArray gtest_failures;\
163 ::testing::internal::SingleFailureChecker gtest_checker(\
164 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
[all …]
/external/protobuf/gtest/include/gtest/
Dgtest-spi.h40 namespace testing {
144 ::testing::TestPartResultArray gtest_failures;\
145 ::testing::internal::SingleFailureChecker gtest_checker(\
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
149 ::testing::ScopedFakeTestPartResultReporter:: \
153 } while (::testing::internal::AlwaysFalse())
161 ::testing::TestPartResultArray gtest_failures;\
162 ::testing::internal::SingleFailureChecker gtest_checker(\
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
[all …]
/external/guava/guava-gwt/test/com/google/common/collect/testing/
DIteratorTesterTest_gwt.java16 package com.google.common.collect.testing;
22 …com.google.common.collect.testing.IteratorTesterTest testCase = new com.google.common.collect.test… in testCanCatchDifferentContents()
27 …com.google.common.collect.testing.IteratorTesterTest testCase = new com.google.common.collect.test… in testCanCatchDifferentLengthOfIteration()
32 …com.google.common.collect.testing.IteratorTesterTest testCase = new com.google.common.collect.test… in testCanCatchDifferentRemoveBehaviour()
37 …com.google.common.collect.testing.IteratorTesterTest testCase = new com.google.common.collect.test… in testCanCatchSunJavaBug6529795InTargetIterator()
42 …com.google.common.collect.testing.IteratorTesterTest testCase = new com.google.common.collect.test… in testCanWorkAroundSunJavaBug6529795InTargetIterator()
47 …com.google.common.collect.testing.IteratorTesterTest testCase = new com.google.common.collect.test… in testMismatchedException()
52 …com.google.common.collect.testing.IteratorTesterTest testCase = new com.google.common.collect.test… in testMissingException()
57 …com.google.common.collect.testing.IteratorTesterTest testCase = new com.google.common.collect.test… in testSimilarException()
62 …com.google.common.collect.testing.IteratorTesterTest testCase = new com.google.common.collect.test… in testUnexpectedException()
[all …]

12345678910>>...82