Home
last modified time | relevance | path

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

12

/tools/asuite/atest/
Dmodule_info_unittest.py81 mod_info = module_info.ModuleInfo()
83 mod_info.module_info_target)
92 mod_info = module_info.ModuleInfo()
94 mod_info.module_info_target)
103 mod_info = module_info.ModuleInfo()
105 mod_info.module_info_target)
123 mod_info = module_info.ModuleInfo()
125 mod_info._get_path_to_module_info(mod_info_dict))
130 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
131 self.assertTrue(mod_info.is_module(EXPECTED_MOD_TARGET))
[all …]
Dmodule_info.py109 mod_info = json.load(json_file)
110 return module_info_target, mod_info
123 for mod_name, mod_info in name_to_module_info.items():
126 if mod_name != mod_info.get(constants.MODULE_NAME, ''):
128 for path in mod_info.get(constants.MODULE_PATH, []):
129 mod_info[constants.MODULE_NAME] = mod_name
132 path_to_module_info[path].append(mod_info)
134 path_to_module_info[path] = [mod_info]
173 def is_suite_in_compatibility_suites(self, suite, mod_info): argument
183 return suite in mod_info.get(constants.MODULE_COMPATIBILITY_SUITES, [])
[all …]
Datest.py390 def _print_module_info_from_module_name(mod_info, module_name): argument
404 target_module_info = mod_info.get_module_info(module_name)
417 def _print_test_info(mod_info, test_infos): argument
428 _print_module_info_from_module_name(mod_info, test_info.test_name)
434 _print_module_info_from_module_name(mod_info, build_target)
548 def _print_testable_modules(mod_info, suite): argument
555 testable_modules = mod_info.get_testable_modules(suite)
701 mod_info = module_info.ModuleInfo(force_build=args.rebuild_module_info)
705 translator = cli_translator.CLITranslator(module_info=mod_info,
708 _print_testable_modules(mod_info, args.list_modules)
[all …]
Datest_unittest.py118 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)
Dcli_translator.py71 self.mod_info = module_info
98 self.mod_info, test):
162 mod_finder = module_finder.ModuleFinder(self.mod_info)
285 test_mod_info = self.mod_info.name_to_module_info.get(
/tools/tradefederation/core/atest/
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 …]
Datest_unittest.py118 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)
Dcli_translator.py72 self.mod_info = module_info
99 self.mod_info, test):
163 mod_finder = module_finder.ModuleFinder(self.mod_info)
285 test_mod_info = self.mod_info.name_to_module_info.get(
/tools/asuite/aidegen/lib/
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_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 result = mod_info.get_module_includes('multiarch')
142 mod_info = native_module_info.NativeModuleInfo()
143 self.assertFalse(mod_info.is_module_need_build('test_multiarch'))
152 mod_info = native_module_info.NativeModuleInfo()
153 self.assertFalse(mod_info.is_module_need_build('multiarch1'))
[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 …]
Dnative_module_info.py74 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 …]
Dmodule_info_unittest.py51 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 …]
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:
288 source_files = self.mod_info[constant.KEY_SRCS]
355 params = self.mod_info.get(flag, {})
[all …]
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,
Dmodule_info.py66 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
/tools/asuite/atest/test_finders/
Dmodule_finder.py68 mod_info = self.module_info.get_module_info(mod)
75 if self.module_info.is_testable_module(mod_info):
76 testable_modules.append(mod_info.get(constants.MODULE_NAME))
81 mod_info = self.module_info.get_module_info(module_name)
83 if mod_info:
84 suites = mod_info.get('compatibility_suites', [])
155 mod_info = self.module_info.get_module_info(module_name)
156 if not mod_info:
158 test.module_class = mod_info['class']
160 mod_info['installed'])
[all …]
Dmodule_finder_unittest.py124 mod_info = {'installed': ['/path/to/install'],
128 self.mod_finder.module_info.get_module_info.return_value = mod_info
217 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH,
221 self.mod_finder.module_info.get_module_info.return_value = mod_info
236 self.mod_finder.module_info.get_module_info.return_value = mod_info
259 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH,
263 self.mod_finder.module_info.get_module_info.return_value = mod_info
297 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH,
301 self.mod_finder.module_info.get_module_info.return_value = mod_info
358 mod_info = {constants.MODULE_INSTALLED: DEFAULT_INSTALL_PATH,
[all …]
/tools/tradefederation/core/atest/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/aidegen/idea/
Diml.py62 def __init__(self, mod_info): argument
68 self._mod_info = mod_info
71 mod_info[constant.KEY_PATH][0])
73 mod_info[constant.KEY_IML_NAME] + '.iml')
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py697 mod_info = common_util.get_json_dict(cc_path)['modules'][mod_name]
698 if mod_info:
700 mod_info).generate_cmakelists_file()
704 mod_info['path'][0])

12