Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 92) sorted by relevance

1234

/Zephyr-latest/scripts/tests/twister/
Dtest_twister.py26 filename = 'testcase_nc.yaml'
28 scl.yaml_load(filename)
34 def test_correct_schema(filename, schema, test_data): argument
36 filename = test_data + filename
38 data = TwisterConfigParser(filename, schema)
46 def test_incorrect_schema(filename, schema, test_data): argument
48 filename = test_data + filename
51 scl.yaml_load_verify(filename, schema)
56filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_data/test_data_with_deprecation_warning…
58 data = TwisterConfigParser(filename, schema)
[all …]
Dtest_config_parser.py49 filename = "test_data.yaml"
68 parser = TwisterConfigParser(filename, loaded_schema)
80 filename = "test_data.yaml"
94 parser = TwisterConfigParser(filename, loaded_schema)
166 filename = "test_data.yaml"
177 parser = TwisterConfigParser(filename, loaded_schema)
183 filename = "test_data.yaml"
196 parser = TwisterConfigParser(filename, loaded_schema)
Dtest_scl.py158 filename = 'dummy/file.yaml'
163 result = scl.yaml_load(filename)
188 filename = 'dummy/file.yaml'
193 assert file_name == filename
208 res = scl.yaml_load_verify(filename, schema_mock)
/Zephyr-latest/scripts/
Dgen_gcov_files.py47 for filename, hexdump_val in extracted_coverage_info.items():
49 print(filename)
52 if "kobject_hash" in filename:
53 filename = filename[:-4] + "gcno"
55 os.remove(filename)
60 with open(filename, 'wb') as fp:
Dget_maintainer.py169 def __init__(self, filename=None): argument
178 if (filename is not None) and (pathlib.Path(filename).exists()):
179 self.filename = pathlib.Path(filename)
180 self._toplevel = self.filename.parent
183 self.filename = self._toplevel / "MAINTAINERS.yml"
186 for area_name, area_dict in _load_maintainers(self.filename).items():
248 return "<Maintainers for '{}'>".format(self.filename)
336 .format(args.area, self.filename))
/Zephyr-latest/scripts/pylib/twister/
Dscl.py31 def yaml_load(filename): argument
44 with open(filename, 'r', encoding='utf-8') as f:
72 def yaml_load_verify(filename, schema): argument
85 y = yaml_load(filename)
87 raise EmptyYamlFileException('No data in YAML file: %s' % filename)
/Zephyr-latest/scripts/build/
Dgen_image_info.py28 def write_header(filename, segments, adjusted_lma): argument
31 filename_we = re.sub(r'[\W]','_', filename).upper()
52 with open(filename, 'w') as out_file:
56 def read_segments(filename): argument
57 elffile = ELFFile(open(filename, 'rb'))
Dgen_app_partitions.py112 def find_obj_file_partitions(filename, partitions): argument
113 with open(filename, 'rb') as f:
120 sys.exit("Error parsing file: " + filename)
133 partitions[partition_name][SRC] = filename
145 for filename in files:
146 if re.match(r".*\.obj$", filename):
147 fullname = os.path.join(dirpath, filename)
Dgen_relocate_app.py228 def find_sections(filename: str) -> 'dict[SectionKind, list[OutputSection]]':
235 obj_file_path = Path(filename)
240 sys.exit("Error parsing file: " + filename)
491 def get_obj_filename(searchpath, filename): argument
493 obj_filename = filename.split("/")[-1] + ".obj"
498 if filename.split("/")[-2] in dirpath.split("/")[-1]:
588 for filename in files:
589 obj_filename = get_obj_filename(searchpath, filename)
/Zephyr-latest/scripts/west_commands/tests/
Dtest_stm32flash.py63 def os_path_getsize_patch(filename): argument
64 if filename == RC_KERNEL_BIN:
66 return os.path.isfile(filename)
70 def os_path_isfile_patch(filename): argument
71 if filename == RC_KERNEL_BIN:
73 return os_path_isfile(filename)
Dtest_gd32isp.py42 def os_path_isfile_patch(filename): argument
43 if filename == RC_KERNEL_BIN:
45 return os_path_isfile(filename)
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/resources/
Dfifo_mock.py16 def __init__(self, filename, mode): argument
17 self.filename = filename
26 while not os.path.exists(self.filename):
31 self.file = open(self.filename, self.mode, buffering=0)
/Zephyr-latest/scripts/kconfig/
Dkconfiglib.py867 def __init__(self, filename="Kconfig", warn=True, warn_to_stderr=True, argument
947 self._init(filename, warn, warn_to_stderr, encoding)
959 def _init(self, filename, warn, warn_to_stderr, encoding): argument
1054 self.top_node.filename = filename
1061 self.kconfig_filenames = [filename]
1070 self.filename = filename
1080 self._readline = self._open(join(self.srctree, filename), "r").readline
1089 _decoding_error(e, self.filename)
1141 for filename, cond in self.defconfig_list.defaults:
1144 with self._open_config(filename.str_value) as f:
[all …]
Dguiconfig.py1360 filename = _conf_filename
1362 filename = filedialog.asksaveasfilename(
1364 initialdir=os.path.dirname(filename),
1365 initialfile=os.path.basename(filename),
1368 if not filename:
1371 if _try_save(_kconf.write_config, filename, "configuration"):
1372 _conf_filename = filename
1384 filename = _minconf_filename
1386 filename = filedialog.asksaveasfilename(
1388 initialdir=os.path.dirname(filename),
[all …]
Dmenuconfig.py897 filename = _save_dialog(_kconf.write_config, _conf_filename,
899 if filename:
900 _conf_filename = filename
904 filename = _save_dialog(_kconf.write_min_config, _minconf_filename,
906 if filename:
907 _minconf_filename = filename
1827 filename = _conf_filename
1829 filename = _input_dialog("File to load", filename, _load_save_info())
1830 if filename is None:
1833 filename = os.path.expanduser(filename)
[all …]
/Zephyr-latest/tests/subsys/display/cfb/basic/src/
Dtestdata.c689 int to_ppm(const char *filename, uint32_t *buf, size_t w, size_t h) in to_ppm() argument
691 FILE *f = fopen(filename, "w"); in to_ppm()
694 fprintf(f, "# %s\n", filename); in to_ppm()
/Zephyr-latest/soc/intel/intel_adsp/tools/
Dcavstool_client.py60 def uploading(self, filename): argument
62 fname = os.path.basename(filename)
63 fsize = os.path.getsize(filename)
65 md5_tx = hashlib.md5(open(filename,'rb').read()).hexdigest()
78 with open(filename,'rb') as f:
94 filename = str(self.args.fw_file)
95 self.uploading(filename)
/Zephyr-latest/scripts/dts/
Dgen_driver_kconfig_dts.py30 for filename in filenames:
31 if filename.endswith(".yaml") or filename.endswith(".yml"):
32 binding_paths.append(os.path.join(root, filename))
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dconfig_parser.py87 def __init__(self, filename, schema): argument
94 self.filename = filename
99 data = scl.yaml_load_verify(self.filename, self.schema)
142 raise ConfigurationError(self.filename, f"unknown type '{value}'")
241 self.filename,
255 self.filename,
Dreports.py133 def xunit_report_suites(self, json_file, filename): argument
196 with open(filename, 'wb') as report:
199 def xunit_report(self, json_file, filename, selected_platform=None, full_report=False): argument
286 with open(filename, 'wb') as report:
289 def json_report(self, filename, version="NA", platform=None, filters=None): argument
483 with open(filename, 'w') as json_file:
487 def compare_metrics(self, filename): argument
492 if not os.path.exists(filename):
498 with open(filename) as fp:
754 filename = os.path.join(report_dir, report_name)
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Ddtlib.py386 .format(self.name, self.node.path, self.node.dt.filename,
407 .format(self.name, self.node.path, self.node.dt.filename,
426 .format(self.name, self.node.path, self.node.dt.filename,
446 .format(self.name, self.node.path, self.node.dt.filename,
472 .format(self.name, self.node.path, self.node.dt.filename,
496 .format(self.name, self.node.path, self.node.dt.filename,
523 self.node.dt.filename, self))
544 .format(self.name, self.node.path, self.node.dt.filename,
679 filename: str
742 def __init__(self, filename: Optional[str], include_path: Iterable[str] = (),
[all …]
/Zephyr-latest/arch/x86/
Dgen_idt.py86 def create_idt_binary(idt_config, filename): argument
87 with open(filename, "wb") as fp:
106 def create_irq_vec_map_binary(irq_vec_map, filename): argument
107 with open(filename, "wb") as fp:
271 def create_irq_vectors_allocated(vectors, spur_code, spur_nocode, filename): argument
286 with open(filename, "wb") as fp:
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/fs_mgmt/
Dfs_mgmt_callbacks.h52 char *filename; member
/Zephyr-latest/tests/posix/fs/src/
Dtest_fs_stat.c23 static void create_file(const char *filename, uint32_t size) in create_file() argument
27 fh = open(filename, O_CREAT | O_WRONLY, 0440); in create_file()
/Zephyr-latest/subsys/testsuite/coverage/
Dcoverage.c282 void dump_on_console_start(const char *filename) in dump_on_console_start() argument
285 while (*filename != '\0') { in dump_on_console_start()
286 printk("%c", *filename++); in dump_on_console_start()
319 dump_on_console_start(gcov_list->filename); in gcov_coverage_dump()

1234