zephyr/tests
Marcin Niestroj 2d3365200c settings: file: drop CONFIG_SETTINGS_FILE_DIR
There is already CONFIG_SETTINGS_FILE_PATH, which is set to full file path,
while CONFIG_SETTINGS_FILE_DIR is required to be set to its parent
directory. This is redundant, as parent directory path can be easily found
out either during runtime or optionally during buildtime by CMake.

CONFIG_SETTINGS_FILE_DIR was actually introduced recently after Zephyr 3.2
release as a replacement of deprecated CONFIG_SETTINGS_FS_DIR. This means,
that there is no need to deprecate it for 3.3 release and dropping it
should be fine. Adjust 3.3 release notes accordingly, so that
CONFIG_SETTINGS_FILE_PATH will be used directly.

This patch stops using deprecated CONFIG_SETTINGS_FS_DIR. There is actually
no value in respecting it, as setting anything other than parent directory
of CONFIG_SETTINGS_FS_FILE makes no sense.

There is actually one use of CONFIG_SETTINGS_FILE_DIR in file backend
tests, to derive directory for files containing tested settings.
CONFIG_SETTINGS_FILE_PATH is not used there, so it makes little sense to
derive directory name from it. Instead, just use hardcoded "/settings"
subdirectory, as this was the default value of CONFIG_SETTINGS_FILE_DIR.

Deriving parent directory can be done either in runtime or in
buildtime (e.g. using some helper CMake function). Doing it in runtime
however allows to create directory recursively (which this patch actually
implements), e.g. for some more nested FS tree structure. Additionally it
will simplify migration of settings configuration from Kconfig to
device-tree (yet to be developed feature).

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2022-12-14 14:11:03 +01:00
..
application_development tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
arch tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
benchmarks tests/benchmarks: Add userspace scheduling benchmark 2022-12-13 17:21:11 +09:00
bluetooth Bluetooth: controller: refactor ull_rx_put/sched 2022-12-09 12:44:39 +01:00
boards tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
boot tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
cmake build: Overlay build vars expand ${ZEPHYR_<module>_MODULE_DIR} 2022-10-13 12:04:38 +02:00
crypto tests/mbedtls: Reduce MPU partition usage for picolibc 2022-11-08 10:44:36 +01:00
drivers tests: drivers: udc: fix uninitialized variable and thread 2022-12-14 12:06:03 +01:00
kernel tests: re-enable tests which were disabled due to ARC QEMU issues 2022-12-08 16:59:15 +09:00
lib tests: devicetree: device: Add mimxrt595_evk_cm33 exclusion 2022-12-05 11:03:14 +01:00
misc tests: misc: iterable_sections: add const specifier for ROM data 2022-10-12 18:42:28 +02:00
net net: lib: lwm2m: add uCIFI LPWAN object 2022-12-14 09:51:38 +01:00
posix posix: getopt: move declarations to unistd.h 2022-12-04 14:51:52 +01:00
subsys settings: file: drop CONFIG_SETTINGS_FILE_DIR 2022-12-14 14:11:03 +01:00
unit crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
ztest tests: use ignore_fault field instead of tags 2022-11-25 06:38:05 -05:00