zephyr/tests/lib
Torsten Rasmussen b939e720a6 tests: source Zephyr before project() call
Fixes: #73831

find_package(Zephyr) should be called before first project() call.

Zephyr package will test and force-set the correct toolchain, especially
the C compiler.
The project() will also set the C compiler, if not set already.

If project() is called first, then conflict arises on the C compiler
selection and thus the following message is seen:
> You have changed variables that require your cache to be deleted.
> Configure will be re-run and you may have to reset some variables.
> The following variables have changed:
> CMAKE_C_COMPILER= /usr/bin/gcc

This cache deletion results in other errors, such as a missing BOARD
setting.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-08-05 16:27:09 +02:00
..
acpi tests: source Zephyr before project() call 2024-08-05 16:27:09 +02:00
c_lib test: Apply semantic patch file ztest_strcmp.cocci 2024-06-14 19:25:42 +02:00
cbprintf_fp tests/lib/cbprintf_fp: add hifive1.conf 2024-04-02 14:31:39 +01:00
cbprintf_package test: Apply semantic patch file ztest_strcmp.cocci 2024-06-14 19:25:42 +02:00
cmsis_dsp hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
cmsis_nn tests: lib: cmsis_nn: add missing filter dimension 2024-06-28 07:50:12 -04:00
cpp tests: cpp: add C++ coverage for pm/device.h 2024-07-08 17:20:26 -04:00
devicetree everywhere: reindent .overlay files with tabs 2024-06-26 15:59:44 +02:00
fdtable fdtable: replace z_ prefix with zvfs_ for fdtable.h functions 2024-06-26 12:33:02 +02:00
gui/lvgl everywhere: replace #if IS_ENABLED() as per docs 2024-06-28 07:20:32 -04:00
hash_function tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
hash_map tests/lib: Use hwmv2 native targets identifiers 2024-03-15 16:13:12 +01:00
heap tests: Remove obsolete filter for ARC nSIM platform 2024-06-11 20:04:29 +03:00
heap_align hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
json json: test: Add test for array elements alignment 2024-07-09 19:02:25 +02:00
linear_range tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
lockfree sys: Add a lockfree mpsc and spsc queues 2024-06-06 00:42:29 -07:00
mem_alloc tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
mem_blocks arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
mem_blocks_stats tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
mpsc_pbuf hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
multi_heap tests: kernel: add test for k_realloc 2024-05-28 17:55:12 +02:00
newlib samples: tests: bluetooth: Add support for frdm_rw612 2024-06-10 07:02:06 -07:00
notify tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
onoff tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
p4workq tests: use appropriate sys_randX_get() 2024-04-05 10:57:45 -05:00
ringbuffer tests/lib: Use hwmv2 native targets identifiers 2024-03-15 16:13:12 +01:00
shared_multi_heap kernel: mm: rename z_phys_un/map to k_mem_*_phys_bare 2024-06-12 21:13:26 -04:00
smf Lib: SMF: Add test for stuck handled bit 2024-06-24 14:50:00 -04:00
sprintf test: Apply semantic patch file ztest_strcmp.cocci 2024-06-14 19:25:42 +02:00
spsc_pbuf tests: lib: spsc_pbuf: Do not run test with cache 2024-07-01 16:07:30 -04:00
sys_util include: sys: util: add note and test for NUM_VA_ARGS_LESS_1 2024-05-01 22:56:00 +01:00
time posix: timers: deprecate CONFIG_POSIX_CLOCK and TIMER 2024-06-04 16:27:12 -05:00