Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 482) sorted by relevance

12345678910>>...20

/Zephyr-latest/scripts/build/
Dsubfolder_list.py13 import os
45 if not os.path.exists(create_links):
46 os.makedirs(create_links)
47 symbase = os.path.basename(directory)
48 symlink = create_links + os.path.sep + symbase
49 if not os.path.exists(symlink):
50 os.symlink(directory, symlink)
55 for root, dirs, _ in os.walk(directory, topdown=True):
59 targetdirectory = os.path.join(root, subdir)
60 reldir = os.path.relpath(targetdirectory, directory)
[all …]
Ddir_is_writeable.py2 import os
7 is_writeable = os.access(sys.argv[1], os.W_OK)
/Zephyr-latest/samples/arch/mpu/mpu_test/
DREADME.rst52 <err> os: ***** BUS FAULT *****
53 <err> os: Precise data bus error
54 <err> os: BFAR Address: 0x24000000
55 <err> os: r0/a1: 0x00009a5c r1/a2: 0x00000008 r2/a3: 0x20001aa8
56 <err> os: r3/a4: 0x24000000 r12/ip: 0x00000000 r14/lr: 0x000029b7
57 <err> os: xpsr: 0x21000000
58 <err> os: Faulting instruction address (r15/pc): 0x000003c8
59 <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
60 <err> os: Current thread: 0x20000708 (shell_uart)
61 <err> os: Halting system
[all …]
/Zephyr-latest/scripts/tests/twister_blackbox/
Dtest_outfile.py12 import os
28 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
49 path = os.path.join(TEST_DATA, 'tests', 'dummy')
57 os.mkdir(os.path.join(out_path))
60 straggler_path = os.path.join(out_path, straggler_name)
72 current_dirs = os.listdir(os.path.normpath(os.path.join(out_path, '..')))
76 out_contents = os.listdir(os.path.join(out_path))
85 path = os.path.join(TEST_DATA, 'samples', 'hello_world')
99 relpath = os.path.relpath(path, ZEPHYR_BASE)
100 …sample_path = os.path.join(out_path, 'qemu_x86_atom', 'zephyr', relpath, 'sample.basic.helloworld')
[all …]
Dtest_hardwaremap.py10 import os
17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister/twisterlib"))
98 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
113 path = os.path.join(ZEPHYR_BASE, file_name)
116 if os.path.exists(path):
117 os.remove(path)
141 assert os.path.exists(path)
153 if os.path.exists(path):
154 os.remove(path)
165 path = os.path.join(ZEPHYR_BASE, file_name)
[all …]
Dtest_report.py12 import os
30 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
42 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
53 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
62 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
72 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
84 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
95 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
107 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
114 os.path.join(TEST_DATA, 'tests', 'one_fail_two_error_one_pass'),
[all …]
Dtest_coverage.py11 import os
25 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
35 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
44 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic', 'group2'),
58 'coverage', os.path.join('coverage','coverage.xml')
66 'coverage', os.path.join('coverage','coverage.sonarqube.xml')
74 'coverage', os.path.join('coverage','coverage.txt')
82 'coverage', os.path.join('coverage','coverage.csv')
90 'coverage', os.path.join('coverage','coverage.coveralls.json')
98 'coverage', os.path.join('coverage','index.html')
[all …]
Dtest_printouts.py11 import os
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'),
86 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
99 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
111 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
[all …]
Dtest_footprint.py12 import os
41 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
61 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group')
77 with open(os.path.join(out_path, 'twister.json')) as f:
84 with open(os.path.join(out_path, 'twister.json'), 'w') as f:
87 report_path = os.path.join(
88 os.path.dirname(out_path),
95 path = os.path.join(TEST_DATA, 'tests', 'dummy')
123 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group')
139 with open(os.path.join(out_path, 'twister.json')) as f:
[all …]
Dtest_addon.py11 import os
26 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
48 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'ubsan')
75 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'lsan')
108 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'asan')
132 test_path = os.path.join(TEST_DATA, 'tests', 'params', 'dummy')
163 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic', 'group2')
177 with open(os.path.join(out_path, 'twister.log')) as f:
218 pth_path = os.path.join(ZEPHYR_BASE, 'scripts', 'pylib', 'pytest-twister-harness')
225 pth_path = os.path.join(ZEPHYR_BASE, 'scripts', 'pylib', 'pytest-twister-harness')
[all …]
Dtest_testlist.py11 import os
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'))
54 path = os.path.join(TEST_DATA, 'tests', 'dummy')
67 with open(os.path.join(out_path, 'testplan.json')) as f:
Dtest_config.py11 import os
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')
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')
84 with open(os.path.join(out_path, 'testplan.json')) as f:
/Zephyr-latest/scripts/tests/build/
Dtest_subfolder_list.py8 import os
12 sys.path.insert(0, os.path.join(os.environ["ZEPHYR_BASE"], "scripts"))
21 dir_names = [os.getcwd()]
25 os.mkdir(name)
26 dir_names.append(os.path.join(os.getcwd(), name))
64 os.chdir(dirs_dir)
67 os.chdir(f"{DIR_NAME_PREFIX}{subdirs_parent_sfx}")
73 links = [f for f in os.listdir(links_dir) if os.path.islink(f)]
86 st_info = os.stat(OUT_FILE)
90 st_info2 = os.stat(OUT_FILE)
[all …]
/Zephyr-latest/scripts/
Dtwister185 import os
190 ZEPHYR_BASE = os.getenv("ZEPHYR_BASE")
199 os.environ['ZEPHYR_BASE'] = ZEPHYR_BASE
203 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister/"))
204 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))
220 if (os.name != "nt") and os.isatty(1):
222 os.system("stty sane <&1")
/Zephyr-latest/scripts/tests/build_helpers/
Dtest_domains.py10 import os
14 ZEPHYR_BASE = os.getenv("ZEPHYR_BASE")
15 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))
136 [('some', os.path.join('dir', '2')),
137 ('order', os.path.join('dir', '1'))]
142 [('order', os.path.join('dir', '1')),
143 ('some', os.path.join('dir', '2'))]
148 [('some', os.path.join('dir', '2'))]
173 ('some', os.path.join('dir', '2')),
174 ('order', os.path.join('dir', '1'))
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Djobserver.py9 import os
60 kwargs.setdefault("env", os.environ)
82 self._internal_pipe = os.pipe()
83 os.write(self._internal_pipe[1], b"+" * internal_jobs)
84 os.set_blocking(self._internal_pipe[0], False)
93 os.set_blocking(self._inheritable_pipe[0], False)
102 os.close(self._inheritable_pipe[0])
103 os.close(self._inheritable_pipe[1])
105 os.close(self._internal_pipe[0])
106 os.close(self._internal_pipe[1])
[all …]
Dpackage.py7 import os
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")
Dcoverage.py9 import os
99 os.mkdir(subdir)
123 os.remove(filename)
165 with open(os.path.join(outdir, "coverage.log"), "a") as coveragelog:
170 os.path.join(outdir, "coverage", "index.html")
173 os.path.join(outdir, "coverage.info")
176 os.path.join(outdir, "coverage", "coverage.xml")
179 os.path.join(outdir, "coverage", "coverage.csv")
182 os.path.join(outdir, "coverage", "coverage.txt")
185 os.path.join(outdir, "coverage", "coverage.coveralls.json")
[all …]
/Zephyr-latest/scripts/west_commands/zspdx/
Dsbom.py5 import os
41 cmakeApiDirPath = os.path.join(build_dir, ".cmake", "api", "v1", "query")
42 if os.path.exists(cmakeApiDirPath):
43 if not os.path.isdir(cmakeApiDirPath):
49 os.makedirs(cmakeApiDirPath, exist_ok=False)
52 queryFilePath = os.path.join(cmakeApiDirPath, "codemodel-v2")
53 if os.path.exists(queryFilePath):
54 if not os.path.isfile(queryFilePath):
104 retval = writeSPDX(os.path.join(cfg.spdxDir, "sdk.spdx"), w.docSDK)
110 retval = writeSPDX(os.path.join(cfg.spdxDir, "app.spdx"), w.docApp)
[all …]
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/creds/
Dconvert_keys.py5 import os
29 creds_dir = os.path.dirname(os.path.realpath(__file__))
37 bin2array("public_cert", cred, os.path.join(creds_dir, "cert.c"))
40 bin2array("private_key", cred, os.path.join(creds_dir, "key.c"))
48 bin2array("ca_cert", os.path.join(creds_dir, "AmazonRootCA1.pem"),
49 os.path.join(creds_dir, "ca.c"))
/Zephyr-latest/scripts/tests/twister/
Dtest_testsuite.py11 import os
17 ZEPHYR_BASE = os.getenv('ZEPHYR_BASE')
18 sys.path.insert(0, os.path.join(ZEPHYR_BASE, 'scripts', 'pylib', 'twister'))
103 os.path.join('testsuites', 'tests', 'test_ztest.c'),
122 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error.c'),
133 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error_1.c'),
144 os.path.join(
160 os.path.join(
212 result: ScanPathResult = scan_file(os.path.join(test_data, test_file))
286 os.path.join(ZEPHYR_BASE, 'scripts', 'tests'),
[all …]
Dconftest.py8 import os
14 ZEPHYR_BASE = os.getenv("ZEPHYR_BASE")
15 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
16 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts"))
47 env.board_roots = [os.path.join(test_data, "board_config", "1_level", "2_level")]
48 env.test_roots = [os.path.join(testsuites_dir, 'tests', testsuites_dir, 'samples')]
49 env.test_config = os.path.join(test_data, "test_config.yaml")
78 class_testplan.env.board_roots = [os.path.abspath(os.path.join(test_data, "board_config"))]
/Zephyr-latest/modules/mbedtls/
Dcreate_psa_files.py7 import os
12 SCRIPT_PATH = os.path.dirname(__file__)
13 INPUT_REL_PATH = os.path.join("..", "..", "..", "modules", "crypto", "mbedtls",
15 INPUT_FILE = os.path.normpath(os.path.join(SCRIPT_PATH, INPUT_REL_PATH))
17 KCONFIG_PATH=os.path.join(SCRIPT_PATH, "Kconfig.psa.auto")
18 HEADER_PATH=os.path.join(SCRIPT_PATH, "configs", "config-psa.h")
38 """.format(os.path.basename(__file__), INPUT_REL_PATH)
56 """.format(os.path.basename(__file__), INPUT_REL_PATH)
/Zephyr-latest/scripts/footprint/
Dpack_as_twister.py38 import os
67 log_level = os.environ.get('LOG_LEVEL', 'ERROR')
106 default = os.environ.get('ZEPHYR_BASE'),
138 (in_path, data_id['board']) = os.path.split(in_path)
141 (in_path, data_id['board']) = os.path.split(in_path)
144 (in_path, data_id['feature']) = os.path.split(in_path)
145 (c_head, data_id['app']) = os.path.split(in_path)
146 (c_head, data_id['version']) = os.path.split(c_head)
178 zephyr_base = os.path.abspath(args.zephyr_base)
192 p_head = os.path.normcase(report_path)
[all …]
/Zephyr-latest/doc/_extensions/zephyr/
Dhtml_redirects.py25 import os.path
87 out_dir = os.path.dirname(out_file)
88 if not os.path.exists(out_dir):
89 os.makedirs(out_dir)
93 if not os.path.exists(out_file):

12345678910>>...20