/scripts/tests/twister_blackbox/ |
A D | test_hardwaremap.py | 114 path = os.path.join(ZEPHYR_BASE, file_name) 117 if os.path.exists(path): 142 assert os.path.exists(path) 154 if os.path.exists(path): 166 path = os.path.join(ZEPHYR_BASE, file_name) 169 if os.path.exists(path): 206 assert os.path.exists(path) 236 if os.path.exists(path): 250 if os.path.exists(path): 273 assert os.path.exists(path) [all …]
|
A D | test_outfile.py | 49 path = os.path.join(TEST_DATA, 'tests', 'dummy') 72 current_dirs = os.listdir(os.path.normpath(os.path.join(out_path, '..'))) 85 path = os.path.join(TEST_DATA, 'samples', 'hello_world') 99 relpath = os.path.relpath(path, ZEPHYR_BASE) 115 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic', 'group2') 124 relative_test_path = os.path.relpath(path, ZEPHYR_BASE) 167 build_filename = os.path.basename(os.path.normpath(flag_value)) 175 pipe_filename = os.path.basename(os.path.normpath(flag_value)) 182 path = os.path.join(TEST_DATA, 'samples', 'hello_world') 183 relative_test_path = os.path.relpath(path, ZEPHYR_BASE) [all …]
|
A D | test_report.py | 154 path = os.path.join(out_path, f_name) 155 assert os.path.exists(path), 'file not found' 203 path = os.path.join(out_path, f_name) 204 assert os.path.exists(path), f'file not found {f_name}' 235 path = os.path.join(out_path, f_name) 236 assert os.path.exists(path), f'file not found {f_name}' 267 path = os.path.join(twister_path, f_name) 268 assert os.path.exists(path), f'file not found {f_name}' 304 path = os.path.join(twister_path, f_name) 305 assert os.path.exists(path), 'file not found {f_name}' [all …]
|
A D | test_footprint.py | 61 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group') 95 path = os.path.join(TEST_DATA, 'tests', 'dummy') 123 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group') 148 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group') 188 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group') 221 path = os.path.join(TEST_DATA, 'tests', 'dummy') 257 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group') 290 path = os.path.join(TEST_DATA, 'tests', 'dummy') 363 path = os.path.join(TEST_DATA, 'tests', 'dummy') 394 path = os.path.join(TEST_DATA, 'tests', 'dummy') [all …]
|
A D | test_coverage.py | 107 os.path.join('coverage','index.html') 181 path = os.path.join(out_path, f_name) 182 assert os.path.exists(path), f'file not found {f_name}' 220 base_dir = os.path.join(TEST_DATA, "test_dir") 221 if os.path.exists(base_dir): 241 path = os.path.join(out_path, f_name) 242 assert os.path.exists(path), f'file not found {f_name}' 244 with open(path, "r") as json_file: 248 if os.path.exists(base_dir): 285 path = os.path.join(out_path, f_name) [all …]
|
A D | test_filter.py | 75 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister') 101 path = os.path.join(TEST_DATA, 'tests', 'dummy') 114 with open(os.path.join(out_path, 'testplan.json')) as f: 129 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic') 131 args = ['-i', '--outdir', out_path, '-T', path] + \ 157 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic') 159 args = ['-i', '--outdir', out_path, '-T', path] + \ 194 path = os.path.join(TEST_DATA, 'tests', 'no_filter') 228 path = os.path.join(TEST_DATA, 'tests', 'no_filter') 260 path = os.path.join(TEST_DATA, 'tests', 'platform_key') [all …]
|
A D | test_testlist.py | 24 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister') 36 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic') 37 saved_tests_file_path = os.path.realpath(os.path.join(out_path, '..', 'saved-tests.json')) 38 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ 54 path = os.path.join(TEST_DATA, 'tests', 'dummy') 55 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ 67 with open(os.path.join(out_path, 'testplan.json')) as f:
|
A D | test_printouts.py | 31 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 35 os.path.join(TEST_DATA, 'tests', 'dummy', 'device'), 42 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 55 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 67 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 73 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 130 os.path.join(TEST_DATA, 'tests', 'dummy', 'device'), 260 os.path.join(TEST_DATA, 'tests', 'dummy'), 471 path = os.path.join(TEST_DATA, 'samples', 'hello_world') 472 args = ['-i', '--outdir', out_path, '-T', path] + \ [all …]
|
A D | test_testplan.py | 26 os.path.join('scripts', 'tests', 'twister_blackbox', 'test_data', 'tests', 44 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister') 61 path = os.path.join(TEST_DATA, 'tests', 'dummy') 62 args = ['-i', '--outdir', out_path, '-T', path, '--sub-test', test, '-y'] + \ 75 with open(os.path.join(out_path, 'testplan.json')) as f: 94 path = os.path.join(TEST_DATA, 'tests', 'dummy') 95 args = ['-i', '--outdir', out_path, '-T', path, '--filter', filter, '-y'] + \ 106 with open(os.path.join(out_path, 'testplan.json')) as f: 127 path = os.path.join(TEST_DATA, 'tests', 'dummy') 128 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ [all …]
|
A D | test_config.py | 24 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister') 36 path = os.path.join(TEST_DATA, 'tests', 'dummy') 37 alt_config_root = os.path.join(TEST_DATA, 'alt-test-configs', 'dummy') 38 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ 49 with open(os.path.join(out_path, 'testplan.json')) as f: 72 path = os.path.join(TEST_DATA, 'tests', 'dummy') 73 config_path = os.path.join(TEST_DATA, 'test_config.yaml') 74 args = ['-i','--outdir', out_path, '-T', path, '--level', level, '-y', 84 with open(os.path.join(out_path, 'testplan.json')) as f:
|
A D | test_addon.py | 27 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister') 49 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'ubsan') 76 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'lsan') 109 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'asan') 164 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic', 'group2') 165 args = ['--outdir', out_path, '-T', path] + \ 178 with open(os.path.join(out_path, 'twister.log')) as f: 242 if os.path.exists(additional_cache_path): 243 if os.path.isfile(additional_cache_path): 299 test_path = os.path.join(TEST_DATA, 'tests', 'pytest') [all …]
|
/scripts/build/ |
A D | parse_syscalls.py | 75 if os.path.isfile(one_file): 102 path = os.path.join(root, fn) 103 if (not (path.endswith(".h") or path.endswith(".c")) or 104 path.endswith(os.path.join(os.sep, 'toolchain', 108 path = PurePath(os.path.normpath(path)).as_posix() 125 fn = os.path.basename(one_file) 143 def update_file_if_changed(path, new): argument 144 if os.path.exists(path): 145 with open(path, 'r') as fp: 149 with open(path, 'w') as fp: [all …]
|
A D | subfolder_list.py | 45 if not os.path.exists(create_links): 47 symbase = os.path.basename(directory) 48 symlink = create_links + os.path.sep + symbase 49 if not os.path.exists(symlink): 59 targetdirectory = os.path.join(root, subdir) 60 reldir = os.path.relpath(targetdirectory, directory) 62 symlink = create_links + os.path.sep + linkname 63 if not os.path.exists(symlink): 67 dirlist.append(os.path.join(root, subdir)) 80 if os.path.exists(out_file): [all …]
|
/scripts/ |
A D | get_maintainer.py | 231 is_dir = os.path.isdir(path) 235 path = os.path.normpath(os.path.join( 237 path)) 240 path += "/" 269 if not os.path.exists(path): 386 if args.path is not None and not os.path.exists(args.path): 389 for path in _ls_files(args.path): 577 if all(path.is_dir() for path in paths): 626 def _ls_files(path=None): argument 628 if path is not None: [all …]
|
/scripts/tests/build_helpers/ |
A D | test_domains.py | 17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers")) 146 ('some', os.path.join('dir', '2')), 147 ('order', os.path.join('dir', '1')), 154 ('order', os.path.join('dir', '1')), 155 ('some', os.path.join('dir', '2')), 161 [('some', os.path.join('dir', '2'))], 187 ('some', os.path.join('dir', '2')), 188 ('order', os.path.join('dir', '1')), 211 ('some', os.path.join('dir', '2')), 238 ('some', os.path.join('dir', '2')), [all …]
|
/scripts/tests/twister/ |
A D | test_environment.py | 299 original_abspath = os.path.abspath 301 def mocked_abspath(path): argument 302 if path == 'dummy_abspath': 326 original_abspath = os.path.abspath 328 def mocked_abspath(path): argument 329 if path == 'dummy_abspath': 430 original_abspath = os.path.abspath 432 def mocked_abspath(path): argument 433 if path == 'dummy_abspath': 560 def mocked_abspath(path): argument [all …]
|
A D | test_testsuite.py | 18 sys.path.insert(0, os.path.join(ZEPHYR_BASE, 'scripts', 'pylib', 'twister')) 144 os.path.join( 160 os.path.join( 309 TEST_DATA_REL_PATH = os.path.join( 322 os.path.join( 329 os.path.join( 345 os.path.join( 463 cur_dir = path 636 if path == src_dir_path: 699 return os.path.normpath(path) == isdir_path [all …]
|
A D | conftest.py | 16 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister")) 17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts")) 49 env.board_roots = [os.path.join(test_data, "board_config", "1_level", "2_level")] 50 env.test_roots = [os.path.join(testsuites_dir, 'tests', testsuites_dir, 'samples')] 51 env.test_config = os.path.join(test_data, "test_config.yaml") 80 class_testplan.env.board_roots = [os.path.abspath(os.path.join(test_data, "board_config"))]
|
/scripts/pylib/pytest-twister-harness/src/twister_harness/ |
A D | plugin.py | 151 if not os.path.isdir(config.option.build_dir): 165 def _normalize_path(path: str | None) -> str: 166 if path is not None: 167 path = os.path.expanduser(os.path.expandvars(path)) 168 path = os.path.normpath(os.path.abspath(path)) 169 return path
|
/scripts/west_commands/ |
A D | build_helpers.py | 24 script_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) 25 sys.path.insert(0, os.path.join(script_dir, "pylib/build_helpers/")) 47 kwargs['source_dir'] = os.path.relpath(source_dir, cwd) 113 return os.path.abspath(build_dir) 117 def is_zephyr_build(path): argument 132 cache = zcmake.CMakeCache.from_build_dir(path) 146 def load_domains(path): argument 152 domains_file = Path(path) / 'domains.yaml'
|
/scripts/west_commands/zspdx/ |
A D | sbom.py | 44 cmakeApiDirPath = os.path.join(build_dir, ".cmake", "api", "v1", "query") 45 if os.path.exists(cmakeApiDirPath): 46 if not os.path.isdir(cmakeApiDirPath): 55 queryFilePath = os.path.join(cmakeApiDirPath, "codemodel-v2") 56 if os.path.exists(queryFilePath): 57 if not os.path.isfile(queryFilePath): 107 retval = writeSPDX(os.path.join(cfg.spdxDir, "sdk.spdx"), w.docSDK, cfg.spdxVersion) 113 retval = writeSPDX(os.path.join(cfg.spdxDir, "app.spdx"), w.docApp, cfg.spdxVersion) 119 retval = writeSPDX(os.path.join(cfg.spdxDir, "zephyr.spdx"), w.docZephyr, cfg.spdxVersion) 125 retval = writeSPDX(os.path.join(cfg.spdxDir, "build.spdx"), w.docBuild, cfg.spdxVersion) [all …]
|
/scripts/pylib/twister/twisterlib/ |
A D | package.py | 20 root = os.path.basename(self.options.outdir) 24 f = os.path.relpath(d, self.options.outdir) 25 tar.add(d, arcname=os.path.join(root, f)) 31 os.path.join(self.options.outdir, "twister.json"), encoding='utf-8' 39 os.path.join( 46 os.path.join(self.options.outdir, "twister.json"), 47 os.path.join(self.options.outdir, "testplan.json")
|
A D | coverage.py | 280 ztestfile = os.path.join(outdir, "ztest.info") 288 if os.path.exists(fname)] 319 if os.path.exists(ztestfile) and os.path.getsize(ztestfile) > 0: 444 if os.path.exists(file_) and os.path.getsize(file_) > 0] 450 ztest_file = os.path.join(outdir, "ztest.json") 460 if os.path.exists(fname)] 476 subdir = os.path.join(outdir, "coverage") 528 if os.path.islink(link): 560 zephyr_sdk_gcov_tool = os.path.join( 566 llvm_path = os.path.join(llvm_path, "bin") [all …]
|
/scripts/dts/ |
A D | gen_dts_cmake.py | 47 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree', 104 path = chosen_nodes[node].path 110 path = node.path 140 compatible2paths[comp].append(node.path) 163 for path in compatible2paths[comp]:
|
/scripts/ci/ |
A D | guideline_check.py | 75 …if not f.path.endswith(".c") and not f.path.endswith(".h") or not os.path.exists(zephyr_base + "/"… 82 for path in coccinelle_reserved_names_exclude_regex: 83 if re.match(path, f.path): 97 f.path, 107 violation = "{}:{}".format(f.path, line.target_line_no)
|