/Zephyr-latest/tests/subsys/fs/littlefs/src/ |
D | test_util.c | 4 * SPDX-License-Identifier: Apache-2.0 18 static struct testfs_path path; variable 25 testfs_path_init(&path, &mnt, TESTFS_PATH_END); in reset_path() 26 return &path; in reset_path() 31 zassert_equal(testfs_path_init(&path, NULL, TESTFS_PATH_END), in ZTEST() 32 path.path, in ZTEST() 34 zassert_str_equal(path.path, "/", "bad root init path"); in ZTEST() 36 zassert_equal(testfs_path_init(&path, &mnt, TESTFS_PATH_END), in ZTEST() 37 path.path, in ZTEST() 39 zassert_str_equal(path.path, mnt.mnt_point, "bad mnt init path"); in ZTEST() [all …]
|
/Zephyr-latest/subsys/fs/ |
D | fs_impl.c | 4 * SPDX-License-Identifier: Apache-2.0 11 const char *fs_impl_strip_prefix(const char *path, in fs_impl_strip_prefix() argument 16 if ((path == NULL) || (mp == NULL)) { in fs_impl_strip_prefix() 17 return path; in fs_impl_strip_prefix() 20 path += mp->mountp_len; in fs_impl_strip_prefix() 21 return *path ? path : root; in fs_impl_strip_prefix()
|
D | fs_impl.h | 4 * SPDX-License-Identifier: Apache-2.0 19 * @brief Strip the mount point prefix from a path. 21 * @param path an absolute path beginning with a mount point. 23 * @param mp a pointer to the mount point within which @p path is found 25 * @return the absolute path within the mount point. Behavior is 26 * undefined if @p path does not start with the mount point prefix. 28 const char *fs_impl_strip_prefix(const char *path,
|
D | fuse_fs_access_bottom.h | 4 * SPDX-License-Identifier: Apache-2.0 25 int (*stat)(const char *path, struct ffa_dirent *entry); 27 int (*readdir_start)(const char *path); 30 int (*mkdir)(const char *path); 31 int (*create)(const char *path, uint64_t *fh); 36 int (*truncate)(const char *path, off_t size); 37 int (*unlink)(const char *path); 38 int (*rmdir)(const char *path);
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | test_outfile.py | 4 # SPDX-License-Identifier: Apache-2.0 18 # pylint: disable=no-name-in-module 28 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister') 41 (['--clobber-output'], False, False), 42 (['--no-clean'], False, True), 43 (['--clobber-output', '--no-clean'], False, True), 49 path = os.path.join(TEST_DATA, 'tests', 'dummy') 50 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ 53 ['-p'] * len(test_platforms), test_platforms 56 # We create an empty 'blackbox-out' to trigger the clobbering [all …]
|
D | test_hardwaremap.py | 4 # SPDX-License-Identifier: Apache-2.0 17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister/twisterlib")) 29 'DAPLink CMSIS-DAP', 30 'MBED CMSIS-DAP' 41 'J-Link', 42 'J-Link OB' 56 'STLINK-V3' 68 'TTL232R-3V3', 78 'DAPLink CMSIS-DAP', 86 'DAPLink CMSIS-DAP', [all …]
|
D | test_testlist.py | 4 # SPDX-License-Identifier: Apache-2.0 16 # pylint: disable=no-name-in-module 24 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister') 36 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic') 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 54 path = os.path.join(TEST_DATA, 'tests', 'dummy') 55 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ [all …]
|
D | test_report.py | 2 # Copyright (c) 2023-2024 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 20 # pylint: disable=no-name-in-module 30 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 42 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 53 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 55 ['--report-name', 'abcd'], 62 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 64 ['--report-name', '1234', '--platform-reports'], 72 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/observation/src/ |
D | lwm2m_observation.c | 4 * SPDX-License-Identifier: Apache-2.0 21 static bool lwm2m_path_object_equal_upto(struct lwm2m_obj_path *path, in lwm2m_path_object_equal_upto() argument 25 if (level >= LWM2M_PATH_LEVEL_OBJECT && path->obj_id != compare_path->obj_id) { in lwm2m_path_object_equal_upto() 30 path->obj_inst_id != compare_path->obj_inst_id) { in lwm2m_path_object_equal_upto() 34 if (level >= LWM2M_PATH_LEVEL_RESOURCE && path->res_id != compare_path->res_id) { in lwm2m_path_object_equal_upto() 39 path->res_inst_id != compare_path->res_inst_id) { in lwm2m_path_object_equal_upto() 63 if (entry->path.level > prev->path.level) { in assert_path_list_order() 67 if (prev->path.level >= LWM2M_PATH_LEVEL_OBJECT) { in assert_path_list_order() 68 is_after = entry->path.obj_id >= prev->path.obj_id; in assert_path_list_order() 70 if (is_after && prev->path.level >= LWM2M_PATH_LEVEL_OBJECT_INST && in assert_path_list_order() [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/ |
D | conftest.py | 3 # SPDX-License-Identifier: Apache-2.0 8 from pathlib import Path 18 def resources() -> Path: 19 """Return path to `resources` folder""" 20 return Path(__file__).parent.joinpath('resources') 24 def zephyr_base() -> str: 33 def twister_harness(zephyr_base) -> str: 34 """Retrun path to pytest-twister-harness src directory""" 35 …pytest_twister_harness_path = str(Path(zephyr_base) / 'scripts' / 'pylib' / 'pytest-twister-harnes… 40 def shell_simulator_path(resources: Path) -> str: argument [all …]
|
/Zephyr-latest/cmake/ |
D | pristine.cmake | 1 # SPDX-License-Identifier: Apache-2.0 7 usage: cmake -DBINARY_DIR=<build-path> -DSOURCE_DIR=<source-path> 8 -P ${CMAKE_SCRIPT_MODE_FILE} 11 -DBINARY_DIR=<build-path>: Absolute path to the build directory to pristine 12 -DSOURCE_DIR=<source-path>: Absolute path to the source directory used when 13 creating <build-path> 31 if(NOT INDEX EQUAL -1) 32 message(FATAL_ERROR "Refusing to run pristine in in-source build folder.")
|
/Zephyr-latest/scripts/west_commands/ |
D | build_helpers.py | 3 # SPDX-License-Identifier: Apache-2.0 16 from pathlib import Path 23 script_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) 24 sys.path.insert(0, os.path.join(script_dir, "pylib/build_helpers/")) 35 build.dir-fmt configuration variable is set. The current directory is 46 kwargs['source_dir'] = os.path.relpath(source_dir, cwd) 48 # no meaningful relative path possible 57 # Guess the build folder by iterating through all sub-folders from the 61 parts = Path(fmt).parts 62 b = Path('.') [all …]
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_observation.h | 4 * SPDX-License-Identifier: Apache-2.0 11 int lwm2m_notify_observer_path(const struct lwm2m_obj_path *path); 17 sys_slist_t path_list; /* List of Observation path */ 57 /* path object list */ 60 struct lwm2m_obj_path path; member 62 /* Initialize path list */ 67 * Add new path to the list while maintaining hierarchical sort order 69 * @param lwm2m_path_list sorted path list 71 * @param path path to be added 75 const struct lwm2m_obj_path *path); [all …]
|
D | lwm2m_registry.c | 3 * Copyright (c) 2018-2019 Foundries.io 5 * SPDX-License-Identifier: Apache-2.0 99 const struct lwm2m_obj_path *path, const void *value, 112 access_control_add_obj(obj->obj_id, server_obj_inst_id); in lwm2m_register_obj() 115 sys_slist_append(&engine_obj_list, &obj->node); in lwm2m_register_obj() 123 access_control_remove_obj(obj->obj_id); in lwm2m_unregister_obj() 125 engine_remove_observer_by_id(obj->obj_id, -1); in lwm2m_unregister_obj() 126 sys_slist_find_and_remove(&engine_obj_list, &obj->node); in lwm2m_unregister_obj() 135 if (obj->obj_id == obj_id) { in get_engine_obj() 147 if (obj && obj->fields && obj->field_count > 0) { in lwm2m_get_engine_obj_field() [all …]
|
/Zephyr-latest/scripts/dts/ |
D | gen_dts_cmake.py | 4 # SPDX-License-Identifier: Apache-2.0 35 dt_prop(compat PATH "/soc" PROPERTY compatible INDEX 0) 48 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree', 69 # Returns parsed command-line arguments 72 parser.add_argument("--cmake-out", required=True, 73 help="path to write the CMake property file") 74 parser.add_argument("--edt-pickle", required=True, 75 help="path to read the pickled edtlib.EDT object from") 94 # without conversion to lowercase-and-underscores like we have to 105 path = chosen_nodes[node].path [all …]
|
/Zephyr-latest/scripts/tests/twister/ |
D | test_errors.py | 4 # SPDX-License-Identifier: Apache-2.0 12 from pathlib import Path 19 cfile = Path('some') / 'path' 22 expected_err = f'{os.path.join("some", "path")}: dummy message'
|
D | test_environment.py | 5 # SPDX-License-Identifier: Apache-2.0 25 ['--short-build-path', '-k'], 26 '--short-build-path requires Ninja to be enabled' 32 ['--device-serial-pty', 'dummy'], 33 '--device-serial-pty is not supported on Windows OS' 39 ['--west-runner=dummy'], 40 'west-runner requires west-flash to be enabled' 46 ['--west-flash=\"--board-id=dummy\"'], 47 'west-flash requires device-testing to be enabled' 56 ['--enable-valgrind'], [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/ |
D | twister_harness_config.py | 3 # SPDX-License-Identifier: Apache-2.0 9 from pathlib import Path 20 build_dir: Path 34 pre_script: Path | None = None 35 post_script: Path | None = None 36 post_flash_script: Path | None = None 38 app_build_dir: Path | None = None 55 def create(cls, config: pytest.Config) -> TwisterHarnessConfig: 95 def _cast_to_path(path: str | None) -> Path | None: 96 if path is None: [all …]
|
/Zephyr-latest/tests/subsys/fs/common/ |
D | test_fs_basic.c | 5 * SPDX-License-Identifier: Apache-2.0 24 struct testfs_path path; in create_write_hello() local 31 testfs_path_init(&path, mp, in create_write_hello() 40 zassert_equal(fs_stat(path.path, &stat), in create_write_hello() 54 zassert_equal(fs_stat(path.path, &stat), in create_write_hello() 63 if (mp->type == FS_LITTLEFS) { in create_write_hello() 74 zassert_equal(fs_stat(path.path, &stat), in create_write_hello() 89 struct testfs_path path; in verify_hello() local 96 testfs_path_init(&path, mp, in verify_hello() 121 struct testfs_path path; in seek_within_hello() local [all …]
|
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/creds/ |
D | convert_keys.py | 2 # SPDX-License-Identifier: Apache-2.0 25 f"[{name.center(13, ' ')}]: {os.path.relpath(fin)} -> {os.path.relpath(fout)}") 29 creds_dir = os.path.dirname(os.path.realpath(__file__)) 36 if cred.endswith('-certificate.pem.crt'): 37 bin2array("public_cert", cred, os.path.join(creds_dir, "cert.c")) 39 elif cred.endswith('-private.pem.key'): 40 bin2array("private_key", cred, os.path.join(creds_dir, "key.c")) 48 bin2array("ca_cert", os.path.join(creds_dir, "AmazonRootCA1.pem"), 49 os.path.join(creds_dir, "ca.c"))
|
/Zephyr-latest/scripts/build/ |
D | subfolder_list.py | 2 # SPDX-License-Identifier: Apache-2.0 7 the list of all sub-directories found. If the output file already exists, the 8 file will only be updated in case sub-directories have been added or removed 24 parser.add_argument('-d', '--directory', required=True, 25 help='Directory to walk for sub-directory discovery') 26 parser.add_argument('-c', '--create-links', required=False, 29 parser.add_argument('-o', '--out-file', required=True, 32 parser.add_argument('-t', '--trigger-file', required=False, 33 help='Trigger file to be touched to re-run CMake') 45 if not os.path.exists(create_links): [all …]
|
/Zephyr-latest/share/sysbuild/cmake/modules/ |
D | sysbuild_root.cmake | 1 # SPDX-License-Identifier: Apache-2.0 8 # absolute path relative from APP_DIR. 11 # - ARCH_ROOT: CMake list of arch roots containing arch implementations 12 # - SOC_ROOT: CMake list of SoC roots containing SoC implementations 13 # - BOARD_ROOT: CMake list of board roots containing board and shield implementations 14 # - MODULE_EXT_ROOT: CMake list of module external roots containing module glue code 15 # - SCA_ROOT: CMake list of SCA roots containing static code analysis integration code 18 # any relative path to absolute path and update the root list. 48 set(MODULE_EXT_ROOT ${MODULE_EXT_ROOT} CACHE PATH "Sysbuild adjusted MODULE_EXT_ROOT" FORCE) 52 set(BOARD_ROOT ${BOARD_ROOT} CACHE PATH "Sysbuild adjusted BOARD_ROOT" FORCE) [all …]
|
/Zephyr-latest/modules/openthread/platform/ |
D | settings.c | 4 * SPDX-License-Identifier: Apache-2.0 28 /* Target index to delete. -1 to delete entire subtree. */ 43 char path[OT_SETTINGS_MAX_PATH_LEN]; in ot_setting_delete_cb() local 51 if ((ctx->target_index != -1) && (ctx->target_index != ctx->index)) { in ot_setting_delete_cb() 52 ctx->index++; in ot_setting_delete_cb() 56 if (key == NULL && ctx->delete_subtree_root == false) { in ot_setting_delete_cb() 60 ret = snprintk(path, sizeof(path), "%s%s%s", ctx->subtree, in ot_setting_delete_cb() 62 __ASSERT(ret < sizeof(path), "Setting path buffer too small."); in ot_setting_delete_cb() 64 LOG_DBG("Removing: %s", path); in ot_setting_delete_cb() 66 ret = settings_delete(path); in ot_setting_delete_cb() [all …]
|
/Zephyr-latest/share/sysbuild/ |
D | CMakeLists.txt | 1 # Copyright (c) 2021-2023 Nordic Semiconductor 3 # SPDX-License-Identifier: Apache-2.0 11 # This will update the APP_DIR cache variable to PATH type and apply a comment. 12 # If APP_DIR is a relative path, then CMake will adjust to absolute path based 14 set(APP_DIR ${APP_DIR} CACHE PATH "Main Application Source Directory") 15 set(Sysbuild_DIR ${CMAKE_CURRENT_LIST_DIR}/../sysbuild-package/cmake) 20 set(APPLICATION_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "Application Binary Directory") 30 build_info(application source-dir VALUE ${CMAKE_CURRENT_SOURCE_DIR})
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | package.py | 4 # SPDX-License-Identifier: Apache-2.0 20 root = os.path.basename(self.options.outdir) 24 f = os.path.relpath(d, self.options.outdir) 25 tar.add(d, arcname=os.path.join(root, f)) 31 os.path.join(self.options.outdir, "twister.json"), encoding='utf-8' 39 os.path.join( 46 os.path.join(self.options.outdir, "twister.json"), 47 os.path.join(self.options.outdir, "testplan.json")
|