Home
last modified time | relevance | path

Searched refs:test_infos (Results 1 – 25 of 45) sorted by relevance

12

/tools/asuite/atest/test_runners/
Datest_tf_test_runner.py185 def run_tests(self, test_infos, extra_args, reporter): argument
204 verify_key = atest_utils.get_verify_key([test_infos[0].test_name],
215 result = self.run_tests_raw(test_infos, extra_args, reporter)
216 result = self.run_tests_pretty(test_infos, extra_args, reporter)
234 def run_tests_raw(self, test_infos, extra_args, reporter): argument
250 run_cmds = self.generate_run_commands(test_infos, extra_args)
256 def run_tests_pretty(self, test_infos, extra_args, reporter): argument
271 run_cmds = self.generate_run_commands(test_infos, extra_args,
481 def _parse_extra_args(self, test_infos, extra_args): argument
491 self.module_info, test_infos, extra_args)
[all …]
Drobolectric_test_runner.py68 def run_tests(self, test_infos, extra_args, reporter): argument
81 return self.run_tests_pretty(test_infos, extra_args, reporter)
82 return self.run_tests_raw(test_infos, extra_args, reporter)
84 def run_tests_raw(self, test_infos, extra_args, reporter): argument
97 for test_info in test_infos:
106 ret_code = self._check_robo_tests_result(test_infos)
109 def run_tests_pretty(self, test_infos, extra_args, reporter): argument
121 for test_info in test_infos:
141 ret_code = self._check_robo_tests_result(test_infos)
256 def generate_run_commands(self, test_infos, extra_args, port=None): argument
[all …]
Dsuite_plan_test_runner_unittest.py53 test_infos = set()
59 test_infos.add(t_info)
71 self.suite_tr.generate_run_commands(test_infos, ''),
82 self.suite_tr.generate_run_commands(test_infos, {'SERIAL':'LG123456789'}),
85 test_infos = set()
92 test_infos.add(t_info)
104 self.suite_tr.generate_run_commands(test_infos, ''),
115 self.suite_tr.generate_run_commands(test_infos, {'SERIAL':'LG123456789'}),
129 test_infos = []
142 self.suite_tr.run_tests(test_infos, extra_args, mock_reporter))
[all …]
Datest_tf_test_runner_unittest.py519 test_infos = self.tr._flatten_test_infos({uc.MODULE_INFO})
520 unittest_utils.assert_equal_testinfo_sets(self, test_infos,
523 test_infos = self.tr._flatten_test_infos([uc.MODULE_INFO, MODULE2_INFO])
525 self, test_infos, {uc.MODULE_INFO, MODULE2_INFO})
527 test_infos = self.tr._flatten_test_infos({CLASS1_INFO})
528 unittest_utils.assert_equal_testinfo_sets(self, test_infos,
531 test_infos = self.tr._flatten_test_infos({uc.INT_INFO})
532 unittest_utils.assert_equal_testinfo_sets(self, test_infos,
535 test_infos = self.tr._flatten_test_infos({uc.METHOD_INFO})
536 unittest_utils.assert_equal_testinfo_sets(self, test_infos,
[all …]
/tools/asuite/atest/
Dbazel_mode_unittest.py1314 test_infos = new_finder.find_method(
1317 self.assertEqual(len(test_infos), 1)
1318 self.assertEqual(test_infos[0].test_runner, BAZEL_RUNNER)
1331 test_infos = new_finder.find_method(
1334 self.assertEqual(len(test_infos), 1)
1335 self.assertEqual(test_infos[0].test_runner, BAZEL_RUNNER)
1354 test_infos = new_finder.find_method(
1357 self.assertEqual(len(test_infos), 1)
1358 self.assertEqual(test_infos[0].test_runner, ATEST_TF_RUNNER)
1377 test_infos = new_finder.find_method(
[all …]
Datest.py288 def _validate_exec_mode(args, test_infos, host_tests=None): argument
301 all_device_modes = {x.get_supported_exec_mode() for x in test_infos}
305 device_only_tests = [x.test_name for x in test_infos
324 _validate_adb_devices(args, test_infos)
332 def _validate_adb_devices(args, test_infos): argument
341 all_device_modes = {x.get_supported_exec_mode() for x in test_infos}
342 device_tests = [x.test_name for x in test_infos
358 def _validate_tm_tests_exec_mode(args, test_infos): argument
371 test_infos)
513 def _print_test_info(mod_info, test_infos): argument
[all …]
Dtest_runner_handler_unittest.py63 def run_tests(self, test_infos, extra_args, reporter): argument
72 def generate_run_commands(self, test_infos, extra_args, port=None): argument
81 def run_tests(self, test_infos, extra_args, reporter): argument
106 test_infos = [MODULE_INFO_A, MODULE_INFO_A_AGAIN, MODULE_INFO_B,
112 test_runner_handler.group_tests_by_test_runners(test_infos))
121 test_infos = [MODULE_INFO_A, MODULE_INFO_B]
127 test_infos))
139 test_infos = [MODULE_INFO_A, MODULE_INFO_A_AGAIN]
143 results_dir, test_infos, extra_args, mod_info)[0])
145 test_infos = [MODULE_INFO_B, MODULE_INFO_B_AGAIN]
[all …]
Datest_unittest.py180 test_infos = set([t_info])
198 atest._print_test_info(mod_info, test_infos)
248 test_infos = [host_test_info]
249 atest._validate_exec_mode(parsed_args, test_infos)
254 test_infos = [host_test_info]
255 atest._validate_exec_mode(parsed_args, test_infos, host_tests=True)
261 test_infos = [host_test_info]
262 atest._validate_exec_mode(parsed_args, test_infos, host_tests=False)
267 test_infos = [device_test_info]
268 atest._validate_exec_mode(parsed_args, test_infos, host_tests=False)
[all …]
Dcli_translator.py109 test_infos = set()
117 return test_infos
165 test_infos.add(test_info)
170 if finder_info == CACHE_FINDER and test_infos:
171 test_finders.append(list(test_infos)[0].test_finder)
178 test_infos.update(f_results)
191 if test_infos and not tm_test_detail:
192 atest_utils.update_test_info_cache(test, test_infos)
195 return test_infos
270 test_infos = set()
[all …]
Dcli_translator_unittest.py69 test_infos = set()
72 test_infos.add(uc.MODULE_INFO)
74 test_infos.add(uc.CLASS_INFO)
76 test_infos.add(uc.MODULE_INFO_HOST_1)
78 test_infos.add(uc.MODULE_INFO_HOST_2)
79 return test_infos
168 test_infos = ctr._get_test_infos(
171 self, test_infos, expected_test_infos)
172 for test_info in test_infos:
218 test_infos = ctr._get_test_infos(
[all …]
Dtest_runner_handler.py71 def group_tests_by_test_runners(test_infos): argument
83 sorted_test_infos = sorted(list(test_infos), key=key)
96 test_infos: List[test_info.TestInfo],
110 for test_runner, tests in group_tests_by_test_runners(test_infos):
114 test_infos=tests,
120 def run_all_tests(results_dir, test_infos, extra_args, mod_info, argument
138 for test_runner, tests in group_tests_by_test_runners(test_infos):
Dbazel_mode.py953 test_infos = finder_method_func(finder_obj, test_id)
954 if not test_infos:
955 return test_infos
956 for tinfo in test_infos:
969 return test_infos
1024 test_infos: List[test_info.TestInfo]=None,
1033 self.test_infos = test_infos
1048 def run_tests(self, test_infos, extra_args, reporter): argument
1059 run_cmds = self.generate_run_commands(test_infos, extra_args)
1090 if not self.test_infos:
[all …]
/tools/asuite/atest-py2/
Datest.py227 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 …]
Dtest_runner_handler_unittest.py53 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 …]
Datest_unittest.py174 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 …]
Dcli_translator.py92 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 …]
Dcli_translator_unittest.py62 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 …]
Dtest_runner_handler.py63 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-py2/test_runners/
Datest_tf_test_runner.py115 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 …]
Dsuite_plan_test_runner_unittest.py45 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 …]
Datest_tf_test_runner_unittest.py481 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 …]
Drobolectric_test_runner.py61 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:
/tools/asuite/atest/test_finders/
Dcache_finder.py35 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:
Dmodule_finder.py416 test_infos = []
433 test_infos.append(tinfo)
434 return test_infos
558 test_infos = self._get_test_infos(
561 if test_infos and len(test_infos) > 1 and methods:
562 test_infos = self._get_matched_test_infos(test_infos, methods)
563 if test_infos:
564 tinfos.extend(test_infos)
567 def _get_matched_test_infos(self, test_infos, methods): argument
578 for tinfo in test_infos:
[all …]
/tools/asuite/atest-py2/test_finders/
Dcache_finder.py30 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

12