/Zephyr-latest/scripts/pylib/twister/ |
D | scl.py | 12 import yaml 16 from yaml import CLoader as Loader 17 from yaml import CSafeLoader as SafeLoader 18 from yaml import CDumper as Dumper 20 from yaml import Loader, SafeLoader, Dumper 45 return yaml.load(f, Loader=SafeLoader) 46 except yaml.scanner.ScannerError as e: # For errors parsing schema.yaml
|
/Zephyr-latest/scripts/dts/ |
D | gen_driver_kconfig_dts.py | 11 import yaml 14 from yaml import CSafeLoader as SafeLoader 16 from yaml import SafeLoader # type: ignore 69 root = yaml.compose(f, Loader=SafeLoader) 70 except yaml.YAMLError as e: 75 if not isinstance(root, yaml.MappingNode): 78 if key.value == "compatible" and isinstance(node, yaml.ScalarNode):
|
/Zephyr-latest/scripts/utils/ |
D | twister_to_list.py | 17 from ruamel.yaml import YAML 48 yaml = YAML() 49 yaml.indent(offset=2) 50 yaml.preserve_quotes = True 56 conf = yaml.load(p) 70 yaml.dump(conf, f)
|
D | board_v1_to_v2.py | 38 import ruamel.yaml 78 yaml = ruamel.yaml.YAML(typ='safe', pure=True) 79 board_settings = yaml.load(f) # pylint: disable=assignment-from-no-return 87 yaml = ruamel.yaml.YAML() 88 yaml.indent(sequence=4, offset=2) 90 yaml.dump(board_settings, f)
|
/Zephyr-latest/tests/cmake/yaml/ |
D | CMakeLists.txt | 15 include(yaml) 53 yaml_get(actual NAME yaml-test KEY cmake test key-string) 56 COMMENT "yaml key value does not match expectation." 62 yaml_length(actual NAME yaml-test KEY cmake test key-list-string) 64 COMMENT "yaml list length does not match expectation." 68 yaml_get(actual NAME yaml-test KEY cmake test key-list-string) 79 yaml_get(actual NAME yaml-test KEY cmake test key-int) 82 COMMENT "yaml key value does not match expectation." 88 yaml_length(actual NAME yaml-test KEY cmake test key-list-int) 90 COMMENT "yaml list length does not match expectation." [all …]
|
/Zephyr-latest/samples/tfm_integration/tfm_secure_partition/ |
D | CMakeLists.txt | 13 ${CMAKE_CURRENT_LIST_DIR}/dummy_partition/tfm_manifest_list.yaml.in 14 ${CMAKE_CURRENT_BINARY_DIR}/dummy_partition/tfm_manifest_list.yaml 19 -DTFM_EXTRA_MANIFEST_LIST_FILES=${CMAKE_CURRENT_BINARY_DIR}/dummy_partition/tfm_manifest_list.yaml
|
/Zephyr-latest/scripts/pylib/build_helpers/ |
D | domains.py | 13 import yaml 50 schema = yaml.safe_load(DOMAINS_SCHEMA) 63 data = yaml.safe_load(domains_yaml) 66 except (yaml.YAMLError, pykwalify.errors.SchemaError):
|
/Zephyr-latest/cmake/modules/ |
D | yaml.cmake | 7 # This module offers basic support for simple yaml files. 244 "import json; import yaml; print(json.dumps(yaml.safe_load(open('${ARG_YAML_FILE}')) or {}))" 523 -P ${ZEPHYR_BASE}/cmake/yaml-filter.cmake 544 function(to_yaml in_json level yaml genex) 565 set(${yaml} "${${yaml}}${indent_${level}}${member}:\n") 567 to_yaml("${subjson}" ${sublevel} ${yaml} ${genex}) 570 set(${yaml} "${${yaml}}${indent_${level}}${member}:") 573 set(${yaml} "${${yaml}} []\n") 575 set(${yaml} "${${yaml}}\n") 587 set(${yaml} "${${yaml}}${indent_${level}} - ${indent_yaml}\n") [all …]
|
/Zephyr-latest/scripts/pylib/shell-twister-harness/ |
D | test_shell.py | 8 import yaml 21 data = yaml.safe_load(yaml_file)
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | quarantine.py | 13 import yaml 16 from yaml import CSafeLoader as SafeLoader 18 from yaml import SafeLoader 100 qlist_raw_data: list[dict] = yaml.load(yaml_fd, Loader=SafeLoader)
|
D | hardwaremap.py | 15 import yaml 22 from yaml import CDumper as Dumper 23 from yaml import CSafeLoader as SafeLoader 25 from yaml import Dumper, SafeLoader 390 hwm = yaml.load(yaml_file, Loader=SafeLoader) 423 yaml.dump(hwm, yaml_file, Dumper=Dumper, default_flow_style=False) 448 yaml.dump(dl, yaml_file, Dumper=Dumper, default_flow_style=False)
|
/Zephyr-latest/scripts/ |
D | list_hardware.py | 12 import yaml 16 from yaml import CSafeLoader as SafeLoader 18 from yaml import SafeLoader 23 soc_schema = yaml.load(f.read(), Loader=SafeLoader) 27 arch_schema = yaml.load(f.read(), Loader=SafeLoader) 44 data = yaml.load(soc_yaml, Loader=SafeLoader) 47 except (yaml.YAMLError, pykwalify.errors.SchemaError) as e: 214 archs = yaml.load(f.read(), Loader=SafeLoader)
|
D | get_maintainer.py | 34 from yaml import load, YAMLError 37 from yaml import CSafeLoader as SafeLoader 39 from yaml import SafeLoader 466 yaml = load(f, Loader=SafeLoader) 470 _check_maintainers(path, yaml) 471 return yaml 474 def _check_maintainers(maints_path, yaml): argument 483 if not isinstance(yaml, dict): 493 for area_name, area_dict in yaml.items():
|
/Zephyr-latest/doc/build/snippets/ |
D | writing.rst | 15 .. code-block:: yaml 27 .. code-block:: yaml 36 .. code-block:: yaml 98 .. code-block:: yaml 143 .. code-block:: yaml 159 .. code-block:: yaml 173 .. code-block:: yaml 188 .. code-block:: yaml 210 .. code-block:: yaml 236 .. code-block:: yaml
|
/Zephyr-latest/doc/develop/test/ |
D | pytest.rst | 31 of test/sample.yaml. Inside, a keyword ``harness`` tells twister how to handle a given test. 49 An example folder containing a pytest test, application source code and Twister configuration .yaml 61 └─── testcase.yaml 65 provided in the ``testcase.yaml`` file, Twister builds the application from ``src`` and then, if the 66 .yaml file contains a ``harness: pytest`` entry, it calls pytest in a separate subprocess. A sample 69 .. code-block:: yaml 77 with binary sources. A keyword ``pytest_root`` placed under ``harness_config`` section in .yaml file 88 #. From .yaml file, using ``pytest_args`` placed under ``harness_config`` section - more info 100 The command line arguments will extend those from the .yaml file. If the same argument is 241 as ``function``. This can be changed by adding to .yaml file ``pytest_dut_scope`` keyword placed [all …]
|
D | twister.rst | 27 - The test is marked as ``build_only: true`` in its ``.yaml`` 110 .. code-block:: yaml 155 .. code-block:: yaml 185 .. code-block:: yaml 193 .. code-block:: yaml 239 Tests are detected by the presence of a ``testcase.yaml`` or a ``sample.yaml`` 273 #. All Test Scenario identifiers within a Test Configuration (``testcase.yaml`` file) 275 For example a ``testcase.yaml`` file covering semaphores in the kernel can have: 287 a Test Scenario identifier from the corresponding ``testcase.yaml`` file, 292 a Test Scenario identifier from the corresponding ``testcase.yaml`` (or [all …]
|
/Zephyr-latest/scripts/ci/ |
D | test_plan.py | 9 import yaml 21 from yaml import CSafeLoader as SafeLoader 23 from yaml import SafeLoader 259 b = yaml.load(f.read(), Loader=SafeLoader) 301 … yamls_found = [yaml for yaml in glob.iglob(head + '/**/testcase.yaml', recursive=True)] 302 … yamls_found.extend([yaml for yaml in glob.iglob(head + '/**/sample.yaml', recursive=True)]) 304 for yaml in yamls_found: 305 tests.add(os.path.dirname(yaml)) 332 tags_config = yaml.safe_load(ymlfile)
|
/Zephyr-latest/scripts/west_commands/ |
D | patch.py | 17 import yaml 25 from yaml import CSafeDumper as SafeDumper 26 from yaml import CSafeLoader as SafeLoader 28 from yaml import SafeDumper, SafeLoader 32 patches_schema = yaml.load(f, Loader=SafeLoader) 316 yml = yaml.load(f, Loader=SafeLoader) 318 except (yaml.YAMLError, pykwalify.errors.SchemaError) as e: 528 yaml.dump(yml, f, Dumper=SafeDumper)
|
D | run_common.py | 30 import yaml 110 yaml: object = None variable in SocBoardFilesProcessing 271 check.yaml = yaml.safe_load(f.read()) 273 if 'runners' not in check.yaml: 275 elif check.board is False and 'run_once' not in check.yaml['runners']: 278 if 'priority' in check.yaml['runners']: 279 check.priority = check.yaml['runners']['priority'] 296 for cmd in highest_entry.yaml['runners']['run_once']: 297 for data in highest_entry.yaml['runners']['run_once'][cmd]: 575 content = yaml.safe_load(f.read())
|
/Zephyr-latest/doc/build/dts/ |
D | bindings-syntax.rst | 20 .. code-block:: yaml 29 See https://yaml-multiline.info/ for formatting help. 32 include: other.yaml 600 # manufacturer,sensor-spi.yaml, which matches sensor@0 on the SPI bus: 604 # manufacturer,sensor-i2c.yaml, which matches sensor@79 on the I2C bus: 612 bus-sensitive logic ignores :file:`manufacturer,sensor-i2c.yaml` when searching 648 # foo,pwm.yaml 655 # bar,pwm.yaml 685 include: foo.yaml 687 If any file named :file:`foo.yaml` is found (see [all …]
|
/Zephyr-latest/doc/develop/manifest/external/ |
D | cannectivity.rst | 28 To pull in CANnectivity as a Zephyr module, either add it as a West project in the ``west.yaml`` 29 file or pull it in by adding a submanifest (e.g. ``zephyr/submanifests/cannectivity.yaml``) file 32 .. code-block:: yaml
|
/Zephyr-latest/cmake/ |
D | yaml-filter.cmake | 15 # This script loads the Zephyr yaml module and reuses its `to_yaml()` 24 include(yaml)
|
/Zephyr-latest/samples/tfm_integration/tfm_secure_partition/dummy_partition/ |
D | tfm_manifest_list.yaml.in | 18 "manifest": "${APPLICATION_SOURCE_DIR}/dummy_partition/tfm_dummy_partition.yaml",
|
/Zephyr-latest/share/sysbuild/cmake/modules/ |
D | sysbuild_default.cmake | 12 include(yaml)
|
/Zephyr-latest/tests/misc/llext-edk/pytest/ |
D | test_edk.py | 13 import yaml 23 build_info = yaml.safe_load(f)
|