Home
last modified time | relevance | path

Searched refs:cwd (Results 1 – 24 of 24) sorted by relevance

/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest_posix.c57 const char *cwd; in ztest_relative_filename() local
60 cwd = nsi_host_getcwd(buf, sizeof(buf)); in ztest_relative_filename()
61 if (cwd && strlen(file) > strlen(cwd) && !strncmp(file, cwd, strlen(cwd))) { in ztest_relative_filename()
62 return file + strlen(cwd) + 1; /* move past the trailing '/' */ in ztest_relative_filename()
/Zephyr-latest/scripts/west_commands/tests/
Dtest_mdb.py206 cc.assert_called_once_with(test_case['o'], cwd=RC_BUILD_DIR)
214 pii.assert_called_once_with(test_case['o'], cwd=RC_BUILD_DIR)
223 cc_calls = [call(TEST_NSIM_CORE1, cwd=RC_BUILD_DIR), call(TEST_NSIM_CORE2, cwd=RC_BUILD_DIR)]
225 pii.assert_called_once_with(TEST_NSIM_CORES_LAUNCH, cwd=RC_BUILD_DIR)
235 cc.assert_called_once_with(test_case['o'], cwd=tmpdir)
243 cc.assert_called_once_with(test_case['o'], cwd=tmpdir)
260 pii.assert_called_once_with(test_case['o'], cwd=tmpdir)
268 pii.assert_called_once_with(test_case['o'], cwd=tmpdir)
286 cc_calls = [call(TEST_HW_CORE1, cwd=tmpdir), call(TEST_HW_CORE2, cwd=tmpdir)]
288 pii.assert_called_once_with(TEST_HW_CORES_LAUNCH_NO_HOSTLINK, cwd=tmpdir)
[all …]
/Zephyr-latest/scripts/west_commands/
Dbuild_helpers.py39 def _resolve_build_dir(fmt, guess, cwd, **kwargs): argument
45 if escapes_directory(cwd, source_dir):
46 kwargs['source_dir'] = os.path.relpath(source_dir, cwd)
100 cwd = os.getcwd()
102 default = _resolve_build_dir(default, guess, cwd, **kwargs)
106 elif is_zephyr_build(cwd):
107 build_dir = cwd
Drun_tests.py36 subprocess.run(mypy, check=True, cwd=here)
40 subprocess.run(pytest, check=True, cwd=here)
Dzcmake.py29 def run_cmake(args, cwd=None, capture_output=False, dry_run=False): argument
54 if cwd:
55 kwargs['cwd'] = cwd
58 in_cwd = ' (in {})'.format(cwd) if cwd else ''
Dsign.py452 subprocess.run(preproc_cmd, check=True, cwd=self.build_dir)
453 subprocess.run(full_preproc_cmd, check=True, cwd=self.build_dir)
Dbuild.py670 run_cmake(cmake_args, cwd=self.build_dir, dry_run=self.args.dry_run)
/Zephyr-latest/scripts/footprint/
Dcompare_footprint46 cwd=os.environ.get('ZEPHYR_BASE'), shell=True)
87 cwd=os.environ.get('ZEPHYR_BASE'), shell=True)
92 def sanity_results_filename(commit=None, cwd=os.environ.get('ZEPHYR_BASE')): argument
101 return os.path.join(cwd,'scripts', 'sanity_chk', file_name)
103 def git_checkout(commit, cwd=os.environ.get('ZEPHYR_BASE')): argument
105 stderr=subprocess.STDOUT, cwd=cwd, shell=True)
112 cwd=cwd, shell=True)
119 def run_sanity_footprint(commit=None, cwd=os.environ.get('ZEPHYR_BASE'), argument
128 cwd=cwd, shell=True)
151 cwd=tempfile.gettempdir(), shell=True)
[all …]
/Zephyr-latest/scripts/kconfig/
Dlint.py166 cwd=modpath, check=False)
187 print(run(cmd, cwd=modpath, check=False), end="")
254 cwd=modpath).splitlines():
293 def run(cmd, cwd=TOP_DIR, check=True): argument
303 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd)
/Zephyr-latest/tests/misc/llext-edk/pytest/
Dtest_edk.py48 output = check_output(command, text=True, cwd=tempdir)
72 output = check_output(command, text=True, cwd=tempdir_extension, env=env)
77 output = check_output(command, text=True, cwd=tempdir_extension, env=env)
/Zephyr-latest/subsys/fs/
Dshell.c87 static char cwd[MAX_PATH_LEN] = "/"; variable
95 if (cwd[1] == '\0') { in create_abs_path()
103 strncpy(path, cwd, len); in create_abs_path()
126 strcpy(cwd, "/"); in cmd_cd()
131 char *prev = strrchr(cwd, '/'); in cmd_cd()
133 if (!prev || prev == cwd) { in cmd_cd()
134 strcpy(cwd, "/"); in cmd_cd()
156 strncpy(cwd, path, sizeof(cwd)); in cmd_cd()
157 cwd[sizeof(cwd) - 1] = '\0'; in cmd_cd()
169 strncpy(path, cwd, sizeof(path)); in cmd_ls()
[all …]
/Zephyr-latest/scripts/ci/
Dcheck_compliance.py41 def git(*args, cwd=None, ignore_non_zero=False): argument
49 cp = subprocess.run(git_cmd, capture_output=True, cwd=cwd)
217 cwd=GIT_TOP)
224 shell=True, cwd=GIT_TOP)
304 cwd=GIT_TOP)
311 cwd=GIT_TOP)
671 ":samples", ":tests", cwd=ZEPHYR_BASE)
696 ":samples", ":tests", cwd=ZEPHYR_BASE)
878 cwd=Path(GIT_TOP))
1231 shell=True, cwd=GIT_TOP)
[all …]
/Zephyr-latest/scripts/west_commands/runners/
Dmdb.py96 mdb_runner.check_call(mdb_sub_cmd, cwd=mdb_runner.build_dir)
108 mdb_runner.call(mdb_cmd, cwd=mdb_runner.build_dir)
Dspi_burn.py91 cwd=os.path.dirname(self.iceman_path),
/Zephyr-latest/doc/develop/west/
Dwest-apis.rst154 The *cwd* keyword argument was replaced with a catch-all ``**kwargs``.
163 The *cwd* keyword argument was replaced with a catch-all ``**kwargs``.
480 The *cwd* parameter can now be any ``os.PathLike``.
484 The *cwd* parameter can now be any ``os.PathLike``.
489 The *cwd* parameter can now be any ``os.PathLike``.
493 The *cwd* parameter can now be any ``os.PathLike``.
497 The *cwd* parameter can now be any ``os.PathLike``.
502 The *cwd* parameter can now be any ``os.PathLike``.
/Zephyr-latest/scripts/
Dzephyr_module.py453 cwd=path).wait()
459 cwd=path)
470 cwd=path).wait()
480 cwd=path)
496 cwd=path)
512 cwd=path)
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Denvironment.py1079 cwd=ZEPHYR_BASE)
1095 cwd=ZEPHYR_BASE)
Drunner.py512 self.cwd = None
549 if self.cwd:
550 kwargs['cwd'] = self.cwd
709 if self.cwd:
710 kwargs['cwd'] = self.cwd
Dhandlers.py360 command, stdout=subprocess.PIPE, stderr=stderr_log_fp, cwd=self.build_dir, env=env
1109 cwd=self.build_dir
1399 cwd=self.build_dir) as proc:
Dharness.py215 stderr=subprocess.STDOUT, cwd=self.instance.build_dir, env=env) as renode_test_proc:
/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_edtlib.py32 cwd = os.getcwd()
37 os.chdir(cwd)
/Zephyr-latest/scripts/tests/twister/
Dtest_runner.py323 cmake.cwd = os.path.join('dummy', 'working', 'dir')
355 cwd=os.path.join('dummy', 'working', 'dir')
463 cmake.cwd = os.path.join('dummy', 'working', 'dir')
502 cwd=os.path.join('dummy', 'working', 'dir')
Dtest_handlers.py2000 def mock_popen(command, stdout=None, stdin=None, stderr=None, cwd=None): argument
/Zephyr-latest/scripts/west_commands/completion/
Dwest-completion.fish200 set -l cwd (pwd)
204 set cwd $argv[1]
208 set -l cwd_split (string split '/' $cwd)