diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e5c196577cc..9f2c562e829 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1 +1,5 @@ add_subdirectory_if_kconfig(ztest) + +zephyr_include_directories_ifdef(CONFIG_TEST + $ENV{ZEPHYR_BASE}/tests/include + ) diff --git a/tests/Kconfig b/tests/Kconfig index f4b8389130e..1217ca3bf47 100644 --- a/tests/Kconfig +++ b/tests/Kconfig @@ -8,6 +8,13 @@ menu Testing source "tests/ztest/Kconfig" +config TEST + bool "Mark project as a test" + default n + help + Mark a project or an application as a test. This will enable a few + test defaults. + config TEST_EXTRA_STACKSIZE int "Test function thread stack size" default 0 diff --git a/tests/benchmarks/app_kernel/prj.conf b/tests/benchmarks/app_kernel/prj.conf index 747d185313f..bbedf82ab8e 100644 --- a/tests/benchmarks/app_kernel/prj.conf +++ b/tests/benchmarks/app_kernel/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y # all printf, fprintf to stdout go to console CONFIG_STDOUT_CONSOLE=y diff --git a/tests/benchmarks/app_kernel/prj_fp.conf b/tests/benchmarks/app_kernel/prj_fp.conf index 3b111a023de..7acfa7a7ac0 100644 --- a/tests/benchmarks/app_kernel/prj_fp.conf +++ b/tests/benchmarks/app_kernel/prj_fp.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y # all printf, fprintf to stdout go to console CONFIG_STDOUT_CONSOLE=y CONFIG_MAIN_THREAD_PRIORITY=6 diff --git a/tests/benchmarks/boot_time/prj.conf b/tests/benchmarks/boot_time/prj.conf index 927d9e64353..88e862d5eaa 100644 --- a/tests/benchmarks/boot_time/prj.conf +++ b/tests/benchmarks/boot_time/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_PERFORMANCE_METRICS=y CONFIG_BOOT_TIME_MEASUREMENT=y CONFIG_TEST_RANDOM_GENERATOR=y diff --git a/tests/benchmarks/footprint/CMakeLists.txt b/tests/benchmarks/footprint/CMakeLists.txt index 7d5ada79c09..2d98b27b59e 100644 --- a/tests/benchmarks/footprint/CMakeLists.txt +++ b/tests/benchmarks/footprint/CMakeLists.txt @@ -7,6 +7,8 @@ macro(set_conf_file) set(CONF_FILE $ENV{ZEPHYR_BASE}/tests/benchmarks/footprint/${TEST}/${BOARD}.conf) elseif(EXISTS $ENV{ZEPHYR_BASE}/tests/benchmarks/footprint/${TEST}/${ARCH}.conf) set(CONF_FILE $ENV{ZEPHYR_BASE}/tests/benchmarks/footprint/${TEST}/${ARCH}.conf) + else() + set(CONF_FILE $ENV{ZEPHYR_BASE}/tests/benchmarks/footprint/prj.conf) endif() endmacro() diff --git a/tests/benchmarks/footprint/float/arm.conf b/tests/benchmarks/footprint/float/arm.conf index bbfa770e2d7..c0bb6630843 100644 --- a/tests/benchmarks/footprint/float/arm.conf +++ b/tests/benchmarks/footprint/float/arm.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=2048 CONFIG_MAIN_STACK_SIZE=1024 CONFIG_COMMAND_STACK_SIZE=64 diff --git a/tests/benchmarks/footprint/float/x86.conf b/tests/benchmarks/footprint/float/x86.conf index bc217795326..3670e635f46 100644 --- a/tests/benchmarks/footprint/float/x86.conf +++ b/tests/benchmarks/footprint/float/x86.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=2048 CONFIG_MAIN_STACK_SIZE=1024 CONFIG_COMMAND_STACK_SIZE=64 diff --git a/tests/benchmarks/footprint/max/arm.conf b/tests/benchmarks/footprint/max/arm.conf index 410d38ffc72..b2d4cc97b44 100644 --- a/tests/benchmarks/footprint/max/arm.conf +++ b/tests/benchmarks/footprint/max/arm.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=2048 CONFIG_MAIN_STACK_SIZE=1024 CONFIG_COMMAND_STACK_SIZE=64 diff --git a/tests/benchmarks/footprint/max/x86.conf b/tests/benchmarks/footprint/max/x86.conf index ba0cf9ca314..0af90c39ab0 100644 --- a/tests/benchmarks/footprint/max/x86.conf +++ b/tests/benchmarks/footprint/max/x86.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=2048 CONFIG_MAIN_STACK_SIZE=1024 CONFIG_COMMAND_STACK_SIZE=64 diff --git a/tests/benchmarks/footprint/min/arm.conf b/tests/benchmarks/footprint/min/arm.conf index cbf30413c6b..e16041e0fde 100644 --- a/tests/benchmarks/footprint/min/arm.conf +++ b/tests/benchmarks/footprint/min/arm.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=256 CONFIG_COMMAND_STACK_SIZE=2 diff --git a/tests/benchmarks/footprint/min/galileo.conf b/tests/benchmarks/footprint/min/galileo.conf index bbc96a77d17..193c2cfaeb7 100644 --- a/tests/benchmarks/footprint/min/galileo.conf +++ b/tests/benchmarks/footprint/min/galileo.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=256 CONFIG_COMMAND_STACK_SIZE=2 diff --git a/tests/benchmarks/footprint/min/x86.conf b/tests/benchmarks/footprint/min/x86.conf index 5aa53e86d7c..7fa08b2d826 100644 --- a/tests/benchmarks/footprint/min/x86.conf +++ b/tests/benchmarks/footprint/min/x86.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=256 CONFIG_COMMAND_STACK_SIZE=2 diff --git a/tests/benchmarks/footprint/prj.conf b/tests/benchmarks/footprint/prj.conf new file mode 100644 index 00000000000..be82be601ea --- /dev/null +++ b/tests/benchmarks/footprint/prj.conf @@ -0,0 +1 @@ +CONFIG_TEST diff --git a/tests/benchmarks/footprint/reg/arm.conf b/tests/benchmarks/footprint/reg/arm.conf index 3c54dc7c778..ef617a76037 100644 --- a/tests/benchmarks/footprint/reg/arm.conf +++ b/tests/benchmarks/footprint/reg/arm.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=512 CONFIG_MAIN_STACK_SIZE=512 CONFIG_COMMAND_STACK_SIZE=8 diff --git a/tests/benchmarks/footprint/reg/x86.conf b/tests/benchmarks/footprint/reg/x86.conf index 40125408216..cf1f04ac660 100644 --- a/tests/benchmarks/footprint/reg/x86.conf +++ b/tests/benchmarks/footprint/reg/x86.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=512 CONFIG_MAIN_STACK_SIZE=512 CONFIG_COMMAND_STACK_SIZE=8 diff --git a/tests/benchmarks/latency_measure/prj.conf b/tests/benchmarks/latency_measure/prj.conf index 15f86ab2ab5..0e5091f79dc 100644 --- a/tests/benchmarks/latency_measure/prj.conf +++ b/tests/benchmarks/latency_measure/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y # needed for printf output sent to console CONFIG_STDOUT_CONSOLE=y diff --git a/tests/benchmarks/latency_measure/prj_small_freq_divider.conf b/tests/benchmarks/latency_measure/prj_small_freq_divider.conf index 9a12d8278bb..796565ff4bf 100644 --- a/tests/benchmarks/latency_measure/prj_small_freq_divider.conf +++ b/tests/benchmarks/latency_measure/prj_small_freq_divider.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y # needed for printf output sent to console CONFIG_STDOUT_CONSOLE=y diff --git a/tests/benchmarks/object_footprint/prj00.conf b/tests/benchmarks/object_footprint/prj00.conf index 9c1a4959c5b..3348a8c5b66 100644 --- a/tests/benchmarks/object_footprint/prj00.conf +++ b/tests/benchmarks/object_footprint/prj00.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_SYS_CLOCK_TICKS_PER_SEC=0 diff --git a/tests/benchmarks/object_footprint/prj01.conf b/tests/benchmarks/object_footprint/prj01.conf index c0dabfb0f03..42ed9ec150c 100644 --- a/tests/benchmarks/object_footprint/prj01.conf +++ b/tests/benchmarks/object_footprint/prj01.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_SYS_CLOCK_TICKS_PER_SEC=0 diff --git a/tests/benchmarks/object_footprint/prj02.conf b/tests/benchmarks/object_footprint/prj02.conf index e4e615a96eb..94ab93a368d 100644 --- a/tests/benchmarks/object_footprint/prj02.conf +++ b/tests/benchmarks/object_footprint/prj02.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_SYS_CLOCK_TICKS_PER_SEC=0 diff --git a/tests/benchmarks/object_footprint/prj03.conf b/tests/benchmarks/object_footprint/prj03.conf index 2f12028c9d3..16b4820152b 100644 --- a/tests/benchmarks/object_footprint/prj03.conf +++ b/tests/benchmarks/object_footprint/prj03.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_SYS_CLOCK_TICKS_PER_SEC=0 diff --git a/tests/benchmarks/object_footprint/prj04.conf b/tests/benchmarks/object_footprint/prj04.conf index aee241bfaea..c6a1f2cf52f 100644 --- a/tests/benchmarks/object_footprint/prj04.conf +++ b/tests/benchmarks/object_footprint/prj04.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_PRINTK=y diff --git a/tests/benchmarks/object_footprint/prj05.conf b/tests/benchmarks/object_footprint/prj05.conf index b409274ce26..be096c987ce 100644 --- a/tests/benchmarks/object_footprint/prj05.conf +++ b/tests/benchmarks/object_footprint/prj05.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_PRINTK=y diff --git a/tests/benchmarks/object_footprint/prj06.conf b/tests/benchmarks/object_footprint/prj06.conf index d323b1d0a04..203b0edfa3d 100644 --- a/tests/benchmarks/object_footprint/prj06.conf +++ b/tests/benchmarks/object_footprint/prj06.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_PRINTK=y diff --git a/tests/benchmarks/object_footprint/prj07.conf b/tests/benchmarks/object_footprint/prj07.conf index 37b62af99fe..01d4530c1f8 100644 --- a/tests/benchmarks/object_footprint/prj07.conf +++ b/tests/benchmarks/object_footprint/prj07.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_PRINTK=y diff --git a/tests/benchmarks/object_footprint/prj08.conf b/tests/benchmarks/object_footprint/prj08.conf index a0cd53201b8..9ff194d94c2 100644 --- a/tests/benchmarks/object_footprint/prj08.conf +++ b/tests/benchmarks/object_footprint/prj08.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_PRINTK=y diff --git a/tests/benchmarks/object_footprint/prj09.conf b/tests/benchmarks/object_footprint/prj09.conf index 817ec965e39..a0542553de2 100644 --- a/tests/benchmarks/object_footprint/prj09.conf +++ b/tests/benchmarks/object_footprint/prj09.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_PRINTK=y diff --git a/tests/benchmarks/object_footprint/prj10.conf b/tests/benchmarks/object_footprint/prj10.conf index d2617b43a7d..9e3a4e70fe8 100644 --- a/tests/benchmarks/object_footprint/prj10.conf +++ b/tests/benchmarks/object_footprint/prj10.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_PRINTK=y diff --git a/tests/benchmarks/object_footprint/prj11.conf b/tests/benchmarks/object_footprint/prj11.conf index 60d2acbfa76..033a0e615e2 100644 --- a/tests/benchmarks/object_footprint/prj11.conf +++ b/tests/benchmarks/object_footprint/prj11.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ISR_STACK_SIZE=128 CONFIG_MAIN_STACK_SIZE=128 CONFIG_PRINTK=y diff --git a/tests/benchmarks/sys_kernel/prj.conf b/tests/benchmarks/sys_kernel/prj.conf index 701871dc9db..833cc8ad46a 100644 --- a/tests/benchmarks/sys_kernel/prj.conf +++ b/tests/benchmarks/sys_kernel/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y # all printf, fprintf to stdout go to console CONFIG_STDOUT_CONSOLE=y diff --git a/tests/benchmarks/timing_info/prj.conf b/tests/benchmarks/timing_info/prj.conf index 4cd820b63ee..09999f13d24 100644 --- a/tests/benchmarks/timing_info/prj.conf +++ b/tests/benchmarks/timing_info/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_EXECUTION_BENCHMARKING=y CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_HEAP_MEM_POOL_SIZE=256 diff --git a/tests/bluetooth/mesh/dbg.conf b/tests/bluetooth/mesh/dbg.conf index 065a7a530d8..de6a792d217 100644 --- a/tests/bluetooth/mesh/dbg.conf +++ b/tests/bluetooth/mesh/dbg.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 diff --git a/tests/bluetooth/mesh/friend.conf b/tests/bluetooth/mesh/friend.conf index f8ddbe96e7f..dfd887b9a7e 100644 --- a/tests/bluetooth/mesh/friend.conf +++ b/tests/bluetooth/mesh/friend.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 diff --git a/tests/bluetooth/mesh/gatt.conf b/tests/bluetooth/mesh/gatt.conf index 30aa47cb5fa..15434bf61b1 100644 --- a/tests/bluetooth/mesh/gatt.conf +++ b/tests/bluetooth/mesh/gatt.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 diff --git a/tests/bluetooth/mesh/lpn.conf b/tests/bluetooth/mesh/lpn.conf index 59ba3c2d56b..184f0f63d3a 100644 --- a/tests/bluetooth/mesh/lpn.conf +++ b/tests/bluetooth/mesh/lpn.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 diff --git a/tests/bluetooth/mesh/microbit.conf b/tests/bluetooth/mesh/microbit.conf index 8d98bbe9a50..583d7b46e0d 100644 --- a/tests/bluetooth/mesh/microbit.conf +++ b/tests/bluetooth/mesh/microbit.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 CONFIG_MICROBIT_DISPLAY=y diff --git a/tests/bluetooth/mesh/microbit_gatt.conf b/tests/bluetooth/mesh/microbit_gatt.conf index 5ffd3729803..45db3c3d258 100644 --- a/tests/bluetooth/mesh/microbit_gatt.conf +++ b/tests/bluetooth/mesh/microbit_gatt.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y #CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 CONFIG_MICROBIT_DISPLAY=y diff --git a/tests/bluetooth/mesh/nrf51-16k.conf b/tests/bluetooth/mesh/nrf51-16k.conf index 8fdab329403..832300c6c7a 100644 --- a/tests/bluetooth/mesh/nrf51-16k.conf +++ b/tests/bluetooth/mesh/nrf51-16k.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 diff --git a/tests/bluetooth/mesh/pb_gatt.conf b/tests/bluetooth/mesh/pb_gatt.conf index 55ae5650efc..fc16fd0a62b 100644 --- a/tests/bluetooth/mesh/pb_gatt.conf +++ b/tests/bluetooth/mesh/pb_gatt.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 diff --git a/tests/bluetooth/mesh/prj.conf b/tests/bluetooth/mesh/prj.conf index 1dc89bd9b3e..29151aa4c25 100644 --- a/tests/bluetooth/mesh/prj.conf +++ b/tests/bluetooth/mesh/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 diff --git a/tests/bluetooth/mesh/proxy.conf b/tests/bluetooth/mesh/proxy.conf index 60bca3a61a0..2256205df2c 100644 --- a/tests/bluetooth/mesh/proxy.conf +++ b/tests/bluetooth/mesh/proxy.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y #CONFIG_INIT_STACKS=y CONFIG_MAIN_STACK_SIZE=512 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 diff --git a/tests/bluetooth/mesh_shell/prj.conf b/tests/bluetooth/mesh_shell/prj.conf index 1d3e2d596b4..039e5a9a69d 100644 --- a/tests/bluetooth/mesh_shell/prj.conf +++ b/tests/bluetooth/mesh_shell/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y #CONFIG_INIT_STACKS=y CONFIG_USERSPACE=n CONFIG_MAIN_STACK_SIZE=320 diff --git a/tests/bluetooth/shell/mesh.conf b/tests/bluetooth/shell/mesh.conf index 753b31691f3..fb9c85060df 100644 --- a/tests/bluetooth/shell/mesh.conf +++ b/tests/bluetooth/shell/mesh.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_USERSPACE=n #CONFIG_INIT_STACKS=y CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 diff --git a/tests/bluetooth/shell/prj.conf b/tests/bluetooth/shell/prj.conf index c0940fc0fea..03c7846bb3b 100644 --- a/tests/bluetooth/shell/prj.conf +++ b/tests/bluetooth/shell/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_BT=y CONFIG_CONSOLE_HANDLER=y CONFIG_BT_DEBUG_LOG=y diff --git a/tests/bluetooth/shell/prj_arduino_101.conf b/tests/bluetooth/shell/prj_arduino_101.conf index 225f4647bb0..041991ee313 100644 --- a/tests/bluetooth/shell/prj_arduino_101.conf +++ b/tests/bluetooth/shell/prj_arduino_101.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_BT=y CONFIG_CONSOLE_HANDLER=y CONFIG_BT_DEBUG_LOG=y diff --git a/tests/bluetooth/shell/prj_br.conf b/tests/bluetooth/shell/prj_br.conf index 0a9ef8af0a7..387aeba5d87 100644 --- a/tests/bluetooth/shell/prj_br.conf +++ b/tests/bluetooth/shell/prj_br.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_BT=y CONFIG_BT_BREDR=y CONFIG_BT_RFCOMM=y diff --git a/tests/bluetooth/tester/default.conf b/tests/bluetooth/tester/default.conf index 02380eebfc5..9810363b385 100644 --- a/tests/bluetooth/tester/default.conf +++ b/tests/bluetooth/tester/default.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_UART_PIPE=y CONFIG_CONSOLE_HANDLER=y CONFIG_BT=y diff --git a/tests/bluetooth/tester/qemu.conf b/tests/bluetooth/tester/qemu.conf index 151127689d8..444fe05e98d 100644 --- a/tests/bluetooth/tester/qemu.conf +++ b/tests/bluetooth/tester/qemu.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_UART_PIPE=y CONFIG_UART_PIPE_ON_DEV_NAME="UART_1" CONFIG_CONSOLE_HANDLER=y diff --git a/tests/drivers/aio/app/prj.conf b/tests/drivers/aio/app/prj.conf index 75e3351507a..17a900fb55d 100644 --- a/tests/drivers/aio/app/prj.conf +++ b/tests/drivers/aio/app/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_STDOUT_CONSOLE=y CONFIG_PRINTK=y CONFIG_AIO_COMPARATOR=y diff --git a/tests/drivers/build_all/drivers.conf b/tests/drivers/build_all/drivers.conf index ff52f48d621..d610b919c8d 100644 --- a/tests/drivers/build_all/drivers.conf +++ b/tests/drivers/build_all/drivers.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ADC=y CONFIG_COUNTER=y CONFIG_DMA=y diff --git a/tests/drivers/build_all/ethernet.conf b/tests/drivers/build_all/ethernet.conf index f0f38833e86..7c3218f2cdc 100644 --- a/tests/drivers/build_all/ethernet.conf +++ b/tests/drivers/build_all/ethernet.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_NETWORKING=y CONFIG_NET_L2_ETHERNET=y CONFIG_ENTROPY_GENERATOR=y diff --git a/tests/drivers/build_all/prj.conf b/tests/drivers/build_all/prj.conf new file mode 100644 index 00000000000..e1faee53e19 --- /dev/null +++ b/tests/drivers/build_all/prj.conf @@ -0,0 +1 @@ +CONFIG_TEST=y diff --git a/tests/drivers/build_all/sensors_a_m.conf b/tests/drivers/build_all/sensors_a_m.conf index ecd0b9a4e9a..da86d208488 100644 --- a/tests/drivers/build_all/sensors_a_m.conf +++ b/tests/drivers/build_all/sensors_a_m.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_GPIO=y CONFIG_I2C=y CONFIG_SENSOR=y diff --git a/tests/drivers/build_all/sensors_n_z.conf b/tests/drivers/build_all/sensors_n_z.conf index c79f7788633..eed70291925 100644 --- a/tests/drivers/build_all/sensors_n_z.conf +++ b/tests/drivers/build_all/sensors_n_z.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_GPIO=y CONFIG_I2C=y CONFIG_SENSOR=y diff --git a/tests/drivers/build_all/sensors_trigger.conf b/tests/drivers/build_all/sensors_trigger.conf index 21ff052a60c..d665564a12b 100644 --- a/tests/drivers/build_all/sensors_trigger.conf +++ b/tests/drivers/build_all/sensors_trigger.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_I2C=y CONFIG_ADC=y CONFIG_GPIO=y diff --git a/tests/drivers/dma/loop_transfer/prj.conf b/tests/drivers/dma/loop_transfer/prj.conf index a9e41457215..92fe359a76d 100644 --- a/tests/drivers/dma/loop_transfer/prj.conf +++ b/tests/drivers/dma/loop_transfer/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_DMA=y CONFIG_SYS_LOG=y CONFIG_SYS_LOG_DMA_LEVEL=1 diff --git a/tests/drivers/ipm/prj.conf b/tests/drivers/ipm/prj.conf index a7f4695ffc8..23d5637e82f 100644 --- a/tests/drivers/ipm/prj.conf +++ b/tests/drivers/ipm/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_CONSOLE=y CONFIG_IPM_CONSOLE_RECEIVER=y CONFIG_IPM_CONSOLE_SENDER=y diff --git a/tests/drivers/spi/spi_loopback/prj_96b_carbon_irq.conf b/tests/drivers/spi/spi_loopback/prj_96b_carbon_irq.conf index 1951549ce2f..5982eff39a4 100644 --- a/tests/drivers/spi/spi_loopback/prj_96b_carbon_irq.conf +++ b/tests/drivers/spi/spi_loopback/prj_96b_carbon_irq.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_BOOT_BANNER=y CONFIG_BUILD_TIMESTAMP=y CONFIG_SYS_LOG=y diff --git a/tests/drivers/spi/spi_loopback/prj_96b_carbon_polled.conf b/tests/drivers/spi/spi_loopback/prj_96b_carbon_polled.conf index 9802cfb6732..cff3614325f 100644 --- a/tests/drivers/spi/spi_loopback/prj_96b_carbon_polled.conf +++ b/tests/drivers/spi/spi_loopback/prj_96b_carbon_polled.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_BOOT_BANNER=y CONFIG_BUILD_TIMESTAMP=y CONFIG_SYS_LOG=y diff --git a/tests/drivers/spi/spi_loopback/prj_em_starterkit.conf b/tests/drivers/spi/spi_loopback/prj_em_starterkit.conf index e14de939e20..7ce62482d91 100644 --- a/tests/drivers/spi/spi_loopback/prj_em_starterkit.conf +++ b/tests/drivers/spi/spi_loopback/prj_em_starterkit.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_SYS_LOG=y CONFIG_GPIO=y CONFIG_SPI_LEGACY_API=n diff --git a/tests/drivers/spi/spi_loopback/prj_nucleo_l432kc.conf b/tests/drivers/spi/spi_loopback/prj_nucleo_l432kc.conf index 3c0826bc7ae..ee9c3caef56 100644 --- a/tests/drivers/spi/spi_loopback/prj_nucleo_l432kc.conf +++ b/tests/drivers/spi/spi_loopback/prj_nucleo_l432kc.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_SYS_LOG=y CONFIG_SPI=y CONFIG_SPI_LEGACY_API=n diff --git a/tests/drivers/spi/spi_loopback/prj_quark_se_c1000_devboard.conf b/tests/drivers/spi/spi_loopback/prj_quark_se_c1000_devboard.conf index c4d7de515d7..33952411b11 100644 --- a/tests/drivers/spi/spi_loopback/prj_quark_se_c1000_devboard.conf +++ b/tests/drivers/spi/spi_loopback/prj_quark_se_c1000_devboard.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_SYS_LOG=y CONFIG_GPIO=y CONFIG_SPI_LEGACY_API=n diff --git a/tests/kernel/fp_sharing/prj.conf b/tests/kernel/fp_sharing/prj.conf index 0ffd1e2e0ff..004a658d552 100644 --- a/tests/kernel/fp_sharing/prj.conf +++ b/tests/kernel/fp_sharing/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_FLOAT=y CONFIG_SSE=y CONFIG_FP_SHARING=y diff --git a/tests/kernel/gen_isr_table/prj.conf b/tests/kernel/gen_isr_table/prj.conf index 5f8304692f4..ab98314da4b 100644 --- a/tests/kernel/gen_isr_table/prj.conf +++ b/tests/kernel/gen_isr_table/prj.conf @@ -1 +1,2 @@ +CONFIG_TEST=y # Nothing needed diff --git a/tests/kernel/mem_protect/stackprot/prj.conf b/tests/kernel/mem_protect/stackprot/prj.conf index a3b47f0628f..3021d514404 100644 --- a/tests/kernel/mem_protect/stackprot/prj.conf +++ b/tests/kernel/mem_protect/stackprot/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_STACK_CANARIES=y CONFIG_ENTROPY_GENERATOR=y CONFIG_TEST_RANDOM_GENERATOR=y diff --git a/tests/kernel/pthread/prj.conf b/tests/kernel/pthread/prj.conf index 32aba611154..271afcff4b3 100644 --- a/tests/kernel/pthread/prj.conf +++ b/tests/kernel/pthread/prj.conf @@ -1 +1,2 @@ +CONFIG_TEST=y CONFIG_PTHREAD_IPC=y diff --git a/tests/kernel/sprintf/prj.conf b/tests/kernel/sprintf/prj.conf index 429832a0b17..11d834e1e52 100644 --- a/tests/kernel/sprintf/prj.conf +++ b/tests/kernel/sprintf/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_STDOUT_CONSOLE=y CONFIG_NUM_IRQS=2 CONFIG_FLOAT=y diff --git a/tests/misc/test_build/debug.conf b/tests/misc/test_build/debug.conf index 0f446069d15..aede3729cbb 100644 --- a/tests/misc/test_build/debug.conf +++ b/tests/misc/test_build/debug.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_DEBUG=y CONFIG_STDOUT_CONSOLE=y CONFIG_KERNEL_DEBUG=y diff --git a/tests/misc/test_build/newlib.conf b/tests/misc/test_build/newlib.conf index 87fc5a097c7..3cb973ee82d 100644 --- a/tests/misc/test_build/newlib.conf +++ b/tests/misc/test_build/newlib.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_DEBUG=y CONFIG_STDOUT_CONSOLE=y CONFIG_NEWLIB_LIBC=y diff --git a/tests/misc/test_build/runtime_nmi.conf b/tests/misc/test_build/runtime_nmi.conf index 2a908641035..cdf26ce7210 100644 --- a/tests/misc/test_build/runtime_nmi.conf +++ b/tests/misc/test_build/runtime_nmi.conf @@ -1 +1,2 @@ +CONFIG_TEST=y CONFIG_RUNTIME_NMI=y diff --git a/tests/net/ieee802154/crypto/prj.conf b/tests/net/ieee802154/crypto/prj.conf index 82abf7e582a..ab0889a2512 100644 --- a/tests/net/ieee802154/crypto/prj.conf +++ b/tests/net/ieee802154/crypto/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ARC_INIT=n CONFIG_NETWORKING=y diff --git a/tests/net/ieee802154/fragment/prj.conf b/tests/net/ieee802154/fragment/prj.conf index cb7cdda9c3a..e2f29deed88 100644 --- a/tests/net/ieee802154/fragment/prj.conf +++ b/tests/net/ieee802154/fragment/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_NETWORKING=y CONFIG_NET_TEST=y CONFIG_NET_L2_DUMMY=y diff --git a/tests/net/ipv6/prj.conf b/tests/net/ipv6/prj.conf index d19a8dd743e..104481fa1f1 100644 --- a/tests/net/ipv6/prj.conf +++ b/tests/net/ipv6/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_NETWORKING=y CONFIG_NET_TEST=y CONFIG_NET_IPV6=y diff --git a/tests/net/lib/coap/prj.conf b/tests/net/lib/coap/prj.conf index 4fe547cbe02..425ece31882 100644 --- a/tests/net/lib/coap/prj.conf +++ b/tests/net/lib/coap/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_NET_TEST=y CONFIG_NETWORKING=y CONFIG_NET_IPV6=y diff --git a/tests/net/tcp/prj.conf b/tests/net/tcp/prj.conf index 3eb2a29d8ac..01f0f9dfc26 100644 --- a/tests/net/tcp/prj.conf +++ b/tests/net/tcp/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_NETWORKING=y CONFIG_NET_TEST=y CONFIG_NET_L2_DUMMY=y diff --git a/tests/power/multicore/arc/prj.conf b/tests/power/multicore/arc/prj.conf index bfa6b9419aa..36921791de7 100644 --- a/tests/power/multicore/arc/prj.conf +++ b/tests/power/multicore/arc/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_SYS_POWER_MANAGEMENT=y CONFIG_SYS_POWER_DEEP_SLEEP=y CONFIG_SYS_POWER_LOW_POWER_STATE=y diff --git a/tests/power/multicore/lmt/prj.conf b/tests/power/multicore/lmt/prj.conf index b9ff02930a2..dd6d2d01ce6 100644 --- a/tests/power/multicore/lmt/prj.conf +++ b/tests/power/multicore/lmt/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_SYS_POWER_MANAGEMENT=y CONFIG_SYS_POWER_DEEP_SLEEP=y CONFIG_SYS_POWER_LOW_POWER_STATE=y diff --git a/tests/power/power_states/prj.conf b/tests/power/power_states/prj.conf index 74f177bb7bd..cc973c7279e 100644 --- a/tests/power/power_states/prj.conf +++ b/tests/power/power_states/prj.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ARC_INIT=n CONFIG_SYS_POWER_MANAGEMENT=y CONFIG_SYS_POWER_DEEP_SLEEP=y diff --git a/tests/power/power_states/prj_socwatch.conf b/tests/power/power_states/prj_socwatch.conf index 8b161bf0538..771761df8f1 100644 --- a/tests/power/power_states/prj_socwatch.conf +++ b/tests/power/power_states/prj_socwatch.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ARC_INIT=n CONFIG_SYS_POWER_MANAGEMENT=y CONFIG_SYS_POWER_DEEP_SLEEP=n diff --git a/tests/power/power_states/prj_tickless.conf b/tests/power/power_states/prj_tickless.conf index b68512b9db7..e07ce22c027 100644 --- a/tests/power/power_states/prj_tickless.conf +++ b/tests/power/power_states/prj_tickless.conf @@ -1,3 +1,4 @@ +CONFIG_TEST=y CONFIG_ASSERT=y CONFIG_ASSERT_LEVEL=2 CONFIG_NUM_COOP_PRIORITIES=29 diff --git a/tests/ztest/Kconfig b/tests/ztest/Kconfig index e55aebd7be7..cec458bdb5d 100644 --- a/tests/ztest/Kconfig +++ b/tests/ztest/Kconfig @@ -7,6 +7,7 @@ config ZTEST bool "Zephyr testing framework" default n + select TEST help Enable the Zephyr testing framework. You should enable this only if you're writing automated tests.