/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_scl.py | 158 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/ |
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)
|
D | gen_relocate_app.py | 228 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/ |
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 …]
|
D | menuconfig.py | 897 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/ |
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()).hexdigest() 78 with open(filename,'rb') as f: 94 filename = str(self.args.fw_file) 95 self.uploading(filename)
|
/Zephyr-latest/scripts/dts/ |
D | gen_driver_kconfig_dts.py | 30 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/ |
D | config_parser.py | 87 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,
|
D | reports.py | 133 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/ |
D | dtlib.py | 386 .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/ |
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/include/zephyr/mgmt/mcumgr/grp/fs_mgmt/ |
D | fs_mgmt_callbacks.h | 52 char *filename; member
|
/Zephyr-latest/tests/posix/fs/src/ |
D | test_fs_stat.c | 23 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/ |
D | coverage.c | 282 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()
|