Home
last modified time | relevance | path

Searched refs:mod_info (Results 1 – 25 of 41) sorted by relevance

12

/tools/asuite/atest/
Dmodule_info_unittest.py110 mod_info = module_info.ModuleInfo(index_dir=HOST_OUT_DIR)
112 mod_info.module_info_target)
121 mod_info = module_info.ModuleInfo(index_dir=HOST_OUT_DIR)
123 mod_info.module_info_target)
132 mod_info = module_info.ModuleInfo(index_dir=HOST_OUT_DIR)
134 mod_info.module_info_target)
154 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH,
157 mod_info._get_path_to_module_info(mod_info_dict))
164 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
165 self.assertTrue(mod_info.is_module(EXPECTED_MOD_TARGET))
[all …]
Dbazel_mode_unittest.py64 mod_info = self.create_module_info(modules)
72 mod_info,
78 def run_generator(self, mod_info, enabled_features=None): argument
85 mod_info,
99 mod_info = self.create_empty_module_info()
108 mod_info.name_to_module_info[module_name] = info
111 mod_info.name_to_module_info[m['module_name']] = m
113 return mod_info
229 workspace_generator.mod_info.mod_info_file_path.unlink()
252 Path(workspace_generator.mod_info.mod_info_file_path).touch()
[all …]
Dmodule_info.py226 mod_info = self._merge_build_system_infos(
231 mod_info = json.load(merged_info_json)
232 _add_missing_variant_modules(mod_info)
234 return module_info_target, mod_info
273 for mod_name, mod_info in name_to_module_info.items():
276 if mod_name != mod_info.get(constants.MODULE_NAME, ''):
278 for path in mod_info.get(constants.MODULE_PATH, []):
279 mod_info[constants.MODULE_NAME] = mod_name
282 path_to_module_info[path].append(mod_info)
284 path_to_module_info[path] = [mod_info]
[all …]
Dbazel_mode.py102 def generate_bazel_workspace(mod_info: module_info.ModuleInfo,
114 mod_info,
131 build_out_dir: Path, mod_info: module_info.ModuleInfo,
150 self.mod_info = mod_info
191 self.mod_info.mod_info_file_path,
200 for name, info in self.mod_info.name_to_module_info.items():
212 self.mod_info.is_device_driven_test(info)):
302 info = self.mod_info.get_module_info(module_name)
330 return self.mod_info.is_testable_module(
331 info) and self.mod_info.is_host_unit_test(info)
[all …]
Datest.py486 def _print_module_info_from_module_name(mod_info, module_name): argument
500 target_module_info = mod_info.get_module_info(module_name)
513 def _print_test_info(mod_info, test_infos): argument
524 _print_module_info_from_module_name(mod_info, test_info.test_name)
530 _print_module_info_from_module_name(mod_info, build_target)
566 def _run_test_mapping_tests(results_dir, test_infos, extra_args, mod_info): argument
598 results_dir, tests, args, mod_info, delay_print_summary=True)
624 def _dry_run(results_dir, extra_args, test_infos, mod_info): argument
638 runner = test_runner(results_dir, mod_info=mod_info)
646 def _print_testable_modules(mod_info, suite): argument
[all …]
Dcli_translator.py71 def __init__(self, mod_info=None, print_cache_msg=True, argument
84 self.mod_info = mod_info
119 self.mod_info, test)
122 self.mod_info,
140 if self.mod_info:
141 test_deps = self.mod_info.get_install_module_dependency(
162 if self.mod_info.is_module(test_dep)]
215 if not self.mod_info.is_module(test):
219 if not self.mod_info.has_mainline_modules(test, mainline_modules):
243 mod_finder = module_finder.ModuleFinder(self.mod_info)
[all …]
Dtest_runner_handler.py95 def get_test_runner_reqs(mod_info: module_info.ModuleInfo,
113 mod_info=mod_info,
120 def run_all_tests(results_dir, test_infos, extra_args, mod_info, argument
147 mod_info=mod_info,
/tools/asuite/atest-py2/
Dmodule_info_unittest.py77 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 …]
Dmodule_info.py107 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 …]
Datest.py383 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 …]
/tools/asuite/aidegen/lib/
Dnative_module_info_unittest.py113 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 …]
Dclion_project_file_gen_unittest.py58 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 …]
Dnative_module_info.py73 mod_info = common_util.get_json_dict(module_file)
74 NativeModuleInfo.c_lang_path = mod_info.get(_CLANG, '')
75 NativeModuleInfo.cpp_lang_path = mod_info.get(_CPPLANG, '')
76 name_to_module_info = mod_info.get(_MODULES, {})
115 mod_info = self.name_to_module_info.get(mod_name, {})
116 if not mod_info:
120 for flag in mod_info:
122 if header in mod_info[flag]:
123 includes.update(set(mod_info[flag][header]))
141 mod_info = self.name_to_module_info.get(mod_name, {})
[all …]
Dsource_locator_unittest.py257 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 …]
Dcommon_util_unittest.py58 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 …]
Dmodule_info_unittest.py51 mod_info = {'class':['APPS']}
54 mod_info, ''))
55 mod_info = {'class':['APPS'], 'path':[]}
58 mod_info, ''))
59 mod_info = {'class':['APPS'], 'path':['path_to_a']}
62 mod_info, ''))
65 mod_info, 'test'))
66 mod_info = {'path':['path_to_a']}
69 mod_info, 'test'))
72 mod_info, 'path_to_a'))
[all …]
Dmodule_info.py59 mod_info = json.load(json_file)
61 return module_info_target, mod_info
95 def is_target_module(mod_info): argument
106 if mod_info:
108 x in mod_info.get(constants.MODULE_CLASS, [])
113 def is_project_path_relative_module(mod_info, rel_path): argument
131 if (constant.KEY_PATH not in mod_info
132 or not mod_info[constant.KEY_PATH]):
134 path = mod_info[constant.KEY_PATH][0]
137 if (constant.KEY_CLASS in mod_info
Dclion_project_file_gen.py132 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 …]
Dnative_util.py67 mod_info = cc_module_info.get_module_info(target)
69 mod_info, rel_path)
71 module_names.append(mod_info[constant.KEY_MODULE_NAME])
267 for mod_info in rust_modules_info:
268 if _ROOT_MODULE not in mod_info or _DISPLAY_NAME not in mod_info:
270 path = mod_info[_ROOT_MODULE]
274 rebuild_targets.add(mod_info[_DISPLAY_NAME])
Dmodule_info_util_unittest.py90 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/
Dmodule_finder.py74 mod_info = self.module_info.get_module_info(mod)
81 if self.module_info.is_testable_module(mod_info):
84 module_srcs = mod_info.get(constants.MODULE_SRCS, [])
93 mod_info.get(constants.MODULE_NAME))
95 testable_modules.append(mod_info.get(constants.MODULE_NAME))
102 mod_info = self.module_info.get_module_info(module_name)
104 if mod_info:
105 suites = mod_info.get('compatibility_suites', [])
183 mod_info = self.module_info.get_module_info(module_name)
184 if not mod_info:
[all …]
Dmodule_finder_unittest.py129 mod_info = {'installed': ['/path/to/install'],
133 self.mod_finder.module_info.get_module_info.return_value = mod_info
154 mod_info = {'installed': ['/path/to/install'],
161 self.mod_finder.module_info.get_module_info.return_value = mod_info
179 mod_info = {'installed': ['/path/to/install'],
186 self.mod_finder.module_info.get_module_info.return_value = mod_info
283 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH,
287 self.mod_finder.module_info.get_module_info.return_value = mod_info
303 self.mod_finder.module_info.get_module_info.return_value = mod_info
328 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH,
[all …]
/tools/asuite/atest-py2/test_finders/
Dmodule_finder.py66 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 …]
Dmodule_finder_unittest.py121 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 …]
/tools/asuite/atest/test_runners/
Datest_tf_test_runner.py121 mod_info: module_info.ModuleInfo=None, **kwargs):
124 self.module_info = mod_info
856 def _has_instant_app_config(test_infos, mod_info): argument
867 tinfo, mod_info)
875 def _is_parameter_auto_enabled_cfg(tinfo, mod_info): argument
886 tinfo, mod_info)
911 arg_value: Any, mod_info: module_info.ModuleInfo,
928 mod_info.get_module_info(test_name), keyword)
942 def extra_args_to_tf_args(mod_info: module_info.ModuleInfo,
1051 tf_args = supported_tf_args[arg](extra_args[arg], mod_info,

12