Home
last modified time | relevance | path

Searched refs:testcase (Results 1 – 25 of 2097) sorted by relevance

12345678910>>...84

/external/google-breakpad/src/processor/
Dstatic_address_map_unittest.cc54 for (int testcase = 0; testcase < kNumberTestCases; ++testcase) { in SetUp() local
55 testdata[testcase] = new int[testsize[testcase]]; in SetUp()
75 for (int testcase = 0; testcase < kNumberTestCases; ++testcase) { in SetUp() local
76 for (int data_item = 0; data_item < testsize[testcase]; ++data_item) { in SetUp()
78 sstream << "test " << testdata[testcase][data_item]; in SetUp()
79 addr_map[testcase].Store(testdata[testcase][data_item], sstream.str()); in SetUp()
81 map_data[testcase] = serializer.Serialize(addr_map[testcase], NULL); in SetUp()
82 test_map[testcase] = TestMap(map_data[testcase]); in SetUp()
93 void CompareRetrieveResult(int testcase, int target) { in CompareRetrieveResult() argument
102 found = addr_map[testcase].Retrieve(target, &entry, &address); in CompareRetrieveResult()
[all …]
Dstatic_map_unittest.cc142 int testcase = 0; in SetUp() local
145 map_data[testcase] = in SetUp()
146 serializer.Serialize(std_map[testcase], &size[testcase]); in SetUp()
147 test_map[testcase] = TestMap(map_data[testcase]); in SetUp()
148 ++testcase; in SetUp()
151 std_map[testcase].insert(std::make_pair(2, 8)); in SetUp()
152 map_data[testcase] = in SetUp()
153 serializer.Serialize(std_map[testcase], &size[testcase]); in SetUp()
154 test_map[testcase] = TestMap(map_data[testcase]); in SetUp()
155 ++testcase; in SetUp()
[all …]
/external/mesa3d/src/freedreno/fdl/
Dfd_layout_test.c32 bool fdl_test_layout(const struct testcase *testcase, int gpu_id) in fdl_test_layout() argument
35 .ubwc = testcase->layout.ubwc, in fdl_test_layout()
36 .tile_mode = testcase->layout.tile_mode, in fdl_test_layout()
40 int max_size = MAX2(testcase->layout.width0, testcase->layout.height0); in fdl_test_layout()
42 while (max_size > 1 && testcase->layout.slices[mip_levels].pitch) { in fdl_test_layout()
49 testcase->format, in fdl_test_layout()
50 MAX2(testcase->layout.nr_samples, 1), in fdl_test_layout()
51 testcase->layout.width0, in fdl_test_layout()
52 MAX2(testcase->layout.height0, 1), in fdl_test_layout()
53 MAX2(testcase->layout.depth0, 1), in fdl_test_layout()
[all …]
/external/icu/icu4c/source/test/perf/unisetperf/
Dunisetperf.cpp138 Command(const UnicodeSetPerformanceTest &testcase) : testcase(testcase) {} in Command() argument
148 return testcase.countInputCodePoints+testcase.spanCount-1; in getOperationsPerIteration()
152 return testcase.spanCount; in getEventsPerIteration()
155 const UnicodeSetPerformanceTest &testcase; member in Command
160 Contains(const UnicodeSetPerformanceTest &testcase) : Command(testcase) { in Contains() argument
166 if(testcase.set.contains(c)) { in Contains()
170 if(set!=testcase.set) { in Contains()
175 static UPerfFunction* get(const UnicodeSetPerformanceTest &testcase) { in get() argument
176 return new Contains(testcase); in get()
179 const UnicodeSet &set=testcase.set; in call()
[all …]
/external/icu/icu4c/source/test/perf/utrie2perf/
Dutrie2perf.cpp99 Command(const UTrie2PerfTest &testcase) : testcase(testcase) {} in Command() argument
108 return testcase.countInputCodePoints; in getOperationsPerIteration()
113 const UTrie2PerfTest &testcase; member in Command
119 CheckFCD(const UTrie2PerfTest &testcase) : Command(testcase) {} in CheckFCD() argument
121 static UPerfFunction* get(const UTrie2PerfTest &testcase) { in get() argument
122 return new CheckFCD(testcase); in get()
126 qcResult=unorm_quickCheck(testcase.getBuffer(), testcase.getBufferLen(), in call()
139 CheckFCDAlwaysGet(const UTrie2PerfTest &testcase) : Command(testcase) {}
141 static UPerfFunction* get(const UTrie2PerfTest &testcase) {
142 return new CheckFCDAlwaysGet(testcase);
[all …]
/external/rust/crates/serde_cbor/tests/
Dstd_types.rs21 macro_rules! testcase { macro
82 testcase!(test_bool_false, bool, false, "f4");
83 testcase!(test_bool_true, bool, true, "f5");
84 testcase!(test_isize_neg_256, isize, -256, "38ff");
85 testcase!(test_isize_neg_257, isize, -257, "390100");
86 testcase!(test_isize_255, isize, 255, "18ff");
87 testcase!(test_i8_5, i8, 5, "05");
88 testcase!(test_i8_23, i8, 23, "17");
89 testcase!(test_i8_24, i8, 24, "1818");
90 testcase!(test_i8_neg_128, i8, -128, "387f");
[all …]
/external/ltp/testcases/network/can/filter-tests/
Dcan_filter.c69 canid_t calc_id(int testcase) in calc_id() argument
73 if (testcase & 1) in calc_id()
75 if (testcase & 2) in calc_id()
81 canid_t calc_mask(int testcase) in calc_mask() argument
85 if (testcase > 15) in calc_mask()
88 if (testcase & 4) in calc_mask()
90 if (testcase & 8) in calc_mask()
104 int testcase; in main() local
142 for (testcase = 0; testcase < TC; testcase++) { in main()
144 rfilter.can_id = calc_id(testcase); in main()
[all …]
/external/pdfium/fxbarcode/pdf417/
DBC_PDF417HighLevelEncoder_unittest.cpp41 const EncodeHighLevelCase& testcase = kEncodeHighLevelCases[i]; in TEST() local
42 WideStringView input(testcase.input); in TEST()
43 WideString expected(testcase.expected, testcase.expected_length); in TEST()
85 const EncodeBinaryCase& testcase = kEncodeBinaryCases[i]; in TEST() local
87 size_t input_length = strlen(testcase.input); in TEST()
90 input_array[j] = testcase.input[j]; in TEST()
92 WideString expected(testcase.expected, testcase.expected_length); in TEST()
94 CBC_PDF417HighLevelEncoder::EncodeBinary(input_array, testcase.offset, in TEST()
95 testcase.count, testcase.startmode, in TEST()
152 const EncodeNumericCase& testcase = kEncodeNumericCases[i]; in TEST() local
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/tools/
Dplaceholder.py37 def instantiate_for_spirv_args(self, testcase): argument
48 def instantiate_for_expectation(self, testcase): argument
73 def instantiate_for_spirv_args(self, testcase): argument
80 dir=testcase.directory, suffix=self.suffix)
86 def instantiate_for_expectation(self, testcase): argument
101 def instantiate_for_spirv_args(self, testcase): argument
108 dir=testcase.directory, suffix=self.suffix)
114 def instantiate_for_expectation(self, testcase): argument
132 def instantiate_for_spirv_args(self, testcase): argument
139 dir=testcase.directory, suffix=self.suffix)
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/tools/
Dplaceholder.py37 def instantiate_for_spirv_args(self, testcase): argument
48 def instantiate_for_expectation(self, testcase): argument
73 def instantiate_for_spirv_args(self, testcase): argument
80 dir=testcase.directory, suffix=self.suffix)
86 def instantiate_for_expectation(self, testcase): argument
101 def instantiate_for_spirv_args(self, testcase): argument
108 dir=testcase.directory, suffix=self.suffix)
114 def instantiate_for_expectation(self, testcase): argument
132 def instantiate_for_spirv_args(self, testcase): argument
139 dir=testcase.directory, suffix=self.suffix)
[all …]
/external/deqp-deps/SPIRV-Tools/test/tools/
Dplaceholder.py37 def instantiate_for_spirv_args(self, testcase): argument
48 def instantiate_for_expectation(self, testcase): argument
73 def instantiate_for_spirv_args(self, testcase): argument
80 dir=testcase.directory, suffix=self.suffix)
86 def instantiate_for_expectation(self, testcase): argument
101 def instantiate_for_spirv_args(self, testcase): argument
108 dir=testcase.directory, suffix=self.suffix)
114 def instantiate_for_expectation(self, testcase): argument
132 def instantiate_for_spirv_args(self, testcase): argument
139 dir=testcase.directory, suffix=self.suffix)
[all …]
/external/grpc-grpc/tools/interop_matrix/
Dcreate_testcases.sh36 [ -z "$testcase" ] && testcase=$CMDS_SH
37 echo "testcase: $testcase"
38 if [ -e $testcase ]; then
40 eval docker_image=$(grep -oe '${docker_image:=.*}' $testcase)
71 testcase=$TESTCASES_DIR/$1__$RELEASE
72 if [ -e $testcase ]; then
73 echo "Updating: $testcase"
74 diff $testcase $CMDS_SH || true
76 mv $CMDS_SH $testcase
77 chmod a+x $testcase
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/interop_matrix/
Dcreate_testcases.sh36 [ -z "$testcase" ] && testcase=$CMDS_SH
37 echo "testcase: $testcase"
38 if [ -e $testcase ]; then
40 eval docker_image=$(grep -oe '${docker_image:=.*}' $testcase)
71 testcase=$TESTCASES_DIR/$1__$RELEASE
72 if [ -e $testcase ]; then
73 echo "Updating: $testcase"
74 diff $testcase $CMDS_SH || true
76 mv $CMDS_SH $testcase
77 chmod a+x $testcase
[all …]
/external/libevent/test/
Dtinytest.c107 testcase_run_in_thread_(const struct testcase_t *testcase, void *env) in testcase_run_in_thread_() argument
115 &(testcase->fn), in testcase_run_in_thread_()
154 testcase_run_bare_(const struct testcase_t *testcase) in testcase_run_bare_() argument
158 if (testcase->setup) { in testcase_run_bare_()
159 env = testcase->setup->setup_fn(testcase); in testcase_run_bare_()
170 cur_test_outcome = testcase_run_in_thread_(testcase, env); in testcase_run_bare_()
173 testcase->fn(env); in testcase_run_bare_()
177 testcase->fn(env); in testcase_run_bare_()
182 if (testcase->setup) { in testcase_run_bare_()
183 if (testcase->setup->cleanup_fn(testcase, env) == 0) in testcase_run_bare_()
[all …]
Dregress_main.c239 basic_test_setup(const struct testcase_t *testcase) in basic_test_setup() argument
248 if (testcase->flags & TT_ENABLE_IOCP_FLAG) in basic_test_setup()
252 if (testcase->flags & TT_ENABLE_DEBUG_MODE && in basic_test_setup()
258 if (testcase->flags & TT_NEED_THREADS) { in basic_test_setup()
259 if (!(testcase->flags & TT_FORK)) in basic_test_setup()
272 if (testcase->flags & TT_NEED_SOCKETPAIR) { in basic_test_setup()
288 if (testcase->flags & TT_NEED_BASE) { in basic_test_setup()
289 if (testcase->flags & TT_LEGACY) in basic_test_setup()
296 if (testcase->flags & TT_ENABLE_IOCP_FLAG) { in basic_test_setup()
303 if (testcase->flags & TT_NEED_DNS) { in basic_test_setup()
[all …]
/external/python/cryptography/tests/wycheproof/
Dtest_aes.py25 key = binascii.unhexlify(wycheproof.testcase["key"])
26 iv = binascii.unhexlify(wycheproof.testcase["iv"])
27 msg = binascii.unhexlify(wycheproof.testcase["msg"])
28 ct = binascii.unhexlify(wycheproof.testcase["ct"])
52 key = binascii.unhexlify(wycheproof.testcase["key"])
53 iv = binascii.unhexlify(wycheproof.testcase["iv"])
54 aad = binascii.unhexlify(wycheproof.testcase["aad"])
55 msg = binascii.unhexlify(wycheproof.testcase["msg"])
56 ct = binascii.unhexlify(wycheproof.testcase["ct"])
57 tag = binascii.unhexlify(wycheproof.testcase["tag"])
[all …]
Dtest_rsa.py73 binascii.unhexlify(wycheproof.testcase["sig"]),
74 binascii.unhexlify(wycheproof.testcase["msg"]),
81 binascii.unhexlify(wycheproof.testcase["sig"]),
82 binascii.unhexlify(wycheproof.testcase["msg"]),
107 binascii.unhexlify(wycheproof.testcase["sig"]),
108 binascii.unhexlify(wycheproof.testcase["msg"]),
118 binascii.unhexlify(wycheproof.testcase["sig"]),
119 binascii.unhexlify(wycheproof.testcase["msg"]),
Dtest_keywrap.py18 wrapping_key = binascii.unhexlify(wycheproof.testcase["key"])
19 key_to_wrap = binascii.unhexlify(wycheproof.testcase["msg"])
20 expected = binascii.unhexlify(wycheproof.testcase["ct"])
43 wrapping_key = binascii.unhexlify(wycheproof.testcase["key"])
44 key_to_wrap = binascii.unhexlify(wycheproof.testcase["msg"])
45 expected = binascii.unhexlify(wycheproof.testcase["ct"])
50 wycheproof.testcase["comment"] != "invalid size of wrapped key"
/external/icu/icu4c/source/test/perf/utfperf/
Dutfperf.cpp125 Command(const UtfPerformanceTest &testcase) in Command() argument
126 : testcase(testcase), in Command()
127 input(testcase.getBuffer()), inputLength(testcase.getBufferLen()), in Command()
129 cnv=ucnv_open(testcase.charset, &errorCode); in Command()
131 …fprintf(stderr, "error opening converter for \"%s\" - %s\n", testcase.charset, u_errorName(errorCo… in Command()
146 const UtfPerformanceTest &testcase; member in Command
156 Roundtrip(const UtfPerformanceTest &testcase) : Command(testcase) {} in Roundtrip() argument
158 static UPerfFunction* get(const UtfPerformanceTest &testcase) { in get() argument
159 Roundtrip * t = new Roundtrip(testcase); in get()
183 pInterLimit=intermediate+testcase.chunkLength; in call()
[all …]
/external/flatbuffers/tests/
Dgo_test.go331 type testcase struct {
336 testForOriginalValues := []testcase{
337 testcase{"Hp", func() bool { return monster.Hp() == 80 }},
338 testcase{"Mana", func() bool { return monster.Mana() == 150 }},
339 testcase{"Testbool", func() bool { return monster.Testbool() == true }},
340 testcase{"Pos.X'", func() bool { return monster.Pos(nil).X() == float32(1.0) }},
341 testcase{"Pos.Y'", func() bool { return monster.Pos(nil).Y() == float32(2.0) }},
342 testcase{"Pos.Z'", func() bool { return monster.Pos(nil).Z() == float32(3.0) }},
343 testcase{"Pos.Test1'", func() bool { return monster.Pos(nil).Test1() == float64(3.0) }},
344 testcase{"Pos.Test2'", func() bool { return monster.Pos(nil).Test2() == example.ColorGreen }},
[all …]
/external/ltp/testcases/kernel/syscalls/swapoff/
Dswapoff02.c55 } testcase[] = { variable
75 if (testcase[i].setup) in main()
76 testcase[i].setup(); in main()
78 TEST(ltp_syscall(__NR_swapoff, testcase[i].path)); in main()
80 if (testcase[i].cleanup) in main()
81 testcase[i].cleanup(); in main()
84 && (TEST_ERRNO == testcase[i].exp_errno)) { in main()
88 testcase[i].exp_errval, in main()
89 testcase[i].err_desc); in main()
95 testcase[i].exp_errno, in main()
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dmultioutput_fusion_test.cc196 const char* testcase = R"( in XLA_TEST_F() local
213 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
226 const char* testcase = R"( in XLA_TEST_F() local
244 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
251 const char* testcase = R"( in XLA_TEST_F() local
274 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
298 const string testcase = absl::StrCat(kScalarOps, R"( in XLA_TEST_F() local
314 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
320 const string testcase = absl::StrCat(kScalarOps, R"( in XLA_TEST_F() local
336 auto module = ParseAndReturnVerifiedModule(testcase).ValueOrDie(); in XLA_TEST_F()
[all …]
/external/ltp/testcases/kernel/syscalls/sysfs/
Dsysfs05.c88 } testcase[] = { variable
95 int TST_TOTAL = ARRAY_SIZE(testcase);
114 && (TEST_ERRNO == testcase[i].exp_errno)) { in main()
118 testcase[i].exp_errval, in main()
119 testcase[i].err_desc); in main()
124 testcase[i].exp_errno, in main()
125 testcase[i].exp_errval, TEST_ERRNO); in main()
Dsysfs06.c89 } testcase[] = { variable
96 int TST_TOTAL = ARRAY_SIZE(testcase);
118 && (TEST_ERRNO == testcase[i].exp_errno)) { in main()
122 testcase[i].exp_errval, in main()
123 testcase[i].err_desc); in main()
128 testcase[i].exp_errno, in main()
129 testcase[i].exp_errval, TEST_ERRNO); in main()
/external/oss-fuzz/infra/cifuzz/
Dfuzz_target.py140 testcase = self.get_testcase(stderr)
141 if not testcase:
147 if self.is_crash_reportable(testcase):
149 return FuzzResult(testcase, stderr)
175 def is_reproducible(self, testcase, target_path): argument
201 'TESTCASE=' + testcase
207 '%s:/testcase' % testcase
227 def is_crash_reportable(self, testcase): argument
241 if not os.path.exists(testcase):
242 raise ReproduceError('Testcase %s not found.' % testcase)
[all …]

12345678910>>...84