/tools/asuite/atest-py2/ |
D | atest.py | 227 def _validate_exec_mode(args, test_infos, host_tests=None): argument 240 all_device_modes = [x.get_supported_exec_mode() for x in test_infos] 263 def _validate_tm_tests_exec_mode(args, test_infos): argument 276 test_infos) 410 def _print_test_info(mod_info, test_infos): argument 420 for test_info in test_infos: 431 def is_from_test_mapping(test_infos): argument 440 return list(test_infos)[0].from_test_mapping 443 def _split_test_mapping_tests(test_infos): argument 455 assert is_from_test_mapping(test_infos) [all …]
|
D | test_runner_handler_unittest.py | 53 def run_tests(self, test_infos, extra_args, reporter): argument 62 def generate_run_commands(self, test_infos, extra_args, port=None): argument 71 def run_tests(self, test_infos, extra_args, reporter): argument 96 test_infos = [MODULE_INFO_A, MODULE_INFO_A_AGAIN, MODULE_INFO_B, 102 test_runner_handler.group_tests_by_test_runners(test_infos)) 111 test_infos = [MODULE_INFO_A, MODULE_INFO_B] 117 test_infos)) 125 test_infos = [MODULE_INFO_A, MODULE_INFO_A_AGAIN] 129 results_dir, test_infos, extra_args)[0]) 131 test_infos = [MODULE_INFO_B, MODULE_INFO_B_AGAIN] [all …]
|
D | atest_unittest.py | 174 test_infos = set([t_info]) 192 atest._print_test_info(mod_info, test_infos) 240 test_infos = [host_test_info] 241 atest._validate_exec_mode(parsed_args, test_infos) 246 test_infos = [host_test_info] 247 atest._validate_exec_mode(parsed_args, test_infos, host_tests=True) 253 test_infos = [host_test_info] 254 atest._validate_exec_mode(parsed_args, test_infos, host_tests=False) 259 test_infos = [device_test_info] 260 atest._validate_exec_mode(parsed_args, test_infos, host_tests=False) [all …]
|
D | cli_translator.py | 92 test_infos = set() 118 test_infos.add(test_info) 123 if finder_info == CACHE_FINDER and test_infos: 124 test_finders.append(list(test_infos)[0].test_finder) 131 test_infos.update(f_results) 144 if test_infos and not tm_test_detail: 145 atest_utils.update_test_info_cache(test, test_infos) 147 return test_infos 196 test_infos = set() 201 test_infos.update(found_test_infos) [all …]
|
D | cli_translator_unittest.py | 62 test_infos = set() 65 test_infos.add(uc.MODULE_INFO) 67 test_infos.add(uc.CLASS_INFO) 68 return test_infos 154 test_infos = ctr._get_test_infos( 157 self, test_infos, expected_test_infos) 158 for test_info in test_infos: 202 test_infos = ctr._get_test_infos( 205 self, test_infos, expected_test_infos) 206 for test_info in test_infos: [all …]
|
D | test_runner_handler.py | 63 def group_tests_by_test_runners(test_infos): argument 75 sorted_test_infos = sorted(list(test_infos), key=key) 87 def get_test_runner_reqs(module_info, test_infos): argument 99 for test_runner, _ in group_tests_by_test_runners(test_infos): 106 def run_all_tests(results_dir, test_infos, extra_args, argument 121 for test_runner, tests in group_tests_by_test_runners(test_infos):
|
/tools/asuite/atest/ |
D | atest.py | 235 def _validate_exec_mode(args, test_infos, host_tests=None): argument 248 all_device_modes = [x.get_supported_exec_mode() for x in test_infos] 252 device_only_tests = [x.test_name for x in test_infos 274 def _validate_tm_tests_exec_mode(args, test_infos): argument 287 test_infos) 427 def _print_test_info(mod_info, test_infos): argument 437 for test_info in test_infos: 449 def is_from_test_mapping(test_infos): argument 458 return list(test_infos)[0].from_test_mapping 461 def _split_test_mapping_tests(test_infos): argument [all …]
|
D | test_runner_handler_unittest.py | 60 def run_tests(self, test_infos, extra_args, reporter): argument 69 def generate_run_commands(self, test_infos, extra_args, port=None): argument 78 def run_tests(self, test_infos, extra_args, reporter): argument 103 test_infos = [MODULE_INFO_A, MODULE_INFO_A_AGAIN, MODULE_INFO_B, 109 test_runner_handler.group_tests_by_test_runners(test_infos)) 118 test_infos = [MODULE_INFO_A, MODULE_INFO_B] 124 test_infos)) 135 test_infos = [MODULE_INFO_A, MODULE_INFO_A_AGAIN] 139 results_dir, test_infos, extra_args, mod_info)[0]) 141 test_infos = [MODULE_INFO_B, MODULE_INFO_B_AGAIN] [all …]
|
D | atest_unittest.py | 179 test_infos = set([t_info]) 197 atest._print_test_info(mod_info, test_infos) 245 test_infos = [host_test_info] 246 atest._validate_exec_mode(parsed_args, test_infos) 251 test_infos = [host_test_info] 252 atest._validate_exec_mode(parsed_args, test_infos, host_tests=True) 258 test_infos = [host_test_info] 259 atest._validate_exec_mode(parsed_args, test_infos, host_tests=False) 264 test_infos = [device_test_info] 265 atest._validate_exec_mode(parsed_args, test_infos, host_tests=False) [all …]
|
D | cli_translator_unittest.py | 66 test_infos = set() 69 test_infos.add(uc.MODULE_INFO) 71 test_infos.add(uc.CLASS_INFO) 73 test_infos.add(uc.MODULE_INFO_HOST_1) 75 test_infos.add(uc.MODULE_INFO_HOST_2) 76 return test_infos 164 test_infos = ctr._get_test_infos( 167 self, test_infos, expected_test_infos) 168 for test_info in test_infos: 212 test_infos = ctr._get_test_infos( [all …]
|
D | cli_translator.py | 100 test_infos = set() 109 return test_infos 159 test_infos.add(test_info) 164 if finder_info == CACHE_FINDER and test_infos: 165 test_finders.append(list(test_infos)[0].test_finder) 173 test_infos.update(f_results) 186 if test_infos and not tm_test_detail: 187 atest_utils.update_test_info_cache(test, test_infos) 190 return test_infos 276 test_infos = set() [all …]
|
D | test_runner_handler.py | 64 def group_tests_by_test_runners(test_infos): argument 76 sorted_test_infos = sorted(list(test_infos), key=key) 88 def get_test_runner_reqs(module_info, test_infos): argument 100 for test_runner, _ in group_tests_by_test_runners(test_infos): 107 def run_all_tests(results_dir, test_infos, extra_args, module_info, argument 125 for test_runner, tests in group_tests_by_test_runners(test_infos):
|
/tools/asuite/atest-py2/test_runners/ |
D | atest_tf_test_runner.py | 115 def run_tests(self, test_infos, extra_args, reporter): argument 131 return self.run_tests_raw(test_infos, extra_args, reporter) 132 return self.run_tests_pretty(test_infos, extra_args, reporter) 134 def run_tests_raw(self, test_infos, extra_args, reporter): argument 150 run_cmds = self.generate_run_commands(test_infos, extra_args) 156 def run_tests_pretty(self, test_infos, extra_args, reporter): argument 171 run_cmds = self.generate_run_commands(test_infos, extra_args, 440 def generate_run_commands(self, test_infos, extra_args, port=None): argument 453 args = self._create_test_args(test_infos) 486 for_test_mapping = test_infos and test_infos[0].from_test_mapping [all …]
|
D | atest_tf_test_runner_unittest.py | 481 test_infos = self.tr._flatten_test_infos({uc.MODULE_INFO}) 482 unittest_utils.assert_equal_testinfo_sets(self, test_infos, 485 test_infos = self.tr._flatten_test_infos([uc.MODULE_INFO, MODULE2_INFO]) 487 self, test_infos, {uc.MODULE_INFO, MODULE2_INFO}) 489 test_infos = self.tr._flatten_test_infos({CLASS1_INFO}) 490 unittest_utils.assert_equal_testinfo_sets(self, test_infos, 493 test_infos = self.tr._flatten_test_infos({uc.INT_INFO}) 494 unittest_utils.assert_equal_testinfo_sets(self, test_infos, 497 test_infos = self.tr._flatten_test_infos({uc.METHOD_INFO}) 498 unittest_utils.assert_equal_testinfo_sets(self, test_infos, [all …]
|
D | suite_plan_test_runner_unittest.py | 45 test_infos = set() 51 test_infos.add(t_info) 63 self.suite_tr.generate_run_commands(test_infos, ''), 74 self.suite_tr.generate_run_commands(test_infos, {'SERIAL':'LG123456789'}), 77 test_infos = set() 84 test_infos.add(t_info) 96 self.suite_tr.generate_run_commands(test_infos, ''), 107 self.suite_tr.generate_run_commands(test_infos, {'SERIAL':'LG123456789'}), 116 test_infos = [] 124 self.suite_tr.run_tests(test_infos, extra_args, mock_reporter)) [all …]
|
D | robolectric_test_runner.py | 61 def run_tests(self, test_infos, extra_args, reporter): argument 73 return self.run_tests_raw(test_infos, extra_args, reporter) 74 return self.run_tests_pretty(test_infos, extra_args, reporter) 76 def run_tests_raw(self, test_infos, extra_args, reporter): argument 89 for test_info in test_infos: 99 def run_tests_pretty(self, test_infos, extra_args, reporter): argument 111 for test_info in test_infos: 236 def generate_run_commands(self, test_infos, extra_args, port=None): argument 249 for test_info in test_infos:
|
D | example_test_runner.py | 30 def run_tests(self, test_infos, extra_args, reporter): argument 38 run_cmds = self.generate_run_commands(test_infos, extra_args) 60 def generate_run_commands(self, test_infos, extra_args, port=None): argument 73 for test_info in test_infos:
|
/tools/asuite/atest/test_runners/ |
D | suite_plan_test_runner_unittest.py | 51 test_infos = set() 57 test_infos.add(t_info) 69 self.suite_tr.generate_run_commands(test_infos, ''), 80 self.suite_tr.generate_run_commands(test_infos, {'SERIAL':'LG123456789'}), 83 test_infos = set() 90 test_infos.add(t_info) 102 self.suite_tr.generate_run_commands(test_infos, ''), 113 self.suite_tr.generate_run_commands(test_infos, {'SERIAL':'LG123456789'}), 122 test_infos = [] 130 self.suite_tr.run_tests(test_infos, extra_args, mock_reporter)) [all …]
|
D | atest_tf_test_runner.py | 141 def run_tests(self, test_infos, extra_args, reporter): argument 161 result = self.run_tests_raw(test_infos, extra_args, reporter) 162 result = self.run_tests_pretty(test_infos, extra_args, reporter) 297 def run_tests_raw(self, test_infos, extra_args, reporter): argument 313 run_cmds = self.generate_run_commands(test_infos, extra_args) 319 def run_tests_pretty(self, test_infos, extra_args, reporter): argument 334 run_cmds = self.generate_run_commands(test_infos, extra_args, 533 def _parse_extra_args(self, test_infos, extra_args): argument 622 self._has_instant_app_config(test_infos, self.module_info)): 632 for tinfo in test_infos: [all …]
|
D | atest_tf_test_runner_unittest.py | 498 test_infos = self.tr._flatten_test_infos({uc.MODULE_INFO}) 499 unittest_utils.assert_equal_testinfo_sets(self, test_infos, 502 test_infos = self.tr._flatten_test_infos([uc.MODULE_INFO, MODULE2_INFO]) 504 self, test_infos, {uc.MODULE_INFO, MODULE2_INFO}) 506 test_infos = self.tr._flatten_test_infos({CLASS1_INFO}) 507 unittest_utils.assert_equal_testinfo_sets(self, test_infos, 510 test_infos = self.tr._flatten_test_infos({uc.INT_INFO}) 511 unittest_utils.assert_equal_testinfo_sets(self, test_infos, 514 test_infos = self.tr._flatten_test_infos({uc.METHOD_INFO}) 515 unittest_utils.assert_equal_testinfo_sets(self, test_infos, [all …]
|
D | robolectric_test_runner.py | 66 def run_tests(self, test_infos, extra_args, reporter): argument 79 return self.run_tests_pretty(test_infos, extra_args, reporter) 80 return self.run_tests_raw(test_infos, extra_args, reporter) 82 def run_tests_raw(self, test_infos, extra_args, reporter): argument 95 for test_info in test_infos: 105 def run_tests_pretty(self, test_infos, extra_args, reporter): argument 117 for test_info in test_infos: 250 def generate_run_commands(self, test_infos, extra_args, port=None): argument 263 for test_info in test_infos:
|
D | example_test_runner.py | 29 def run_tests(self, test_infos, extra_args, reporter): argument 37 run_cmds = self.generate_run_commands(test_infos, extra_args) 61 def generate_run_commands(self, test_infos, extra_args, port=None): argument 74 for test_info in test_infos:
|
/tools/asuite/atest/test_finders/ |
D | cache_finder.py | 35 def _is_latest_testinfos(self, test_infos): argument 47 for cached_test_info in test_infos: 64 test_infos = atest_utils.load_test_info_cache(test_reference) 65 if test_infos and self._is_test_infos_valid(test_infos): 66 return test_infos 69 def _is_test_infos_valid(self, test_infos): argument 78 if not self._is_latest_testinfos(test_infos): 80 for t_info in test_infos:
|
D | module_finder.py | 398 test_infos = [] 415 test_infos.append(tinfo) 416 return test_infos 540 test_infos = self._get_test_infos( 543 if test_infos and len(test_infos) > 1 and methods: 544 test_infos = self._get_matched_test_infos(test_infos, methods) 545 if test_infos: 546 tinfos.extend(test_infos) 549 def _get_matched_test_infos(self, test_infos, methods): argument 560 for tinfo in test_infos: [all …]
|
/tools/asuite/atest-py2/test_finders/ |
D | cache_finder.py | 30 def _is_latest_testinfos(self, test_infos): argument 42 for cached_test_info in test_infos: 58 test_infos = atest_utils.load_test_info_cache(test_reference) 59 if test_infos and self._is_latest_testinfos(test_infos): 60 return test_infos
|