Skip to content

Commit a6e0a25

Browse files
committed
qemu: native_sim: run the ztests and quit after completion
Run the boot tests and quit when done. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent 608b501 commit a6e0a25

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/boards/native_sim.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ CONFIG_ZEPHYR_POSIX=y
22
CONFIG_SYS_HEAP_BIG_ONLY=y
33
CONFIG_ZEPHYR_NATIVE_DRIVERS=y
44
CONFIG_ZEPHYR_LOG=y
5+
CONFIG_ZTEST=y
6+
CONFIG_SOF_BOOT_TEST_STANDALONE=y

app/src/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,12 @@ void sys_arch_reboot(int type)
8989
void test_main(void)
9090
{
9191
sof_app_main();
92-
#if CONFIG_SOF_BOOT_TEST && defined(QEMU_BOOT_TESTS)
92+
#if CONFIG_SOF_BOOT_TEST
9393
sof_run_boot_tests();
94+
#if defined(QEMU_BOOT_TESTS)
9495
qemu_xtensa_exit(0);
9596
#endif
97+
#endif
9698
}
9799
#else
98100
int main(void)

0 commit comments

Comments
 (0)