Home
last modified time | relevance | path

Searched refs:tests (Results 1 - 25 of 41) sorted by relevance

12

/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
H A Dets_test_dir.py29 def tests(self) -> Path: member in EtsTestDir
30 return self.root / "tests"
34 return self.tests / "ets-templates"
38 return self.tests / "ets_func_tests"
42 return self.tests / "stdlib-templates"
46 return self.tests / "ets_test_suite" / "gc" / "stress"
50 return self.tests / "ets_es_checked"
54 return self.tests / "sts_ts_subset"
H A Dets_utils.py38 def create_report(self, generated_folder: Path, tests: List[str]) -> None:
41 for test_full_name in tests:
H A Dets_test_suite.py90 Log.all(_LOGGER, f"Reused earlier generated tests from {self.test_root}")
98 tests: List[str] = []
100 tests = step.transform(force_generate)
102 util.create_report(self.test_root, tests)
103 if len(tests) == 0:
104 Log.exception_and_raise(_LOGGER, "Failed generating and updating tests for ets templates or stdlib")
/arkcompiler/runtime_core/static_core/tests/cts-generator/
H A Dgenerate-cts.rb34 def get_chunk(tests, chunk, chunks)
35 chunk_size = tests.length / chunks
36 if chunk_size > tests.length || chunk_size < 1 || chunk.negative?
41 last_idx = chunk >= chunks - 1 ? tests.length : (chunk + 1) * chunk_size
44 result.push(tests[i])
56 opts.on('-t', '--template FILE', 'Path to template yaml file to generate tests (required)')
59 opts.on('-o', '--output DIR', 'Path to directory where tests will be generated (required)')
61 opts.on('-f', '--file FILE', 'Generate tests from the specified yaml file only, for example: fmod2.64.yaml')
90 data['tests'] = get_chunk data['tests'], chun
[all...]
/arkcompiler/runtime_core/tests/cts-generator/
H A Dgenerate-cts.rb34 def get_chunk(tests, chunk, chunks)
35 chunk_size = tests.length / chunks
36 if chunk_size > tests.length || chunk_size < 1 || chunk.negative?
41 last_idx = chunk >= chunks - 1 ? tests.length : (chunk + 1) * chunk_size
44 result.push(tests[i])
56 opts.on('-t', '--template FILE', 'Path to template yaml file to generate tests (required)')
59 opts.on('-o', '--output DIR', 'Path to directory where tests will be generated (required)')
61 opts.on('-f', '--file FILE', 'Generate tests from the specified yaml file only, for example: fmod2.64.yaml')
90 data['tests'] = get_chunk data['tests'], chun
[all...]
/arkcompiler/runtime_core/static_core/tests/cts-generator/generator/
H A Dparser.rb29 # tests: Generator::TESTS
33 @tests = @data[Generator::TESTS]
42 updated_tests = @tests.flat_map do |test|
51 raise "Schema validation error, please update template '#{file_name}' to match schema to generate tests"
66 @tests = updated_tests
70 @tests.each do |raw_test|
90 LOG.debug('Iterate over all tests')
91 @tests.each do |raw_test|
/arkcompiler/runtime_core/tests/cts-generator/generator/
H A Dparser.rb29 # tests: Generator::TESTS
33 @tests = @data[Generator::TESTS]
42 updated_tests = @tests.flat_map do |test|
51 raise "Schema validation error, please update template '#{file_name}' to match schema to generate tests"
66 @tests = updated_tests
70 @tests.each do |raw_test|
90 LOG.debug('Iterate over all tests')
91 @tests.each do |raw_test|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/
H A Dstandard_view.py51 Log.default(_LOGGER, f"New failures at #{kind} - {len(fail_list)} tests:\n{content}")
58 Log.all(_LOGGER, f"Ignored but passed tests - {len(ignored_but_passed)} tests:\n{content}")
93 Log.default(_LOGGER, "Update excluded tests:")
136 def __create_updated(self, tests: List[Test]) -> None:
138 self.__create_file(tests, name, state)
140 def __create_passed(self, tests: List[Test]) -> None:
142 self.__create_file(tests, name, state)
144 def __create_file(self, tests: List[Test], name: str, state: str) -> None:
145 if len(tests)
[all...]
H A Dxml_view.py36 self.__ignore_list_xml = 'ignore.list' # filename of list of ignored tests in the junit like format
72 f'tests="{total}" '
82 def create_ignore_list(self, tests: Set[Test]) -> None:
83 result = [f"{self.__summary.name}.{test.test_id}" for test in tests if test.ignored]
H A Ddetailed_report.py43 self.tests: List[Test] = results
118 for test in self.tests:
/arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/lib/
H A Dfull_md.rb47 "#{md(desc['assertion'])} [#{test_list(desc['tests'])}]#{non_testable}"
55 "#{md(@verification_hash[ver['verification']])} [#{test_list(ver['tests'])}]"
59 "#{md(@exceptions_hash[entry['exception']])} [#{test_list(entry['tests'])}]"
62 def test_list(tests)
63 tests.any? ? tests.join(', ') : '\`not covered\`'
H A Dspec.rb27 # Array of tests not matching the spec
85 i['tests'] = []
92 { 'assertion' => da, 'tests' => [], 'non_testable' => false }
98 { 'exception' => e, 'tests' => [], 'non_testable' => false }
104 { 'verification' => v, 'tests' => [], 'non_testable' => false }
245 gi['tests'] << file
268 sd['tests'] << file
291 se['tests'] << file
314 sv['tests'] << file
/arkcompiler/runtime_core/tests/cts-coverage-tool/lib/
H A Dfull_md.rb47 "#{md(desc['assertion'])} [#{test_list(desc['tests'])}]#{non_testable}"
55 "#{md(@verification_hash[ver['verification']])} [#{test_list(ver['tests'])}]"
59 "#{md(@exceptions_hash[entry['exception']])} [#{test_list(entry['tests'])}]"
62 def test_list(tests)
63 tests.any? ? tests.join(', ') : '\`not covered\`'
H A Dspec.rb27 # Array of tests not matching the spec
85 i['tests'] = []
92 { 'assertion' => da, 'tests' => [], 'non_testable' => false }
98 { 'exception' => e, 'tests' => [], 'non_testable' => false }
104 { 'verification' => v, 'tests' => [], 'non_testable' => false }
245 gi['tests'] << file
268 sd['tests'] << file
291 se['tests'] << file
314 sv['tests'] << file
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/
H A Dbenchmark.py50 TestCase().assertTrue(len(rendered_tests) > 0, f"Internal error: there should be tests in {self.__name}")
52 tests = []
59 tests.append(str(file_path))
62 return tests
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/
H A Dlinter.sh31 RUNNER_DIR=${ROOT_DIR}/tests/tests-u-runner
/arkcompiler/toolchain/tooling/test/utils/
H A Dtest_list.cpp55 auto &tests = TestUtil::GetTests(); in GetTestList() local
56 for (const auto &entry : tests) { in GetTestList()
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
H A Dreport.py58 self.tests = {}
63 self.tests[t] = diff
77 for name, diff in self.tests.items():
115 # create tmp dicts of tests for simple search of test by name
116 results1 = {t.name: t for t in r1.report.tests}
117 results2 = {t.name: t for t in r2.report.tests}
124 # compare tests present in both reports
183 for t in self.report.tests:
202 self.summary = f'{self.total_cnt} tests; ' \
218 for t in sorted(self.report.tests, ke
[all...]
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/
H A Dtest_result.py50 "tests": [
170 "tests": [
256 test.assertTrue(2 == len(rep.tests))
257 test.assertTrue(6 == len(rep.tests[0].execution_forks[0].iterations))
271 test.assertTrue('2 tests; 0 failed; 0 excluded; ' \
295 vmb_rep = VMBReport(report=RunReport(tests=tr))
307 test.assertTrue(vmb_rep.summary == '1 tests; 0 failed; 0 excluded; ' \
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/stdlib_templates/
H A Dstdlib_templates_generator.py71 tests = self.__split_into_tests(rendered_template, path)
72 TestCase().assertTrue(len(tests) > 0, "Internal error: there should be tests")
73 for key, test in tests.items():
99 Splits rendered template into multiple tests.
111 message=f"Splitting tests fails: {inv_m_exp.message}"
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
H A Drunner_base.py127 # directory where list files (files with list of ignored, excluded, and other tests) are located
130 self.default_list_root = Path(config.general.static_core_root) / 'tests' / 'tests-u-runner' / 'test-lists'
148 # excluded_list: either absolute path or path relative from list_root to the file with the list of such tests
152 # ignored_list: either absolute path or path relative from list_root to the file with the list of such tests
157 # So, it can contain ignored tests, but cannot contain excluded tests
158 self.tests: Set[Test] = set([])
161 # name of file with a list of only tests what should be executed
162 # if it's specified other tests ar
[all...]
/arkcompiler/ets_frontend/es2panda/test/size_statistics/
H A Dsize_statistics.py160 self.tests = [] # store Test obj
165 self.tests += list(map(lambda f: func(f, flags), self.case_list))
185 result_iter = pool.imap_unordered(self.run_test, self.tests, chunksize=32)
190 result_iter = tqdm(result_iter, total=len(self.tests))
/arkcompiler/toolchain/tooling/test/client_utils/
H A Dtest_list.cpp139 auto &tests = TestUtil::GetTests(); in GetTestList() local
140 for (const auto &entry : tests) { in GetTestList()
/arkcompiler/ets_frontend/es2panda/test/
H A Drunner.py82 default=False, help='run abc2asm tests')
85 default=False, help='run regression tests')
88 default=False, help='run compiler tests')
91 default=False, help='run tsc tests')
129 help='use skiplist for tests failing on aarch64 in AOT or JIT mode')
138 help='run tests listed in file')
154 help='run hotfix tests')
156 help='run hotreload tests')
158 help='run coldfix tests')
160 help='run coldreload tests')
[all...]
/arkcompiler/runtime_core/static_core/compiler/tools/
H A Dir_builder_coverage.sh38 IR_BUILDER_TESTS=$PANDA_ROOT/compiler/tests/ir_builder_test.cpp
124 <tr><td align=\"left\">All tests for the instructions are passed</td><td bgcolor=\"#d7e7a9\"></td></tr>
125 <tr><td align=\"left\">Some tests for instructions failed or disabled</td><td bgcolor=\"red\"></td></tr>
126 <tr><td align=\"left\">The instruction is not covered by tests</td><td bgcolor=\"gray\"></td></tr>

Completed in 9 milliseconds

12