zephyr/tests/subsys/settings
Marc Herbert b4282bf72d tests/subsys/settings/functional: make common code a zephyr_library()
Stops leaking very long source paths in build directories; makes them
deterministic.

Besides satisfying a CMake requirement, the new empty_file.c provide a
clue that the actual test code is not in the directory of the test case.

See https://github.com/zephyrproject-rtos/hal_nordic/pull/6 and
https://gitlab.kitware.com/cmake/cmake/issues/19475 for more details.

- Test with a simple:

 sanitycheck -T $ZEPHYR_BASE/tests/subsys/settings/functional/

- Before:

CMakeFiles
├── app.dir
│   ├── HOME
│   │   └── JOHN
│   │       └── zephyrproject
│   │           └── zephyr
│   │               └── tests
│   │                   └── subsys
│   │                       └── settings
│   │                           └── functional
│   │                               └── src
│   │                                   └── settings_basic_test.c.obj

- After:

func_test_bindir/
├── CMakeFiles
│   └── settings_func_test.dir
│       └── settings_basic_test.c.obj
│
├── libsettings_func_test.a

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2019-10-06 19:03:22 -07:00
..
fcb tests/subsys/settings/fcb: Fix ifdef in ztest_test_suite 2019-09-13 10:27:49 -05:00
fcb_init tests: settings: Fix coverity issue CID 203623 2019-08-30 12:30:59 +02:00
functional tests/subsys/settings/functional: make common code a zephyr_library() 2019-10-06 19:03:22 -07:00
nffs tests: enable native_posix_64 testing 2019-07-16 10:41:11 -07:00
nvs tests: subsys: settings: nvs: intergrating tests with nvs backed 2019-09-27 10:06:40 -07:00
src tests: subsys: settings: tightening scope of common test functions 2019-09-27 10:06:40 -07:00