Home
last modified time | relevance | path

Searched refs:test_case (Results 1 – 17 of 17) sorted by relevance

/aosp12/system/chre/test/common/
H A Drun_tests.cc44 void TestCaseStart(const TestCase &test_case) override { in TestCaseStart() argument
45 LOGD("[ RUN ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseStart()
48 void TestCaseEnd(const TestCase &test_case, TestResult result) override { in TestCaseEnd() argument
51 LOGD("[ OK ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseEnd()
54 LOGD("[ FAILED ] %s.%s", test_case.suite_name, test_case.test_name); in TestCaseEnd()
59 void TestCaseExpect(const TestCase &test_case, in TestCaseExpect() argument
62 LOGD("%s:%d: Failure", test_case.file_name, expectation.line_number); in TestCaseExpect()
68 void TestCaseDisabled(const TestCase &test_case) override { in TestCaseDisabled() argument
69 LOGD("Skipping disabled test %s.%s", test_case.suite_name, in TestCaseDisabled()
70 test_case.test_name); in TestCaseDisabled()
/aosp12/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
H A Dtopk_v2.mod.py74 for test_case in test_cases:
75 model = Model().Operation("TOPK_V2", test_case.inp, test_case.k).To(
76 test_case.out_values, test_case.out_indices)
78 test_case.inp: test_case.inp_data,
79 test_case.out_values: test_case.out_values_data,
80 test_case.out_indices: test_case.out_indices_data
H A Dslice.mod.py98 for test_case in test_cases:
99 model = Model().Operation("SLICE", test_case.inp, test_case.begin,
100 test_case.size).To(test_case.output)
102 test_case.inp: test_case.inp_data,
103 test_case.begin: test_case.begin_data,
104 test_case.size: test_case.size_data,
105 test_case.output: test_case.output_data,
/aosp12/art/tools/checker/file_format/checker/
H A Dtest.py83 test_case = checker_file.test_cases[0]
85 return test_case.statements[0]
347 test_case = self.parse("""
351 self.assertFalse(test_case.for_debuggable)
355 test_case = self.parse("""
359 self.assertTrue(test_case.for_debuggable)
363 test_case = self.parse("""
371 test_case = self.parse("""
375 self.assertTrue(test_case.for_debuggable)
389 statement = test_case.statements[0]
[all …]
H A Dparser.py237 test_case = TestCase(checker_file, case_name, start_line_no, test_arch, for_debuggable)
239 parse_checker_statement(test_case, case_line[0], case_line[1], case_line[2])
/aosp12/art/tools/checker/match/
H A Dfile.py321 def match_test_case(test_case, c1_pass, instruction_set_features): argument
326 assert test_case.name == c1_pass.name
330 test_statements = test_case.statements + [None]
336 for test_case in checker_file.test_cases:
337 if test_case.test_arch not in [None, target_arch]:
339 if test_case.for_debuggable != debuggable_mode:
345 c1_pass = c1_file.find_pass(test_case.name)
350 c1_file.full_file_name, test_case.start_line_no, test_case.name)
352 Logger.start_test(test_case.name)
354 match_test_case(test_case, c1_pass, c1_file.instruction_set_features)
H A Dtest.py32 test_case = TestCase(checker_file, "TestMethod TestPass", 0)
33 return parse_checker_statement(test_case, checker_string, TestStatement.Variant.IN_ORDER, 0)
/aosp12/system/tools/sysprop/tests/
H A DInvalidSyspropTest.cpp220 for (auto [test_case, expected_error] : kTestCasesAndExpectedErrors) { in TEST()
221 ASSERT_TRUE(android::base::WriteStringToFile(test_case, file.path)); in TEST()
/aosp12/system/security/keystore/
H A Dkeystore_cli_v2.cpp694 for (const auto& test_case : test_cases) { in BrilloPlatformTest() local
696 !base::StartsWith(test_case.name, prefix, base::CompareCase::SENSITIVE)) { in BrilloPlatformTest()
700 (base::StartsWith(test_case.name, "AES", base::CompareCase::SENSITIVE) || in BrilloPlatformTest()
701 base::StartsWith(test_case.name, "HMAC", base::CompareCase::SENSITIVE))) { in BrilloPlatformTest()
705 if (!TestKey(test_case.name, test_case.required_for_brillo_pts, in BrilloPlatformTest()
706 test_case.parameters.vector_data())) { in BrilloPlatformTest()
707 VLOG(1) << "Test failed: " << test_case.name; in BrilloPlatformTest()
718 for (const auto& test_case : test_cases) { in ListTestCases() local
719 printf("%s : %s\n", test_case.name.c_str(), in ListTestCases()
720 test_case.required_for_brillo_pts ? kBoldGreenRequired : kBoldYellowRecommended); in ListTestCases()
/aosp12/art/test/004-JniTest/
H A Djni_test.cc494 void CallMethod(jobject o, jclass c, jmethodID m, bool nonstatic, const char* test_case) { in CallMethod() argument
495 printf("RUNNING %s\n", test_case); in CallMethod()
500 printf("FAILED %s due to missing exception\n", test_case); in CallMethod()
505 printf("FAILED %s due to pending exception\n", test_case); in CallMethod()
507 env_->FatalError(test_case); in CallMethod()
509 printf("PASSED %s\n", test_case); in CallMethod()
576 …llNonvirtualMethod(bool super_object, bool super_class, bool super_method, const char* test_case) { in TestnonstaticCallNonvirtualMethod() argument
590 CallMethod(o, c, m, true, test_case); in TestnonstaticCallNonvirtualMethod()
/aosp12/frameworks/rs/tests/lldb/tests/testcases/
H A Dtest_allocation_dump_2_jni.py29 def test_case(self): member in TestAllocationDump2JNI
H A Dtest_allocation_dump_2_cpp.py29 def test_case(self): member in TestAllocationDump2Cpp
/aosp12/system/bt/gd/packet/parser/
H A Dlanguage_y.yy101 %type<test_case_t> test_case;
244 : test_case
250 | test_case_list ',' test_case
257 test_case
H A Dpacket_def.cc1321 for (const auto& test_case : test_cases_) { in GenRustBuilderTest() local
1324 s << "b\"" << test_case << "\","; in GenRustBuilderTest()
/aosp12/art/dex2oat/linker/arm/
H A Drelative_patcher_thumb2_test.cc911 for (const TestCase& test_case : test_cases) { in TEST_F() local
913 TestBakerFieldWide(test_case.offset, test_case.ref_reg); in TEST_F()
927 for (const TestCase& test_case : test_cases) { in TEST_F() local
929 TestBakerFieldNarrow(test_case.offset, test_case.ref_reg); in TEST_F()
/aosp12/art/dex2oat/linker/arm64/
H A Drelative_patcher_arm64_test.cc804 for (const TestCase& test_case : test_cases) { in TEST_F() local
806 TestNopsAdrpLdr(/*num_nops=*/ 0u, test_case.bss_begin, test_case.string_entry_offset); in TEST_F()
1136 for (const TestCase& test_case : test_cases) { in TEST_F() local
1138 TestBakerField(test_case.offset, test_case.ref_reg); in TEST_F()
/aosp12/system/tools/aidl/
H A Daidl_unittest.cpp768 for (const auto& [lang, test_case] : expectations) { in TEST_P()
771 EXPECT_TRUE(io_delegate_.GetWrittenContents(test_case.output_file, &output)); in TEST_P()
772 EXPECT_THAT(output, HasSubstr(test_case.annotation)); in TEST_P()