Searched full:testing (Results 1 – 25 of 5957) sorted by relevance
12345678910>>...239
| /third_party/toybox/tests/ |
| D | 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 …]
|
| D | 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" \ 31 testing "-H" "grep -H is foo foo2 foo3" "foo:this is test\nfoo:this is test2\nfoo2:hello this is te… [all …]
|
| D | 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" "" "" 13 testing "/ * same priority" "expr 3 / 2 \* 4" "4\n" "" "" [all …]
|
| D | find.test | 3 [ -f testing.sh ] && . testing.sh 19 #testing "name" "command" "result" "infile" "stdin" 21 # Testing operators 23 testing "-type l -a -type d -o -type p" \ 25 testing "-type l -type d -o -type p" "find dir -type l -type d -o -type p" \ 27 testing "-type l -o -type d -a -type p" \ 29 testing "-type l -o -type d -type p" "find dir -type l -o -type d -type p" \ 31 testing "-type l ( -type d -o -type l )" \ 33 testing "extra parentheses" \ 36 testing "( -type p -o -type d ) -type p" \ [all …]
|
| D | dd.test | 6 [ -f testing.sh ] && . testing.sh 11 #testing "name" "command" "result" "infile" "stdin" 14 testing "count=2" "dd if=input count=2 ibs=1 $opt" "hi" "high\n" "" 15 testing "count= 2" "dd if=input 'count= 2' ibs=1 $opt" "hi" "high\n" "" 16 toyonly testing "count=0x2" "dd if=input 'count=0x2' ibs=1 $opt" "hi" \ 18 testing "count=-2" "dd if=input 'count=-2' ibs=1 2>/dev/null || echo errored" "errored\n" "" "" 20 testing "if=(file)" "dd if=input $opt" "I WANT\n" "I WANT\n" "" 21 testing "of=(file)" "dd of=file $opt && cat file" "I WANT\n" "" "I WANT\n" 22 testing "if=file of=file" "dd if=input of=foo $opt && cat foo && rm -f foo" \ 24 testing "if=file | dd of=file" "dd if=input $opt | dd of=foo $opt && [all …]
|
| D | printf.test | 6 [ -f testing.sh ] && . testing.sh 8 #testing "name" "command" "result" "infile" "stdin" 13 testing "text" "$PRINTF TEXT" "TEXT" "" "" 14 testing "escapes" "$PRINTF 'one\ntwo\n\v\t\r\f\e\b\athree'" \ 16 testing "%b escapes" "$PRINTF %b 'one\ntwo\n\v\t\r\f\e\b\athree'" \ 18 testing "null" "$PRINTF 'x\0y' | od -An -tx1" ' 78 00 79\n' "" "" 19 testing "trailing slash" "$PRINTF 'abc\'" 'abc\' "" "" 20 testing "octal" "$PRINTF ' \1\002\429\045x'" ' \001\002"9%x' "" "" 21 testing "not octal" "$PRINTF '\9'" '\9' "" "" 22 testing "hex" "$PRINTF 'A\x1b\x2B\x3Q\xa' | od -An -tx1" \ [all …]
|
| D | 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" \ 16 testing "two arguments equal, arbitrary positive step" "seq 1 +15 1" \ [all …]
|
| D | 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 1" "xargs -n 1" "one\n" "" "one\n" 14 testing "-n 2" "xargs -n 2" "one two\nthree\n" "" "one \ntwo\n three" 15 testing "-n exact match" "xargs -n 3" "one two three\n" "" "one two three" 16 testing "xargs2" "xargs -n2" "one two\nthree four\nfive\n" "" \ 18 testing "-s too long" "xargs -s 9 echo 2>/dev/null; echo \$?" \ [all …]
|
| D | readlink.test | 3 [ -f testing.sh ] && . testing.sh 5 #testing "name" "command" "result" "infile" "stdin" 9 testing "missing" "readlink notfound || echo yes" "yes\n" "" "" 14 testing "file" "readlink file || echo yes" "yes\n" "" "" 15 testing "-f dir" "readlink -f ." "$APWD\n" "" "" 16 testing "-f missing" "readlink -f notfound" "$APWD/notfound\n" "" "" 19 testing "link" "readlink link" "notfound\n" "" "" 20 testing "links" "readlink link link" "notfound\nnotfound\n" "" "" 21 testing "link->missing" "readlink -f link" "$APWD/notfound\n" "" "" 23 testing "stays relative" "readlink link" "../../\n" "" "" [all …]
|
| D | tail.test | 3 [ -f testing.sh ] && . testing.sh 5 #testing "name" "command" "result" "infile" "stdin" 9 testing "tail" "tail && echo yes" "oneyes\n" "" "one" 10 testing "file" "tail file1" \ 12 testing "-n in bounds" "tail -n 3 file1" "nine\nten\neleven\n" "" "" 13 testing "-n out of bounds" "tail -n 999 file1" "$BIGTEST" "" "" 14 testing "-n+ in bounds" "tail -n +3 file1" \ 16 testing "-n+ outof bounds" "tail -n +999 file1" "" "" "" 17 testing "-c in bounds" "tail -c 27 file1" \ 19 testing "-c out of bounds" "tail -c 999 file1" "$BIGTEST" "" "" [all …]
|
| D | man.test | 4 [ -f testing.sh ] && . testing.sh 6 #testing "name" "command" "result" "infile" "stdin" 16 testing "man" "$MAN numbers" " one\n\n" "" "" 17 testing "man.section" "$MAN numbers.3" " three\n\n" "" "" 18 testing "section man" "$MAN 5 numbers" " five\n\n" "" "" 19 testing "/" "$MAN /" "" "" "" # Regression guard for !suf in zopen 35 testing "gawk alias" "$MAN toybox" " -F\n --foo-bar Does something.\n\n --no-alias Has no alias.\n\… 41 testing "bash bold,ita" "$MAN toybox" " sh-compatible Korn\n\n" "" "" 48 testing "bash,rsync quote" "$MAN toybox" " quoted 'string' \"server\" Don't\n\n" "" "" 51 testing "gawk quote" "$MAN toybox" " \"--\"\n\n" "" "" [all …]
|
| D | file.test | 3 [ -f testing.sh ] && . testing.sh 5 #testing "name" "command" "result" "infile" "stdin" 18 testing "directory" "file ." ".: directory\n" "" "" 19 testing "empty" "file empty" "empty: empty\n" "" "" 20 testing "bash.script" "file bash.script" "bash.script: /bin/bash script\n" "" "" 21 testing "bash.script with spaces" "file bash.script2" "bash.script2: /bin/bash script\n" "" "" 22 testing "env python script" "file env.python.script" "env.python.script: python script\n" "" "" 23 testing "ascii" "file ascii" "ascii: ASCII text\n" "" "" 24 testing "utf-8" "file $FILES/utf8/japan.txt | sed 's|$FILES/||'" \ 26 testing "java class" "file $FILES/java.class | sed 's|$FILES/||'" \ [all …]
|
| D | cp.test | 3 [ -f testing.sh ] && . testing.sh 11 #testing "name" "command" "result" "infile" "stdin" 13 testing "not enough arguments [fail]" "cp one 2>/dev/null || echo yes" \ 15 testing "-missing source [fail]" "cp missing two 2>/dev/null || echo yes" \ 17 testing "file->file" "cp random two && cmp random two && echo yes" \ 22 testing "file->dir" "cp random two && cmp random two/random && echo yes" \ 25 testing "file->dir/file" \ 28 testing "-r dir->missing" \ 32 testing "-r dir->file [fail]" \ 35 testing "-r dir hits file." \ [all …]
|
| D | chgrp.test | 3 [ -f testing.sh ] && . testing.sh 17 # Set up a little testing hierarchy 33 #testing "name" "command" "result" "infile" "stdin" 36 testing "dir" "$IN chgrp root dir $OUT" \ 38 testing "file" "$IN chgrp root dir/file $OUT" \ 40 testing "dir and file" "$IN chgrp root dir dir/file $OUT" \ 44 testing "symlink->file" "$IN chgrp root dir2/file $OUT" \ 46 testing "symlink->dir" "$IN chgrp root dir2/dir $OUT" \ 48 testing "-h symlink->dir" "$IN chgrp -h root dir2/dir $OUT" \ 52 testing "-h symlink->file" "$IN chgrp -h root dir2/file $OUT" \ [all …]
|
| D | test.test | 3 [ -f testing.sh ] && . testing.sh 5 #testing "name" "command" "result" "infile" "stdin" 30 testing "-b" "type_test -b" "" "" "" 31 testing "-c" "type_test -c" "L" "" "" 32 testing "-d" "type_test -d" "d" "" "" 33 testing "-f" "type_test -f" "fs" "" "" 34 testing "-h" "type_test -h" "L" "" "" 35 testing "-L" "type_test -L" "L" "" "" 36 testing "-s" "type_test -s" "ds" "" "" 37 testing "-S" "type_test -S" "" "" "" [all …]
|
| D | 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" \ 27 testing "-t CCYYMMDDhhmm" \ [all …]
|
| D | ls.test | 6 [ -f testing.sh ] && . testing.sh 8 #testing "name" "command" "result" "infile" "stdin" 11 # Creating test-file/dir for testing ls 20 testing "no argument" "$IN && ls; $OUT" "dir1\ndir2\nfile1.txt\nfile2.txt\n" "" "" 21 testing "with wild char" "$IN && ls file*; $OUT" "file1.txt\nfile2.txt\n" "" "" 22 testing "with wild char - long listing" "$IN && ls -1 file*; $OUT" "file1.txt\nfile2.txt\n" "" "" 23 testing "with -p" "$IN && ls -p; $OUT" "dir1/\ndir2/\nfile1.txt\nfile2.txt\n" "" "" 24 testing "with -a" "$IN && ls -a; $OUT" \ 26 testing "with -A" "$IN && ls -A; $OUT" \ 28 testing "with -d" "$IN && ls -d; $OUT" ".\n" "" "" [all …]
|
| D | date.test | 3 [ -f testing.sh ] && . testing.sh 5 #testing "name" "command" "result" "infile" "stdin" 12 testing "-d @0" "TZ=$tz date -d @0" "Thu Jan 1 01:00:00 CET 1970\n" "" "" 13 testing "-d @0x123 invalid" "TZ=$tz date -d @0x123 2>/dev/null || echo expected error" "expected er… 18 toyonly testing "-d MMDDhhmm" \ 20 toyonly testing "-d MMDDhhmmYY.SS" \ 23 toyonly testing "-d MMDDhhmmCCYY" \ 25 toyonly testing "-d MMDDhhmmCCYY.SS" \ 29 testing "-d 1980-01-02" "TZ=$tz date -d 1980-01-02" "Wed Jan 2 00:00:00 CET 1980\n" "" "" 30 testing "-d 1980-01-02 12:34" "TZ=$tz date -d '1980-01-02 12:34'" "Wed Jan 2 12:34:00 CET 1980\n" … [all …]
|
| D | fmt.test | 3 [ -f testing.sh ] && . testing.sh 11 #testing "name" "command" "result" "infile" "stdin" 13 testing "join" "fmt en.txt" "hello world this is some text\n" "" "" 14 testing "split" "fmt -w 10 en.txt" "hello\nworld\nthis is\nsome text\n" "" "" 15 testing "no room" "echo 'hello world' | fmt -w 1" "hello\nworld\n" "" "" 16 testing "blank line" "echo -e 'first paragraph of text\n\nand another' | fmt -w 10" "first\nparagra… 17 testing "ws-only line" "echo -e 'hello\n \nworld' | fmt -w 10" "hello\n\nworld\n" "" "" 18 testing "leading space" "echo ' hello world' | fmt -w 5" " hello\n world\n" "" "" 19 testing "utf8" "fmt -w 10 kr.txt" "동해물과\n백두산이\n마르고\n닳도록\n하나님이\n보우하사\n우리나라\n만세.\n" "" "" 21 testing "no newline" "fmt -w 10" "and\nthisisaverylongline\n" \ [all …]
|
| D | cut.test | 7 [ -f testing.sh ] && . testing.sh 9 #testing "name" "command" "result" "infile" "stdin" 11 # Creating test file for testing cut 16 testing "-b a,a,a" "cut -b 3,3,3 abc.txt" "e\np\ne\n" "" "" 17 testing "-b overlaps" "cut -b 1-3,2-5,7-9,9-10 abc.txt" \ 19 testing "-b encapsulated" "cut -b 3-8,4-6 abc.txt" "e:two:\npha:be\ne quic\n" \ 21 testing "-bO overlaps" \ 24 testing "high-low error" "cut -b 8-3 abc.txt 2>/dev/null || echo err" "err\n" \ 27 testing "-c a-b" "cut -c 4-10 abc.txt" ":two:th\nha:beta\n quick \n" "" "" 28 testing "-c a-" "cut -c 41- abc.txt" "\ntheta:iota:kappa:lambda:mu\ndog\n" "" "" [all …]
|
| D | cmp.test | 3 [ -f testing.sh ] && . testing.sh 6 testing "one argument match" 'cmp input && echo yes' "yes\n" \ 9 testing "one argument diff" 'cmp input | sed s/byte/char/' \ 12 testing "missing file1 [fail]" 'cmp file1 input 2>/dev/null || echo $?' "2\n" "foo" "" 15 #testing "directory [fail]" "cmp dir dir 2>/dev/null || echo yes" \ 22 testing "identical files, stdout" "cmp input input2" "" "ab\nc\n" "" 23 testing "identical files, return code" "cmp input input2 && echo yes" "yes\n" "ab\nc\n" "" 25 testing "EOF, stderr" "cmp input input2 2>&1" "cmp: EOF on input2\n" "ab\nc\nx" "" 26 testing "EOF, return code" "cmp input input2 2>/dev/null || echo yes" "yes\n" "ab\nc\nx" "" 28 testing "diff, stdout" "cmp input input2 | sed s/byte/char/" \ [all …]
|
| /third_party/skia/third_party/externals/tint/src/resolver/ |
| D | bitcast_validation_test.cc | 94 testing::Combine(testing::ValuesIn(kNumericScalars), 95 testing::ValuesIn(kNumericScalars))); 99 testing::Combine(testing::ValuesIn(kVec2NumericScalars), 100 testing::ValuesIn(kVec2NumericScalars))); 104 testing::Combine(testing::ValuesIn(kVec3NumericScalars), 105 testing::ValuesIn(kVec3NumericScalars))); 109 testing::Combine(testing::ValuesIn(kVec4NumericScalars), 110 testing::ValuesIn(kVec4NumericScalars))); 131 testing::Combine(testing::ValuesIn(kInvalid), 132 testing::ValuesIn(kNumericScalars))); [all …]
|
| /third_party/json/ |
| D | Makefile | 37 @echo "fuzz_testing - prepare fuzz testing of the JSON parser" 38 @echo "fuzz_testing_bson - prepare fuzz testing of the BSON parser" 39 @echo "fuzz_testing_cbor - prepare fuzz testing of the CBOR parser" 40 @echo "fuzz_testing_msgpack - prepare fuzz testing of the MessagePack parser" 41 @echo "fuzz_testing_ubjson - prepare fuzz testing of the UBJSON parser" 71 # the overall fuzz testing target 73 rm -fr fuzz-testing 74 mkdir -p fuzz-testing fuzz-testing/testcases fuzz-testing/out 76 mv tests/parse_afl_fuzzer fuzz-testing/fuzzer 77 find tests/data/json_tests -size -5k -name *json | xargs -I{} cp "{}" fuzz-testing/testcases [all …]
|
| /third_party/gn/src/util/test/ |
| D | test.h | 13 // This is a minimal googletest-like testing framework. It's originally derived 17 namespace testing { 35 extern testing::Test* g_current_test; 83 } // namespace testing 85 void RegisterTest(testing::Test* (*)(), const char*); 89 static testing::Test* Create() { \ 90 return testing::g_current_test = new y; \ 103 #define TEST(x, y) TEST_F_(testing::Test, x##y, #x "." #y) 120 if (const ::testing::TestResult test_result = (expression)) \ 126 ::testing::AssertHelper(__FILE__, __LINE__, message) = ::testing::Message() [all …]
|
| /third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/ |
| D | number_test.cpp | 15 #define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1)) 18 public testing::WithParamInterface<const char *> 25 using testing::_; in TEST_P() 31 INSTANTIATE_TEST_SUITE_P(InvalidIntegers, InvalidNumberTest, testing::Values("1a", "08", "0xG")); 35 testing::Values("1eg", "0.a", "0.1.2", ".0a", ".0.1")); 38 class IntegerTest : public SimplePreprocessorTest, public testing::WithParamInterface<IntegerParams> 55 testing::Combine(testing::Values(""), CLOSED_RANGE('0', '9'))); 59 testing::Combine(testing::Values("0"), CLOSED_RANGE('0', '7'))); 63 testing::Combine(testing::Values("0x", "0X"), CLOSED_RANGE('0', '9'))); 67 testing::Combine(testing::Values("0x", "0X"), CLOSED_RANGE('a', 'f'))); [all …]
|
12345678910>>...239