/test/vts/compilation_tools/vtsc/test/ |
D | test_vtsc.py | 21 import os 95 os.path.join(self._temp_dir, component_name + ".vts"), 101 os.path.join(self._temp_dir, component_name + ".vts"), 125 os.path.join(self._temp_dir, component_name + ".vts"), 131 os.path.join(self._temp_dir, component_name + ".vts"), 142 os.path.join(self._temp_dir, component_name + ".vts"), 149 os.path.join(self._output_dir, mode), 150 os.path.join(self._output_dir, mode, "") 154 canonical_source_file = os.path.join(self._canonical_dir, mode, 156 output_source_file = os.path.join(self._output_dir, mode, [all …]
|
/test/vts/script/ |
D | create-test-project.py | 23 import os 31 VTS_TEST_CASE_PATH = os.path.join(VTS_PATH, 'testcases') 64 test_dir_under_testcases = os.path.normpath( 82 self.build_top = os.getenv('ANDROID_BUILD_TOP') 88 self.vts_test_case_dir = os.path.abspath( 89 os.path.join(self.build_top, VTS_TEST_CASE_PATH)) 91 self.test_dir = os.path.abspath( 92 os.path.join(self.vts_test_case_dir, test_dir_under_testcases)) 98 if os.path.exists(self.test_dir): 102 os.makedirs(self.test_dir) [all …]
|
/test/framework/harnesses/host_controller/acloud/ |
D | acloud_client.py | 20 import os 21 from os.path import expanduser 40 tmpdir_base = os.path.join(os.getcwd(), "tmp") 41 if not os.path.exists(tmpdir_base): 42 os.mkdir(tmpdir_base) 87 config_file = os.path.join(self._tmpdir, 'acloud.config'), 88 report_file = os.path.join(self._tmpdir, 'acloud_report.json'), 89 log_file = os.path.join(self._tmpdir, 'acloud.log'), 112 config_file = os.path.join(self._tmpdir, 'acloud.config'), 113 report_file = os.path.join(self._tmpdir, 'acloud_report.json'), [all …]
|
/test/vts/utils/python/reporting/ |
D | report_file_utils_test.py | 19 import os 95 os.path.join( 96 os.path.relpath(os.path.dirname(src_path), root_dir), 97 os.path.basename(src_path))) 100 os.path.join( 102 os.path.join( 103 os.path.relpath(os.path.dirname(src_path), root_dir), 104 os.path.basename(src_path)))) 123 self.assertEqual(dest_path, os.path.basename(src_path)) 126 os.path.join(_report_file_util._url_prefix, [all …]
|
D | report_file_utils.py | 18 import os 108 dir_path = os.path.dirname(src_path) 110 relative_path = os.path.basename(src_path) 116 relative_path = os.path.join( 117 os.path.relpath(dir_path, root_dir), relative_path) 121 relative_path = os.path.join(date, relative_path) 126 dest_path = os.path.join(self._destination_dir, relative_path) 145 parent_dir = os.path.dirname(dest_path) 146 if not os.path.exists(parent_dir): 148 os.makedirs(parent_dir) [all …]
|
/test/framework/harnesses/host_controller/command_processor/ |
D | command_gsispl.py | 19 import os 69 if os.path.isfile(args.gsi): 91 if os.path.isabs(args.version_from_path) and os.path.exists( 99 tempdir_base = os.path.join(os.getcwd(), "tmp") 100 if not os.path.exists(tempdir_base): 101 os.mkdir(tempdir_base) 108 img_path = os.path.join(dest_path, "boot.img") 109 if not os.path.exists(img_path): 133 output_path = os.path.join( 134 os.path.dirname(os.path.abspath(gsi_path)), [all …]
|
D | command_retry.py | 19 import os 95 if not os.path.exists(local_results_dir): 96 os.mkdir(local_results_dir) 100 result_zip = os.path.join(local_results_dir, 171 tools_path = os.path.dirname(self.console.test_suite_info[args.suite]) 172 results_path = os.path.join(tools_path, common._RESULTS_BASE_PATH) 183 result for result in os.listdir(results_path) 184 if os.path.isdir(os.path.join(results_path, result)) 185 and not os.path.islink(os.path.join(results_path, result)) 203 latest_result_xml_path = os.path.join( [all …]
|
D | command_repack.py | 18 import os 69 self.console.tools_info[_ANDROID_INFO_TXT_FILENAME] = os.path.join( 72 tempdir_base = os.path.join(os.getcwd(), "tmp") 75 dest_url_base, new_zipfile_name = os.path.split( 78 new_zipfile_path = os.path.join(tmpdir_rezip, new_zipfile_name) 94 file_name = os.path.basename(file_path) 100 os.path.join(common._ADDITIONAL_FILES_DIR, file_name), 133 dest_url_base = os.path.join(dest_base_url, device_branch, 143 dest_url_base = os.path.join(dest_url_base, gsi_branch, gsi_target) 145 ret = os.path.join(dest_url_base, new_zipfile_name)
|
D | command_reproduce.py | 19 import os 93 dest_path = os.path.join("".join(self.ReplaceVars(["{tmp_dir}"])), 94 os.path.basename(args.report_path)) 130 os.path.join(os.getcwd(), "host_controller", "campaigns", 217 os.path.join(os.getcwd(), "host_controller", "campaigns", 274 tools_path = os.path.dirname(self.console.test_suite_info[suite]) 278 local_results_path = os.path.join(tools_path, 281 if not os.path.exists(local_results_path): 282 os.mkdir(local_results_path) 296 result_zip_local_path = os.path.join(local_results_path, [all …]
|
/test/vts/utils/python/fuzzer/ |
D | corpus_manager.py | 18 import os 110 self._gcs_path = os.path.join('corpus', branch, model) 191 dest_file_path = os.path.join(local_dest_folder, 192 os.path.basename(target_seed)) 236 dest_file_path = os.path.join(local_dest_folder, 237 os.path.basename(target_seed)) 294 local_measure_file = os.path.join( 299 remote_measure_file = os.path.join( 301 os.path.basename(local_measure_file)) 432 triggered_corpus = os.path.join( [all …]
|
/test/vts/testcases/host/camera_its/ |
D | CameraITSTest.py | 20 import os 79 os.path.abspath(os.path.join(self.data_file_path, 'CameraITS'))) 80 logging.info("cwd: %s", os.getcwd()) 83 os.environ["CAMERA_ITS_TOP"] = self.its_path 93 logging.info("PYTHONPATH env is: " + os.environ["PYTHONPATH"]) 130 its_path = os.path.join(self.its_path, "pymodules") 131 env_python_path = os.environ["PYTHONPATH"] 134 os.environ["PYTHONPATH"] = self.pythonpath 145 'python', os.path.join(self.its_path, testpath), self.device_arg, 149 outpath = os.path.join(outdir, testname + "_stdout.txt") [all …]
|
/test/vts/runners/host/ |
D | utils.py | 23 import os 112 return os.path.abspath(os.path.expanduser(path)) 122 if not os.path.exists(full_path): 123 os.makedirs(full_path) 196 for dirPath, subdirList, fileList in os.walk(p): 198 name, ext = os.path.splitext(fname) 214 for root_dir, dir_names, file_names in os.walk(dir_path): 225 if not os.path.isfile(file_full_path): 226 logging.warning('cwd: %s', os.getcwd()) 227 pypath = os.environ['PYTHONPATH'] [all …]
|
/test/framework/harnesses/host_controller/build/ |
D | build_provider.py | 18 import os 65 tempdir_base = os.path.join(os.getcwd(), "tmp") 66 if not os.path.exists(tempdir_base): 67 os.mkdir(tempdir_base) 127 if os.path.exists(dest_path): 163 dest_path = os.path.join(self.tmp_dirpath, suite_name) 164 if os.path.exists(dest_path): 169 bin_path = os.path.join(dest_path, suite_name, 171 os.chmod(bin_path, 0766) 219 dest_path = os.path.join( [all …]
|
D | build_provider_test.py | 18 import os 59 path = os.path.join(self._temp_dir, name) 75 zip_path = os.path.join(self._temp_dir, name) 89 os.path.join("android-vts", "tools", "vts-tradefed")) 107 "vti-global-config-prod.zip", os.path.join("test", "prod.config")) 115 os.path.exists(self._build_provider.GetTestSuitePackage("vts"))) 132 os.path.exists(self._build_provider.GetConfigPackage("prod"))) 147 os.path.exists(self._build_provider.GetTestSuitePackage("vts"))) 149 os.path.exists(self._build_provider.GetConfigPackage("prod")))
|
/test/vts-testcase/fuzz/script/config/ |
D | config_gen.py | 17 import os 43 self._android_build_top = os.environ.get('ANDROID_BUILD_TOP') 47 self._project_path = os.path.join(self._android_build_top, 'test', 49 self._template_dir = os.path.join(self._project_path, 'script', 52 os.path.join(self._android_build_top, 'test', 'vts-testcase', 'hal', 79 config_dir = os.path.join(self._project_path, 'config') 82 for base_dir, dirs, files, in os.walk(config_dir): 84 file_path = os.path.join(base_dir, file_name) 88 os.remove(file_path) 102 bp_template_path = os.path.join(self._template_dir, 'template.bp') [all …]
|
/test/vts/utils/python/gcs/ |
D | gcs_api_utils.py | 19 import os 44 os.environ[_GOOGLE_CRED_ENV_VAR] = key_path 204 local_dest_folder = os.path.join(dest_dir, os.path.basename(src_dir)) 205 if not os.path.exists(local_dest_folder): 206 os.makedirs(local_dest_folder) 232 dest_file_path = os.path.join( 234 os.path.join( 235 os.path.basename(src_dir), 236 os.path.basename(src_file_path))) 279 if os.path.exists(src_dir): [all …]
|
/test/vts-testcase/hal/script/build/ |
D | vts_spec_parser.py | 18 import os 27 ANDROID_BUILD_TOP = os.environ.get('ANDROID_BUILD_TOP') 33 TEST_VTS_DIR = os.path.join(ANDROID_BUILD_TOP, 'test', 'vts') 66 if os.path.exists(self._tmp_dir): 126 full_path_root = os.path.join(ANDROID_BUILD_TOP, self._path_root) 130 for base, dirs, files in os.walk(full_path_root): 135 hal_dir = os.path.relpath(base, full_path_root) 142 hal_name = os.path.dirname(hal_dir).replace('/', '.') 157 vts_spec_dir = os.path.join(self._tmp_dir, 161 os.listdir(vts_spec_dir)) [all …]
|
D | build_rule_gen_utils.py | 18 import os 44 dir_path = os.path.dirname(file_path) 45 if not os.path.exists(dir_path): 46 os.makedirs(dir_path) 48 elif not os.path.isfile(file_path): 93 for base, _, files in os.walk(dir_path): 95 abs_path = os.path.join(base, f) 98 os.remove(abs_path)
|
/test/vts/utils/python/io/ |
D | file_util.py | 18 import os 33 for (dirpath, dirnames, filenames) in os.walk( 37 return os.path.join(dirpath, filename) 54 if os.path.exists(path): 79 if skip_if_exists and os.path.exists(path): 83 os.mkdir(path) 105 if skip_if_exists and os.path.exists(path): 109 os.makedirs(path)
|
/test/framework/harnesses/host_controller/utils/ipc/ |
D | file_lock.py | 19 import os 44 self._devlock_dir = os.path.join( 45 os.path.expanduser("~"), common._DEVLOCK_DIR) 46 if not os.path.exists(self._devlock_dir): 47 os.mkdir(self._devlock_dir) 52 file_list = [file_name for file_name in os.listdir(self._devlock_dir)] 56 if os.path.isfile(os.path.join(self._devlock_dir, file_name)): 75 os.path.join(self._devlock_dir, serial), mode, 0)
|
/test/vts-testcase/hal/script/configure/ |
D | test_case_creator.py | 23 import os 64 build_top = os.getenv('ANDROID_BUILD_TOP') 129 if not os.path.exists(test_script_file): 133 self._test_script_file = os.path.basename(test_script_file) 137 if not os.path.exists(test_binary_file): 141 self._test_binary_file = os.path.basename(test_binary_file) 143 if os.path.exists(self._test_dir): 147 os.makedirs(self._test_dir) 163 return os.path.join(self.GetHalInterfacePath(), 'vts/functional', 169 return os.path.join( [all …]
|
/test/vts/utils/python/coverage/ |
D | sancov_utils.py | 17 import os 50 _SEARCH_PATHS = [(os.path.join('data', 'asan', 'vendor', 'bin'), 51 None), (os.path.join('vendor', 'bin'), None), 52 (os.path.join('data', 'asan', 'vendor', 'lib'), 53 32), (os.path.join('vendor', 'lib'), 32), (os.path.join( 55 'lib64'), 64), (os.path.join('vendor', 'lib64'), 64)] 235 open(os.path.join(resource_path, 251 parts = os.path.normpath(str(project_name)).split( 252 os.sep, 1) 297 os.path.join(self._device_resource_dict[serial], [all …]
|
/test/vts-testcase/fuzz/template/iface_fuzzer_test/ |
D | iface_fuzzer_test.py | 19 import os 38 _VTS_SPEC_DIR_TARGET = os.path.join(config.FUZZER_TEST_DIR, 'spec') 49 src_dir = os.path.join(self.data_file_path, 'spec', 'hardware', 51 dst_dir = os.path.join(self._VTS_SPEC_DIR_TARGET, hal_name_dir, 57 asan_path = os.path.join(self.data_file_path, 'DATA', 'asan', 'system') 58 driver32 = os.path.join(asan_path, 'lib', driver_name) 59 driver64 = os.path.join(asan_path, 'lib64', driver_name) 78 spec_dirs = [os.path.join(self._VTS_SPEC_DIR_TARGET, hal_name_dir, 85 os.path.join(self._VTS_SPEC_DIR_TARGET, 117 bin_host_path = os.path.join(self.data_file_path, 'DATA', 'bin',
|
/test/vts-testcase/vndk/golden/ |
D | vndk_data.py | 19 import os 49 _GOLDEN_DIR = os.path.join("vts", "testcases", "vndk", "golden") 65 with open(os.path.join(data_file_path, _GOLDEN_DIR, 99 dump_dir = os.path.join( 104 if not os.path.isdir(dump_dir): 176 vndk_lib_list_path = os.path.join( 178 if not os.path.isfile(vndk_lib_list_path): 182 vndk_lib_extra_list_path = os.path.join( 184 if not os.path.isfile(vndk_lib_extra_list_path):
|
/test/vts-testcase/fuzz/kernel/syzkaller/ |
D | syzkaller_test.py | 18 import os 61 self._env['syzkaller_dir'] = os.path.join(_temp_dir, env.syzkaller_dir) 62 self._env['syzkaller_bin_dir'] = os.path.join(_temp_dir, 64 self._env['syzkaller_work_dir'] = os.path.join(_temp_dir, 66 self._env['template_cfg'] = os.path.join(_temp_dir, env.template_cfg) 85 for root, dirs, files in os.walk(self._env['syzkaller_bin_dir']): 87 os.chmod(os.path.join(root, filepath), 0755) 138 crash_dir = os.path.join(test_case._work_dir_path, 'crashes') 139 if os.listdir(crash_dir) == []:
|