/tools/asuite/atest/ |
D | module_info_unittest.py | 89 mod_info = module_info.ModuleInfo() 91 mod_info.module_info_target) 100 mod_info = module_info.ModuleInfo() 102 mod_info.module_info_target) 111 mod_info = module_info.ModuleInfo() 113 mod_info.module_info_target) 132 mod_info = module_info.ModuleInfo() 134 mod_info._get_path_to_module_info(mod_info_dict)) 140 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH) 141 self.assertTrue(mod_info.is_module(EXPECTED_MOD_TARGET)) [all …]
|
D | module_info.py | 134 mod_info = json.load(json_file) 136 mod_info = self._merge_build_system_infos(mod_info) 137 return module_info_target, mod_info 150 for mod_name, mod_info in name_to_module_info.items(): 153 if mod_name != mod_info.get(constants.MODULE_NAME, ''): 155 for path in mod_info.get(constants.MODULE_PATH, []): 156 mod_info[constants.MODULE_NAME] = mod_name 159 path_to_module_info[path].append(mod_info) 161 path_to_module_info[path] = [mod_info] 197 for _, mod_info in self.name_to_module_info.items(): [all …]
|
D | atest.py | 400 def _print_module_info_from_module_name(mod_info, module_name): argument 414 target_module_info = mod_info.get_module_info(module_name) 427 def _print_test_info(mod_info, test_infos): argument 438 _print_module_info_from_module_name(mod_info, test_info.test_name) 444 _print_module_info_from_module_name(mod_info, build_target) 480 def _run_test_mapping_tests(results_dir, test_infos, extra_args, mod_info): argument 512 results_dir, tests, args, mod_info, delay_print_summary=True) 538 def _dry_run(results_dir, extra_args, test_infos, mod_info): argument 552 runner = test_runner(results_dir, module_info=mod_info) 560 def _print_testable_modules(mod_info, suite): argument [all …]
|
D | cli_translator.py | 76 self.mod_info = module_info 112 if self.mod_info and self.mod_info.get_module_info(test): 113 test_mainline_modules = self.mod_info.get_module_info(test).get( 123 self.mod_info, test): 136 if self.mod_info: 137 test_deps = self.mod_info.get_install_module_dependency( 157 if self.mod_info.is_module(test_dep)] 210 if not self.mod_info.is_module(test): 216 if not self.mod_info.has_mainline_modules(test, mainline_modules): 241 mod_finder = module_finder.ModuleFinder(self.mod_info) [all …]
|
D | test_runner_handler_unittest.py | 132 mod_info = module_info.ModuleInfo( 139 results_dir, test_infos, extra_args, mod_info)[0]) 145 results_dir, test_infos, extra_args, mod_info)[0]) 151 results_dir, test_infos, extra_args, mod_info)[0])
|
D | atest_unittest.py | 121 mod_info = module_info.ModuleInfo() 124 atest._print_module_info_from_module_name(mod_info, mod_one_name)) 144 atest._print_module_info_from_module_name(mod_info, mod_one_name)) 196 mod_info = module_info.ModuleInfo() 197 atest._print_test_info(mod_info, test_infos)
|
/tools/asuite/atest-py2/ |
D | module_info_unittest.py | 77 mod_info = module_info.ModuleInfo() 79 mod_info.module_info_target) 88 mod_info = module_info.ModuleInfo() 90 mod_info.module_info_target) 99 mod_info = module_info.ModuleInfo() 101 mod_info.module_info_target) 119 mod_info = module_info.ModuleInfo() 121 mod_info._get_path_to_module_info(mod_info_dict)) 126 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH) 127 self.assertTrue(mod_info.is_module(EXPECTED_MOD_TARGET)) [all …]
|
D | module_info.py | 107 mod_info = json.load(json_file) 108 return module_info_target, mod_info 121 for mod_name, mod_info in name_to_module_info.items(): 124 if mod_name != mod_info.get(constants.MODULE_NAME, ''): 126 for path in mod_info.get(constants.MODULE_PATH, []): 127 mod_info[constants.MODULE_NAME] = mod_name 130 path_to_module_info[path].append(mod_info) 132 path_to_module_info[path] = [mod_info] 171 def is_suite_in_compatibility_suites(self, suite, mod_info): argument 181 return suite in mod_info.get(constants.MODULE_COMPATIBILITY_SUITES, []) [all …]
|
D | atest.py | 383 def _print_module_info_from_module_name(mod_info, module_name): argument 397 target_module_info = mod_info.get_module_info(module_name) 410 def _print_test_info(mod_info, test_infos): argument 421 _print_module_info_from_module_name(mod_info, test_info.test_name) 426 _print_module_info_from_module_name(mod_info, build_target) 540 def _print_testable_modules(mod_info, suite): argument 547 testable_modules = mod_info.get_testable_modules(suite) 607 mod_info = module_info.ModuleInfo(force_build=args.rebuild_module_info) 610 translator = cli_translator.CLITranslator(module_info=mod_info, 613 _print_testable_modules(mod_info, args.list_modules) [all …]
|
D | atest_unittest.py | 118 mod_info = module_info.ModuleInfo() 121 atest._print_module_info_from_module_name(mod_info, mod_one_name)) 141 atest._print_module_info_from_module_name(mod_info, mod_one_name)) 191 mod_info = module_info.ModuleInfo() 192 atest._print_test_info(mod_info, test_infos)
|
/tools/asuite/aidegen/lib/ |
D | native_module_info_unittest.py | 113 mod_info = native_module_info.NativeModuleInfo() 115 result = mod_info.get_module_names_in_targets_paths(['multiarch']) 123 mod_info = native_module_info.NativeModuleInfo() 124 result = mod_info.get_module_includes('multiarch1') 132 mod_info = native_module_info.NativeModuleInfo() 133 mod_info.name_to_module_info = _CC_NAME_TO_MODULE_INFO 134 result = mod_info.get_module_includes('multiarch') 143 mod_info = native_module_info.NativeModuleInfo() 144 self.assertFalse(mod_info.is_module_need_build('test_multiarch')) 153 mod_info = native_module_info.NativeModuleInfo() [all …]
|
D | clion_project_file_gen_unittest.py | 58 mod_info = dict(self._MOD_INFO) 59 mod_info.update(self._PATH_DICT) 62 clion_project_file_gen.CLionProjectFileGenerator(mod_info) 67 mod_info = dict(self._MOD_INFO) 68 mod_info.update(self._MOD_NAME_DICT) 71 clion_project_file_gen.CLionProjectFileGenerator(mod_info) 82 mod_info = dict(self._MOD_INFO) 83 mod_info.update(self._MOD_NAME_DICT) 87 clion_project_file_gen.CLionProjectFileGenerator(mod_info) 91 clion_project_file_gen.CLionProjectFileGenerator(mod_info) [all …]
|
D | native_module_info.py | 74 mod_info = common_util.get_json_dict(module_file) 75 NativeModuleInfo.c_lang_path = mod_info.get(_CLANG, '') 76 NativeModuleInfo.cpp_lang_path = mod_info.get(_CPPLANG, '') 77 name_to_module_info = mod_info.get(_MODULES, {}) 116 mod_info = self.name_to_module_info.get(mod_name, {}) 117 if not mod_info: 121 for flag in mod_info: 123 if header in mod_info[flag]: 124 includes.update(set(mod_info[flag][header])) 142 mod_info = self.name_to_module_info.get(mod_name, {}) [all …]
|
D | source_locator_unittest.py | 257 mod_info = dict(unittest_constants.MODULE_INFO) 258 mod_info['installed'] = [ 269 mod_info, 0) 294 mod_info = dict(unittest_constants.MODULE_INFO) 295 mod_info['jars'] = [ 308 mod_info, 0) 317 mod_info = dict(unittest_constants.MODULE_INFO) 324 mod_info, 0) 334 mod_info['jarjar_rules'] = ['jarjar-rules.txt'] 335 mod_info['installed'] = [jar_file] [all …]
|
D | common_util_unittest.py | 58 mod_info = mock.MagicMock() 59 mod_info.is_module.return_value = True 60 mod_info.get_paths.return_value = {} 64 mod_info, unittest_constants.TEST_MODULE)) 66 mod_info.get_paths.return_value = [unittest_constants.TEST_MODULE] 71 mod_info, unittest_constants.TEST_MODULE)) 72 mod_info.is_module.return_value = False 73 mod_info.get_module_names.return_value = True 75 mod_info, unittest_constants.TEST_MODULE)) 78 mod_info, constant.WHOLE_ANDROID_TREE_TARGET)) [all …]
|
D | module_info_unittest.py | 51 mod_info = {'class':['APPS']} 54 mod_info, '')) 55 mod_info = {'class':['APPS'], 'path':['path_to_a']} 58 mod_info, '')) 61 mod_info, 'test')) 62 mod_info = {'path':['path_to_a']} 65 mod_info, 'test')) 68 mod_info, 'path_to_a')) 69 mod_info = {'class':['APPS'], 'path':['test/path_to_a']} 72 mod_info, 'test')) [all …]
|
D | clion_project_file_gen.py | 132 def __init__(self, mod_info, parent_dir=None): argument 140 if not mod_info: 142 self.mod_info = mod_info 145 mod_info, parent_dir) 163 mod_name = self.mod_info.get(constant.KEY_MODULE_NAME, '') 170 def get_module_path(mod_info, parent_dir=None): argument 199 mod_paths = mod_info.get(constant.KEY_PATH, []) 284 if constant.KEY_SRCS not in self.mod_info: 289 source_files = self.mod_info[constant.KEY_SRCS] 358 params = self.mod_info.get(flag, {}) [all …]
|
D | module_info.py | 66 def is_target_module(mod_info): argument 77 if mod_info: 79 x in mod_info.get(constants.MODULE_CLASS, []) 84 def is_project_path_relative_module(mod_info, rel_path): argument 102 if constant.KEY_PATH not in mod_info: 104 path = mod_info[constant.KEY_PATH][0] 107 if (constant.KEY_CLASS in mod_info
|
D | native_util.py | 65 mod_info = cc_module_info.get_module_info(target) 67 mod_info, rel_path) 69 module_names.append(mod_info[constant.KEY_MODULE_NAME]) 261 for mod_info in rust_modules_info: 262 if _ROOT_MODULE_KEY not in mod_info: 264 path = mod_info[_ROOT_MODULE_KEY]
|
D | module_info_util_unittest.py | 90 mod_info = mock.MagicMock() 91 module_info_util._build_bp_info(mod_info, skip_build=True) 112 mod_info = mock.MagicMock() 118 module_info_util._build_bp_info(mod_info, skip_build=True) 146 mod_info = mock.MagicMock() 154 module_info_util._build_bp_info(mod_info, main_project=test_prj, 179 mod_info = mock.MagicMock() 188 mod_info, main_project=test_prj, skip_build=False) 210 mod_info = mock.MagicMock() 216 module_info_util._build_bp_info(mod_info, main_project=test_prj,
|
/tools/asuite/atest/test_finders/ |
D | module_finder.py | 71 mod_info = self.module_info.get_module_info(mod) 78 if self.module_info.is_testable_module(mod_info): 81 module_srcs = mod_info.get(constants.MODULE_SRCS, []) 90 mod_info.get(constants.MODULE_NAME)) 92 testable_modules.append(mod_info.get(constants.MODULE_NAME)) 99 mod_info = self.module_info.get_module_info(module_name) 101 if mod_info: 102 suites = mod_info.get('compatibility_suites', []) 173 mod_info = self.module_info.get_module_info(module_name) 174 if not mod_info: [all …]
|
D | module_finder_unittest.py | 129 mod_info = {'installed': ['/path/to/install'], 133 self.mod_finder.module_info.get_module_info.return_value = mod_info 153 mod_info = {'installed': ['/path/to/install'], 160 self.mod_finder.module_info.get_module_info.return_value = mod_info 177 mod_info = {'installed': ['/path/to/install'], 184 self.mod_finder.module_info.get_module_info.return_value = mod_info 279 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH, 283 self.mod_finder.module_info.get_module_info.return_value = mod_info 298 self.mod_finder.module_info.get_module_info.return_value = mod_info 322 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH, [all …]
|
D | test_finder_utils_unittest.py | 751 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH) 757 mod_info, UNIT_TEST_SEARCH_ROOT))) 775 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH) 780 result, _ = test_finder_utils.get_test_config_and_srcs(t_info, mod_info) 788 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH) 793 result, _ = test_finder_utils.get_test_config_and_srcs(t_info, mod_info) 801 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH) 806 result, _ = test_finder_utils.get_test_config_and_srcs(t_info, mod_info) 814 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH) 819 result, _ = test_finder_utils.get_test_config_and_srcs(t_info, mod_info)
|
/tools/asuite/atest-py2/test_finders/ |
D | module_finder.py | 66 mod_info = self.module_info.get_module_info(mod) 73 if self.module_info.is_testable_module(mod_info): 74 testable_modules.append(mod_info.get(constants.MODULE_NAME)) 79 mod_info = self.module_info.get_module_info(module_name) 81 if mod_info: 82 suites = mod_info.get('compatibility_suites', []) 153 mod_info = self.module_info.get_module_info(module_name) 154 if not mod_info: 156 test.module_class = mod_info['class'] 158 mod_info['installed']) [all …]
|
D | module_finder_unittest.py | 121 mod_info = {'installed': ['/path/to/install'], 125 self.mod_finder.module_info.get_module_info.return_value = mod_info 214 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH, 218 self.mod_finder.module_info.get_module_info.return_value = mod_info 233 self.mod_finder.module_info.get_module_info.return_value = mod_info 256 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH, 260 self.mod_finder.module_info.get_module_info.return_value = mod_info 294 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH, 298 self.mod_finder.module_info.get_module_info.return_value = mod_info 355 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH, [all …]
|