Home
last modified time | relevance | path

Searched +full:- +full:- +full:json (Results 1 – 25 of 184) sorted by relevance

12345678

/Zephyr-latest/cmake/
Dverify-toolchain.cmake7 # When invoked as a script with -P:
8 # cmake [options] -P verify-toolchain.cmake
11 # FORMAT=json: Print the output as a json formatted string, useful for Python
16 message(FATAL_ERROR "verify-toolchain.cmake is a script and must be invoked "
17 "as:\n 'cmake ... -P verify-toolchain.cmake'\n"
21 if("${FORMAT}" STREQUAL "json")
32 if("${FORMAT}" STREQUAL "json")
33 set(json "{\"ZEPHYR_TOOLCHAIN_VARIANT\" : \"${ZEPHYR_TOOLCHAIN_VARIANT}\", ") variable
34 string(APPEND json "\"SDK_VERSION\": \"${SDK_VERSION}\", ")
35 string(APPEND json "\"ZEPHYR_SDK_INSTALL_DIR\" : \"${ZEPHYR_SDK_INSTALL_DIR}\"}")
[all …]
/Zephyr-latest/cmake/modules/
Dyaml.cmake1 # SPDX-License-Identifier: Apache-2.0
9 # It supports basic key-value pairs, like
12 # basic key-object pairs, like
18 # - foo1
19 # - foo2
20 # - foo3
24 # - bar: val1
26 # - bar: val2
34 # - alpha
35 # - beta
[all …]
/Zephyr-latest/include/zephyr/data/
Djson.h4 * SPDX-License-Identifier: Apache-2.0
21 * @defgroup json JSON
83 * power of 2 in order to keep this value in the 0-3 range
99 /* 65535 bytes is more than enough for many JSON payloads. */
116 * encoding JSON data.
120 * @param data User-provided pointer
139 * @param type_ Token type for JSON value corresponding to a primitive
157 .field_name_len = sizeof(#field_name_) - 1, \
190 .field_name_len = (sizeof(#field_name_) - 1), \
274 .field_name_len = sizeof(#field_name_) - 1, \
[all …]
Djwt.h4 * SPDX-License-Identifier: Apache-2.0
18 * @brief JSON Web Token (JWT) - RFC 7519
19 * @defgroup jwt JSON Web Token (JWT)
20 * @ingroup json
27 * JSON Web Tokens contain several sections, each encoded in Base64URL.
68 * @retval -ENOSPC Buffer is insufficient to initialize.
78 * - Expiration Time
79 * - Issued At
80 * - Audience
/Zephyr-latest/scripts/ci/es_upload/
DREADME.md6 JSON reports upload.
9 with explicit scheme having all required Twister JSON report objects associated
11 Besides, it allows to track changes in Twister JSON report scheme
17 For other command line options and more details run the upload script with `--help`,
24 It is recommended to try the upload script with `--dry-run` option first
36 python3 ./scripts/ci/upload_test_results_es.py --create-index \
37 --index YOUR_INDEX_NAME \
38 --map-file YOUR_INDEX_MAP.json
44 The upload script has several command line options to change `twister.json` data:
47 (see `--help` for more details):
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_senml_json.c4 * SPDX-License-Identifier: Apache-2.0
20 #include <zephyr/data/json.h>
29 #define BASE64_BYTES_TO_MODULO(x) (BASE64_OUTPUT_MIN_LENGTH - x)
128 struct senml_json_object json; member
143 /* Decode description structure for parsing LwM2m SenML-JSON object*/
307 if (fd->add_base_name_to_start) { in init_object_name_parameters()
309 ret = snprintk(fd->bn_string, sizeof(fd->bn_string), "/%u/%u/", path->obj_id, in init_object_name_parameters()
310 path->obj_inst_id); in init_object_name_parameters()
317 if (fd->writer_flags & WRITER_RESOURCE_INSTANCE) { in init_object_name_parameters()
318 ret = snprintk(fd->name_string, sizeof(fd->name_string), "%u/%u", path->res_id, in init_object_name_parameters()
[all …]
/Zephyr-latest/scripts/tests/twister_blackbox/
Dtest_footprint.py4 # SPDX-License-Identifier: Apache-2.0
10 import json
17 # pylint: disable=no-name-in-module
31 r'Found [1-9]+[0-9]* footprint deltas to .*blackbox-out\.[0-9]+/twister.json as a baseline'
33 DELTA_WARNING_RUN = re.compile(r'Found [1-9]+[0-9]* footprint deltas to the last twister run')
37 DELTA_DETAIL = re.compile(RAM_KEY + r' \+[0-9]+, is now +[0-9]+ \+[0-9.]+%')
62 args = ['-i', '--outdir', out_path, '-T', path] + \
63 ['--enable-size-report'] + \
65 ['-p'] * len(test_platforms), test_platforms
75 # Note: if footprint tests take too long, replace first run with a prepared twister.json
[all …]
Dtest_testplan.py4 # SPDX-License-Identifier: Apache-2.0
6 Blackbox tests for twister's command line functions - those requiring testplan.json
14 import json
16 # pylint: disable=no-name-in-module
62 args = ['-i', '--outdir', out_path, '-T', path, '--sub-test', test, '-y'] + \
64 ['-p'] * len(test_platforms), test_platforms
75 with open(os.path.join(out_path, 'testplan.json')) as f:
76 j = json.load(f)
95 args = ['-i', '--outdir', out_path, '-T', path, '--filter', filter, '-y'] + \
97 ['-p'] * len(test_platforms), test_platforms
[all …]
Dtest_config.py4 # SPDX-License-Identifier: Apache-2.0
14 import json
16 # pylint: disable=no-name-in-module
37 alt_config_root = os.path.join(TEST_DATA, 'alt-test-configs', 'dummy')
38 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \
39 ['--alt-config-root', alt_config_root] + \
40 ['--tag', 'alternate-config-root'] + \
42 ['-p'] * len(test_platforms), test_platforms
49 with open(os.path.join(out_path, 'testplan.json')) as f:
50 j = json.load(f)
[all …]
Dtest_coverage.py4 # SPDX-License-Identifier: Apache-2.0
14 import json
16 # pylint: disable=duplicate-code, disable=no-name-in-module
28 'coverage.log', 'coverage.json',
47 'coverage.log', 'coverage.json',
57 'coverage.log', 'coverage.json',
65 'coverage.log', 'coverage.json',
73 'coverage.log', 'coverage.json',
81 'coverage.log', 'coverage.json',
89 'coverage.log', 'coverage.json',
[all …]
Dtest_testlist.py4 # SPDX-License-Identifier: Apache-2.0
14 import json
16 # pylint: disable=no-name-in-module
37 saved_tests_file_path = os.path.realpath(os.path.join(out_path, '..', 'saved-tests.json'))
38 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \
39 ['--save-tests', saved_tests_file_path] + \
41 ['-p'] * len(test_platforms), test_platforms
55 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \
56 ['--load-tests', saved_tests_file_path] + \
58 ['-p'] * len(test_platforms), test_platforms
[all …]
Dtest_report.py2 # Copyright (c) 2023-2024 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
10 import json
20 # pylint: disable=no-name-in-module
34 'testplan.json', 'twister.json',
46 'twister_TEST.json', 'twister_TEST_report.xml',
55 ['--report-name', 'abcd'],
57 'abcd.json', 'abcd_report.xml',
64 ['--report-name', '1234', '--platform-reports'],
67 '1234.json', '1234_report.xml',
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dpackage.py4 # SPDX-License-Identifier: Apache-2.0
6 import json
31 os.path.join(self.options.outdir, "twister.json"), encoding='utf-8'
33 jtp = json.load(json_test_plan)
46 os.path.join(self.options.outdir, "twister.json"),
47 os.path.join(self.options.outdir, "testplan.json")
/Zephyr-latest/.github/workflows/
Dcodecov.yaml5 - cron: '25 06,18 * * *'
8 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
9 cancel-in-progress: true
13 if: github.repository_owner == 'zephyrproject-rtos'
14 runs-on:
15 group: zephyr-runner-v2-linux-x64-4xlarge
17 image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.27.4.20241026
18 options: '--entrypoint /bin/bash'
20 fail-fast: false
24 - platform: 'mps2/an385'
[all …]
/Zephyr-latest/scripts/ruff/
Dgen_lint_exclude.py4 # SPDX-License-Identifier: Apache-2.0
6 import json
10 # A very simple script to convert ruff lint output from json to toml
12 # ruff check --output-format=json | ./scripts/ruff/gen_lint_exclude.py >> .ruff-excludes.toml
16 def __init__(self, code: str, url: str) -> None:
20 def __eq__(self, other: object) -> bool:
25 def __hash__(self) -> int:
30 violations = json.load(sys.stdin)
31 sys.stdout.write("[lint.per-file-ignores]\n")
/Zephyr-latest/scripts/footprint/
Dfpdiff.py4 # SPDX-License-Identifier: Apache-2.0
8 # end up with a json file in the build directory that can be used as input
15 # ./scripts/footprint/fpdiff.py ram1.json ram2.json
23 import json
42 data1 = json.load(f)
45 data2 = json.load(f)
56 # pylint: disable=undefined-loop-variable
60 diff = n.size - node.size
65 print(f"{n.identifier} -> {Fore.GREEN}{diff}{Fore.RESET}")
67 print(f"{n.identifier} -> {Fore.RED}+{diff}{Fore.RESET}")
[all …]
Dpack_as_twister.py5 # SPDX-License-Identifier: Apache-2.0
9 into a JSON files compatible with Twister report schema making them ready for upload
13 The memory footprint input data files (rom.json, ram.json) are expected in directories
16 with the corresponding sub-directories.
18 For example, an input path `./**/*v3.6.0-rc3-*/footprints/**/frdm_k64f/` will be
19 expanded by bash to all sub-directories with the 'footprints' data `v3.6.0-rc3`
22 `shopt -s globstar`.
24 The output `twister_footprint.json` files will be placed into the same directories
29 This scripts has `--test-name` parameter to customize how to compose test names
43 import json
[all …]
/Zephyr-latest/samples/net/sockets/http_server/src/static_web_resources/
Dmain.js4 * SPDX-License-Identifier: Apache-2.0
14 const json = await response.json();
16 uptime.innerHTML = "Uptime: " + json + " milliseconds"
25 const payload = JSON.stringify({"led_num" : 0, "led_state" : state});
62 const data = JSON.parse(event.data);
/Zephyr-latest/tests/lib/json/
Dtestcase.yaml2 libraries.encoding.json:
5 tags: json
7 - native_sim
/Zephyr-latest/scripts/build/
Dparse_syscalls.py5 # SPDX-License-Identifier: Apache-2.0
12 auto-generating this code by doing a text scan of directories containing
15 JSON file for further processing.
18 __net_socket, emitting a JSON dictionary mapping tags to all the struct
21 If the output JSON file already exists, its contents are checked against
31 import json
71 with open(file_list, "r", encoding="utf-8") as fp:
118 with open(one_file, "r", encoding="utf-8") as fp:
163 "-i", "--include", required=False, action="append",
166 "Can be specified multiple times: -i topdir1 -i topdir2 ...")
[all …]
/Zephyr-latest/scripts/ci/
Dversion_mgr.py2 # Copyright (c) 2020-2023 Intel Corp.
3 # SPDX-License-Identifier: Apache-2.0
15 import json
24 VERSIONS_FILE = "versions.json"
30 parser.add_argument('-l', '--list', action="store_true",
32 parser.add_argument('-u', '--update',
34 parser.add_argument('-L', '--latest', action="store_true",
36 parser.add_argument('-w', '--weekly', action="store_true",
38 parser.add_argument('-W', '--list-weekly', action="store_true",
40 parser.add_argument('-v', '--verbose', action="store_true",
[all …]
Dtwister_report_analyzer.py3 # SPDX-License-Identifier: Apache-2.0
8 import json
17 def create_parser() -> argparse.ArgumentParser:
21 description='Analyzes Twister JSON reports',
26 > python %(prog)s twister_reports/*.json --long-summary
27 … The summary will be saved to twister_report_summary.json file unless --output option is used.
28 …To save error summary to CSV file, use --output-csv option (number of test files is limited to 100…
29 > python %(prog)s twister_reports/*.json --output-csv twister_report_summary.csv
30 One can use --error-patterns option to provide custom error patterns file:
31 > python %(prog)s **/twister.json --error-patterns error_patterns.txt
[all …]
/Zephyr-latest/cmake/reports/
DCMakeLists.txt1 # SPDX-License-Identifier: Apache-2.0
9 set(workspace_arg "--workspace=${ZEPHYR_WORKSPACE}")
11 set(workspace_arg "--workspace=${WEST_TOPDIR}")
19 -k ${ZEPHYR_BINARY_DIR}/${KERNEL_ELF_NAME}
20 -z ${ZEPHYR_BASE}
21 -o ${CMAKE_BINARY_DIR}
23 -d ${report_depth}
43 -k $<TARGET_PROPERTY:tfm,TFM_S_ELF_FILE>
44 -z ${ZEPHYR_BASE}
45 -o ${CMAKE_BINARY_DIR}
[all …]
/Zephyr-latest/scripts/logging/dictionary/dictionary_parser/
Dlog_database.py5 # SPDX-License-Identifier: Apache-2.0
8 Class for Dictionary-based Logging Database
13 import json
126 """Return True if target is 64-bit, False if 32-bit.
243 # JSON stores key as string, so we need to convert
253 """Add a kconfig name-value pair into database"""
258 """Return kconfig name-value pairs"""
266 with open(db_file_name, "r", encoding="iso-8859-1") as db_fd:
267 json_db = json.load(db_fd)
268 except (OSError, json.JSONDecodeError):
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/
D.gitignore1 # Byte-compiled / optimized / DLL files
9 develop-eggs/
20 pip-wheel-metadata/
21 share/python-wheels/
22 *.egg-info/
52 .dmypy.json
53 dmypy.json

12345678