Home
last modified time | relevance | path

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

12345678910>>...343

/external/toybox/tests/
Dsed.test5 testing 'as cat' 'sed ""' "one\ntwo\nthree" "" "one\ntwo\nthree"
7 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"
18 testing 'as cat #2' "sed -n '1,\$p'" "one\ntwo\nthree" "" "one\ntwo\nthree"
[all …]
Dsh.test37 [ -f testing.sh ] && . testing.sh
64 testing '-c "" exit status 0' '$SH -c "" && echo $?' '0\n' '' ''
65 testing '-c args' "\$SH -c 'echo \$0,\$1,\$2,\$3' one two three four five" \
67 testing '-c args2' "\$SH -c 'echo \${10}' a b c d e f g h i j k l" "k\n" "" ""
68 testing '-c arg split' \
71 testing '-c arg split2' \
74 testing '-c arg count' "$SH -c 'echo \$#' 9 8 7 6 1 2 3 4" "7\n" "" ""
75 testing "exec3" '$C -c "{ exec readlink /proc/self/fd/0;} < /proc/self/exe"' \
77 testing 'arg shift' "$SH -c '"'for i in "" 2 1 1 1; do echo $? $1; shift $i; done'"' one two three …
79 testing '(subshell)' '$SH -c "(echo hello)"' 'hello\n' '' ''
[all …]
Dgrep.test3 [ -f testing.sh ] && . testing.sh
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…
34 testing "-b" "grep -b is input" "0:this is test\n13:this is test2\n" \
[all …]
Dexpr.test3 [ -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 …]
Dfind.test3 [ -f testing.sh ] && . testing.sh
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" \
38 testing "-type l -o -type d -type p -o -type f" \
41 testing "-type l,f" \
[all …]
Ddd.test6 [ -f testing.sh ] && . testing.sh
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 &&
26 testing "(stdout)" "dd $opt" "I WANT\n" "" "I WANT\n"
[all …]
Ddate.test3 [ -f testing.sh ] && . testing.sh
16 testing "-d @0" "TZ=$tz date -d @0" "Thu Jan 1 01:00:00 CET 1970\n" "" ""
17 testing "-d @0x123 invalid" "TZ=$tz date -d @0x123 2>/dev/null || echo expected error" "expected er…
22 toyonly testing "-d MMDDhhmm" \
24 toyonly testing "-d MMDDhhmmYY.SS" \
27 toyonly testing "-d MMDDhhmmCCYY" \
29 toyonly testing "-d MMDDhhmmCCYY.SS" \
33 testing "-d 1980-01-02" "TZ=$tz date -d 1980-01-02" "Wed Jan 2 00:00:00 CET 1980\n" "" ""
34 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" …
35 testing "-d 1980-01-02 12:34:56" "TZ=$tz date -d '1980-01-02 12:34:56'" "Wed Jan 2 12:34:56 CET 19…
[all …]
Dseq.test3 [ -f testing.sh ] && . testing.sh
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" \
18 testing "count up by 2" "seq 4 2 8" "4\n6\n8\n" "" ""
[all …]
Dxargs.test3 [ -f testing.sh ] && . testing.sh
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 \$?" \
20 testing "-s 13" "xargs -s 13 echo" "one two\nthree\n" "" "one \ntwo\n three"
[all …]
Dreadlink.test3 [ -f testing.sh ] && . testing.sh
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" "" ""
26 testing "-f link->file" "readlink -f link" "$APWD/file\n" "" ""
[all …]
Dsort.test6 [ -f testing.sh ] && . testing.sh
10 testing "unknown argument" 'sort --oops 2>/dev/null ; echo $?' "2\n" "" ""
11 testing "sort" "sort input" "a\nb\nc\n" "c\na\nb\n" ""
12 testing "#2" "sort input" "010\n1\n3\n" "3\n1\n010\n" ""
13 testing "stdin" "sort" "a\nb\nc\n" "" "b\na\nc\n"
14 testing "numeric" "sort -n input" "1\n3\n010\n" "3\n1\n010\n" ""
15 testing "reverse" "sort -r input" "wook\nwalrus\npoint\npabst\naargh\n" \
17 testing "sort -o" "sort input -o output && cat output" "a\nb\nc\n" "c\na\nb\n" ""
18 testing "sort -o same" "sort input -o input && cat input" "a\nb\nc\n" "c\na\nb\n" ""
32 testing "one key" "sort -k4,4 input" \
[all …]
Dtail.test3 [ -f testing.sh ] && . testing.sh
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" "" ""
20 testing "-c+ in bounds" "tail -c +27 file1" \
[all …]
Dcut.test7 [ -f testing.sh ] && . testing.sh
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" "" ""
29 testing "-c -b" "cut -c -39 abc.txt" \
32 testing "-c a" "cut -c 40 abc.txt" "\n:\n \n" "" ""
[all …]
Dprintf.test6 [ -f testing.sh ] && . testing.sh
13 testing "text" "$PRINTF TEXT" "TEXT" "" ""
18 testing "escapes" "$PRINTF 'one\ntwo\n\v\t\r\f\e\b\athree'" \
20 testing "%b escapes" "$PRINTF %b 'one\ntwo\n\v\t\r\f\e\b\athree'" \
23 testing "null" "$PRINTF 'x\0y' | od -An -tx1" ' 78 00 79\n' "" ""
24 testing "trailing slash" "$PRINTF 'abc\'" 'abc\' "" ""
42 testing "extra args" "$PRINTF 'abc%s!%ddef\n' X 42 ARG 36" \
45 testing "'%3c'" "$PRINTF '%3c' x" " x" "" ""
46 testing "'%-3c'" "$PRINTF '%-3c' x" "x " "" ""
47 testing "'%+d'" "$PRINTF '%+d' 5" "+5" "" ""
[all …]
/external/tensorflow/tensorflow/lite/micro/kernels/
Dsoftmax_test.cc24 namespace testing { namespace
333 float output_data[tflite::testing::flat_size_1d]; in TF_LITE_MICRO_TEST()
334 tflite::testing::TestSoftmaxFloat( in TF_LITE_MICRO_TEST()
335 tflite::testing ::shape_1d, tflite::testing::input_data_1d, in TF_LITE_MICRO_TEST()
336 tflite::testing::shape_1d, tflite::testing::golden_1d, output_data); in TF_LITE_MICRO_TEST()
343 uint8_t input_quantized[tflite::testing::flat_size_1d]; in TF_LITE_MICRO_TEST()
344 uint8_t golden_quantized[tflite::testing::flat_size_1d]; in TF_LITE_MICRO_TEST()
345 uint8_t output_data[tflite::testing::flat_size_1d]; in TF_LITE_MICRO_TEST()
346 tflite::testing::TestSoftmaxQuantized( in TF_LITE_MICRO_TEST()
347 tflite::testing::shape_1d, tflite::testing::input_data_1d, in TF_LITE_MICRO_TEST()
[all …]
Dfully_connected_test.cc28 namespace testing { namespace
340 float output_data[tflite::testing::simple_output_size]; in TF_LITE_MICRO_TEST()
342 tflite::testing::TestFullyConnectedFloat( in TF_LITE_MICRO_TEST()
343 tflite::testing::simple_input_dims, in TF_LITE_MICRO_TEST()
344 tflite::testing::simple_input_data, in TF_LITE_MICRO_TEST()
345 tflite::testing::simple_weights_dims, in TF_LITE_MICRO_TEST()
346 tflite::testing::simple_weights_data, in TF_LITE_MICRO_TEST()
347 tflite::testing::simple_bias_dims, tflite::testing::simple_bias_data, in TF_LITE_MICRO_TEST()
348 tflite::testing::simple_golden, tflite::testing::simple_output_dims, in TF_LITE_MICRO_TEST()
361 uint8_t input_quantized[tflite::testing::simple_input_size]; in TF_LITE_MICRO_TEST()
[all …]
Ddetection_postprocess_test.cc27 namespace testing { namespace
224 tflite::testing::TestDetectionPostprocess( in TF_LITE_MICRO_TEST()
225 tflite::testing::kInputShape1, tflite::testing::kInputData1, in TF_LITE_MICRO_TEST()
226 tflite::testing::kInputShape2, tflite::testing::kInputData2, in TF_LITE_MICRO_TEST()
227 tflite::testing::kInputShape3, tflite::testing::kInputData3, in TF_LITE_MICRO_TEST()
228 tflite::testing::kOutputShape1, output_data1, in TF_LITE_MICRO_TEST()
229 tflite::testing::kOutputShape2, output_data2, in TF_LITE_MICRO_TEST()
230 tflite::testing::kOutputShape3, output_data3, in TF_LITE_MICRO_TEST()
231 tflite::testing::kOutputShape4, output_data4, tflite::testing::kGolden1, in TF_LITE_MICRO_TEST()
232 tflite::testing::kGolden2, tflite::testing::kGolden3, in TF_LITE_MICRO_TEST()
[all …]
Dconv_test.cc26 namespace testing { namespace
68 float output_data[tflite::testing::kOutputElements]; in TF_LITE_MICRO_TEST()
72 tflite::testing::TestConvFloat( in TF_LITE_MICRO_TEST()
73 tflite::testing::kInputShape, tflite::testing::kInputData, in TF_LITE_MICRO_TEST()
74 tflite::testing::kFilterShape, tflite::testing::kFilterData, in TF_LITE_MICRO_TEST()
75 tflite::testing::kBiasShape, tflite::testing::kBiasData, in TF_LITE_MICRO_TEST()
76 tflite::testing::kOutputShape, tflite::testing::kGoldenData, in TF_LITE_MICRO_TEST()
77 &tflite::testing::common_conv_params, tflite::Register_CONV_2D(), in TF_LITE_MICRO_TEST()
94 tflite::testing::TestConvFloat( in TF_LITE_MICRO_TEST()
95 tflite::testing::kInputShape, tflite::testing::kInputData, in TF_LITE_MICRO_TEST()
[all …]
Dmul_test.cc23 namespace testing { namespace
132 float output_data[tflite::testing::flat_size_simple]; in TF_LITE_MICRO_TEST()
134 tflite::testing::TestMulFloat( in TF_LITE_MICRO_TEST()
135 tflite::testing::dims_simple, tflite::testing::input1_simple, in TF_LITE_MICRO_TEST()
136 tflite::testing::dims_simple, tflite::testing::input2_simple, in TF_LITE_MICRO_TEST()
137 tflite::testing::dims_simple, tflite::testing::golden_simple, output_data, in TF_LITE_MICRO_TEST()
142 float output_data[tflite::testing::flat_size_simple]; in TF_LITE_MICRO_TEST()
144 tflite::testing::TestMulFloat( in TF_LITE_MICRO_TEST()
145 tflite::testing::dims_simple, tflite::testing::input1_simple, in TF_LITE_MICRO_TEST()
146 tflite::testing::dims_simple, tflite::testing::input2_simple, in TF_LITE_MICRO_TEST()
[all …]
Dreduce_test.cc24 namespace testing { namespace
229 float output_data[tflite::testing::kOutputElements2D]; in TF_LITE_MICRO_TEST()
233 tflite::testing::TestMeanFloatInput4D( in TF_LITE_MICRO_TEST()
234 tflite::testing::kInputShape2D, tflite::testing::kInputData2D, in TF_LITE_MICRO_TEST()
235 tflite::testing::kAxisShape2D, tflite::testing::kAxisData2D, in TF_LITE_MICRO_TEST()
236 tflite::testing::kOutputShape2D, tflite::testing::kGoldenData2D, in TF_LITE_MICRO_TEST()
241 int8_t expected_output_data_quant[tflite::testing::kOutputElements2D]; in TF_LITE_MICRO_TEST()
242 int8_t output_data_quant[tflite::testing::kOutputElements2D]; in TF_LITE_MICRO_TEST()
243 int8_t input_data_quant[tflite::testing::kInputElements2D]; in TF_LITE_MICRO_TEST()
254 tflite::testing::TestMeanOpQuantized<int8_t>( in TF_LITE_MICRO_TEST()
[all …]
/external/grpc-grpc/test/cpp/ext/filters/census/
Dstats_plugin_end2end_test.cc35 namespace testing { namespace
42 using ::opencensus::stats::testing::TestUtils;
59 class StatsPluginEnd2EndTest : public ::testing::Test {
144 ::testing::UnorderedElementsAre(::testing::Pair( in TEST_F()
145 ::testing::ElementsAre(client_method_name_), 17))); in TEST_F()
147 ::testing::UnorderedElementsAre(::testing::Pair( in TEST_F()
148 ::testing::ElementsAre(server_method_name_), 17))); in TEST_F()
151 ::testing::Pair(::testing::ElementsAre("OK"), 1), in TEST_F()
152 ::testing::Pair(::testing::ElementsAre("CANCELLED"), 1), in TEST_F()
153 ::testing::Pair(::testing::ElementsAre("UNKNOWN"), 1), in TEST_F()
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dgoogle-upgrade-googletest-case.cpp64 class FooTest : public testing::Test {
82 template <typename T> class FooTypedTest : public testing::Test {
100 class BarTest : public testing::Test {
122 class BarTest3 : public testing::Test {
134 namespace testing { namespace
145 testing::Test::SetUpTestCase(); in Test()
146 testing::Test::TearDownTestCase(); in Test()
160 #define TEST_SET_UP_TEST_CASE_MACRO_WARN_ONLY ::testing::Test::SetUpTestCase
163 testing::Test::SetUpTestCase(); in setUpTearDownCallAndReference()
170 testing::Test::TearDownTestCase(); in setUpTearDownCallAndReference()
[all …]
/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/
Dconv_slicing_test.cc33 namespace testing { namespace
287 int8_t input_quantized[tflite::testing::kInput1Elements]; in TF_LITE_MICRO_TEST()
288 int8_t filter_quantized[tflite::testing::kFilter1Elements]; in TF_LITE_MICRO_TEST()
289 int32_t bias_quantized[tflite::testing::kBias1Elements]; in TF_LITE_MICRO_TEST()
290 int8_t golden_quantized[tflite::testing::kOutput1Elements]; in TF_LITE_MICRO_TEST()
293 int zero_points[tflite::testing::kBias1Elements + 1]; in TF_LITE_MICRO_TEST()
294 float scales[tflite::testing::kBias1Elements + 1]; in TF_LITE_MICRO_TEST()
296 tflite::testing::TestConvQuantizedPerChannel( in TF_LITE_MICRO_TEST()
297 tflite::testing::kInput1Shape, tflite::testing::kInput1Data, in TF_LITE_MICRO_TEST()
299 tflite::testing::kFilter1Shape, tflite::testing::kFilter1Data, in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/testing/
Dgenerate_examples_lib.py46 from tensorflow.lite.testing.op_tests.abs import make_abs_tests
47 from tensorflow.lite.testing.op_tests.add_n import make_add_n_tests
48 from tensorflow.lite.testing.op_tests.arg_min_max import make_arg_min_max_tests
49 from tensorflow.lite.testing.op_tests.batch_to_space_nd import make_batch_to_space_nd_tests
50 from tensorflow.lite.testing.op_tests.binary_op import make_add_tests, make_div_tests, make_sub_tes…
51 from tensorflow.lite.testing.op_tests.cast import make_cast_tests
52 from tensorflow.lite.testing.op_tests.ceil import make_ceil_tests
53 from tensorflow.lite.testing.op_tests.concat import make_concat_tests
54 from tensorflow.lite.testing.op_tests.constant import make_constant_tests
55 from tensorflow.lite.testing.op_tests.conv import make_conv_tests
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_matchers.h25 namespace testing {
27 class HloMatcher : public ::testing::MatcherInterface<const HloInstruction*> {
30 std::vector<::testing::Matcher<const HloInstruction*>> operands) in HloMatcher()
34 ::testing::MatchResultListener* listener) const override;
40 std::vector<::testing::Matcher<const HloInstruction*>> operands_;
51 ::testing::MatchResultListener* listener) const override;
62 std::vector<::testing::Matcher<const HloInstruction*>> operands) in HloComparisonMatcher()
66 ::testing::MatchResultListener* listener) const override;
76 HloGetTupleElementMatcher(::testing::Matcher<const HloInstruction*> operand, in HloGetTupleElementMatcher()
82 ::testing::MatchResultListener* listener) const override;
[all …]

12345678910>>...343