/Zephyr-latest/scripts/tests/twister/ |
D | test_twister.py | 26 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) 56 …filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_data/test_data_with_deprecation_warning… 58 data = TwisterConfigParser(filename, schema) [all …]
|
D | test_config_parser.py | 49 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)
|
D | test_platform.py | 356 for filename, content in tmp_files.items(): 357 (tmp_path / filename).parent.mkdir(parents=True, exist_ok=True) 358 (tmp_path / filename).write_text(content)
|
/Zephyr-latest/scripts/ |
D | gen_gcov_files.py | 47 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:
|
D | get_maintainer.py | 169 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/ |
D | scl.py | 31 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/ |
D | gen_image_info.py | 28 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'))
|
D | gen_app_partitions.py | 112 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)
|
/Zephyr-latest/scripts/west_commands/tests/ |
D | test_stm32flash.py | 63 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)
|
D | test_gd32isp.py | 42 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/ |
D | fifo_mock.py | 16 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/ |
D | kconfiglib.py | 867 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 …]
|
D | guiconfig.py | 1360 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 …]
|
/Zephyr-latest/tests/subsys/display/cfb/basic/src/ |
D | testdata.c | 689 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/ |
D | cavstool_client.py | 60 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(), 79 with open(filename,'rb') as f: 95 filename = str(self.args.fw_file) 96 self.uploading(filename)
|
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/ |
D | dtlib.py | 94 def __init__(self, name: str, parent: Optional["Node"], dt: "DT", filename: str, lineno: int): 101 self._filename = filename 137 def filename(self) -> str: member in Node 339 self.filename = "" 701 filename: str 764 def __init__(self, filename: Optional[str], include_path: Iterable[str] = (), 792 self.filename = filename 796 if filename is not None: 797 self._parse_file(filename, include_path) 940 if self.filename: [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | config_parser.py | 93 def __init__(self, filename: str, schema: dict[str, Any]) -> None: 99 self.filename = filename 105 data = scl.yaml_load_verify(self.filename, self.schema) 148 raise ConfigurationError(self.filename, f"unknown type '{value}'") 247 self.filename, 261 self.filename,
|
D | reports.py | 141 def xunit_report_suites(self, json_file, filename): argument 204 with open(filename, 'wb') as report: 207 def xunit_report(self, json_file, filename, selected_platform=None, full_report=False): argument 294 with open(filename, 'wb') as report: 297 def json_report(self, filename, version="NA", platform=None, filters=None): argument 493 with open(filename, 'w') as json_file: 497 def compare_metrics(self, filename): argument 502 if not os.path.exists(filename): 508 with open(filename) as fp: 764 filename = os.path.join(report_dir, report_name) [all …]
|
/Zephyr-latest/scripts/dts/ |
D | gen_driver_kconfig_dts.py | 41 for filename in filenames: 42 if filename.endswith((".yaml", ".yml")): 43 yield os.path.join(root, filename)
|
/Zephyr-latest/scripts/ci/ |
D | twister_report_analyzer.py | 258 def add_error_patterns(self, filename): argument 259 with open(filename) as f: 298 def dump_to_json(filename, data): argument 299 with open(filename, 'w') as f: 304 def dump_to_csv(filename, data: Counters): argument 305 with open(filename, 'w', newline='') as csvfile: 315 def dump_markdown_table(filename, data: Counters, max_depth=2): argument 316 with open(filename, 'w', newline='') as md: 344 for filename in args.inputs: 345 if os.path.exists(filename): [all …]
|
/Zephyr-latest/doc/_scripts/ |
D | gen_boards_catalog.py | 273 filename = node.filename 276 if Path(filename).is_relative_to(ZEPHYR_BASE): 277 filename = Path(filename).relative_to(ZEPHYR_BASE) 278 if filename.parts[0] == "boards": 287 node_info = {"filename": str(filename), "lineno": lineno}
|
/Zephyr-latest/arch/x86/ |
D | gen_idt.py | 86 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/scripts/west_commands/ |
D | patch.py | 490 filename = "-".join(filter(None, re.split("[^a-zA-Z0-9]+", subject))) + ".patch" 493 urllib.request.urlretrieve(f"{cm.html_url}.patch", args.patch_base / filename) 496 "path": filename, 497 "sha256sum": self.get_file_sha256sum(args.patch_base / filename), 509 filename = "-".join(filter(None, re.split("[^a-zA-Z0-9]+", pr.title))) + ".patch" 510 urllib.request.urlretrieve(pr.patch_url, args.patch_base / filename) 513 "path": filename, 514 "sha256sum": self.get_file_sha256sum(args.patch_base / filename), 531 def get_file_sha256sum(filename: Path) -> str: 532 with open(filename, "rb") as fp:
|
D | gtags.py | 91 for filename in ls_files: 92 absolute = os.path.join(project.abspath, filename)
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/fs_mgmt/ |
D | fs_mgmt_callbacks.h | 52 char *filename; member
|