Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 192) sorted by relevance

12345678

/scripts/tests/twister_blackbox/
A Dtest_hardwaremap.py114 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 Dtest_outfile.py49 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 Dtest_report.py154 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 Dtest_footprint.py61 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 Dtest_coverage.py107 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 Dtest_filter.py75 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 Dtest_testlist.py24 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 Dtest_printouts.py31 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 Dtest_testplan.py26 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 Dtest_config.py24 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 Dtest_addon.py27 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 Dparse_syscalls.py75 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 Dsubfolder_list.py45 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 Dget_maintainer.py231 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 Dtest_domains.py17 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 Dtest_environment.py299 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 Dtest_testsuite.py18 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 Dconftest.py16 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 Dplugin.py151 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 Dbuild_helpers.py24 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 Dsbom.py44 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 Dpackage.py20 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 Dcoverage.py280 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 Dgen_dts_cmake.py47 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 Dguideline_check.py75 …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)

Completed in 32 milliseconds

12345678