Commit 8abb2c0
committed
qemu: maths: build the math ztests on native_sim
Add the math basic-arithmetic ztests
(test_crc32_ztest.c, test_find_*_ztest.c, test_gcd_ztest.c,
test_norm_int32_ztest.c) to the SOF boot-test build under
zephyr/test/CMakeLists.txt when both
CONFIG_SOF_BOOT_TEST_STANDALONE and CONFIG_ZTEST are enabled.
The math helpers themselves (find_*_int*, norm_int32) are gated by
CONFIG_NUMBERS_VECTOR_FIND / CONFIG_NUMBERS_NORM in src/math/numbers.c
and are now enabled per-board in app/boards/native_sim.conf, where
CONFIG_ZTEST is set. This keeps the gating clean and explicit per
board rather than coupling math source compilation to CONFIG_ZTEST.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 35977ed commit 8abb2c0
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments