zephyr/tests/subsys
Anas Nashif afc319e3fa ztest: shell: add shell support
- Support for listing both testcases and testsuites
- Support for running single suites or single test cases
- Support shuffling tests and repeating execution based on command line
  arguments.

For example, build with

west build -p  -b qemu_cortex_m3  tests/kernel/sleep   -t run -- \
-DCONFIG_ZTEST_SHUFFLE=y -DCONFIG_ZTEST_SHELL=y

Following commands are available:

uart:~$ ztest
ztest - Ztest commands
Subcommands:
  run-all          :Run all tests
  shuffle          :Shuffle tests
  list-testsuites  :List all test suites
  list-testcases   :List all test cases
  run-testsuite    :Run test suite
  run-testcase     :Run testcase

shuffle accepts two arguments --suite_iter and --case_iter which allows
repeated exercution of testcases or suites.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-01-09 09:58:57 +01:00
..
bindesc/definition tests/subsys/bindesc/definition: Enable for native_sim 2023-11-30 09:42:25 -05:00
canbus/isotp tests/subsys/canbus/isotp/conformance: Replace native_posix in comment 2023-11-30 09:42:25 -05:00
debug samples: debug: Add support for qemu_cortex_a9 in GDB stub sample 2023-12-18 09:31:42 +01:00
dfu tests/subsys/dfu/*: Switch to native_sim 2023-11-22 09:53:20 +01:00
dsp tests/subsys/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
edac tests: fix thread function signatures 2023-10-30 12:24:34 +01:00
emul tests/subsys/emul: Enable for native_sim 2023-11-27 16:06:42 +00:00
fs tests: exclude renode from tests requiring unsimulated peripherals 2024-01-08 16:17:43 +00:00
input test: add a test for the kbd_matrix_state command 2023-12-08 20:16:39 +00:00
ipc tests/subsys/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
jwt tests: Switch from NEWLIB_LIBC to REQUIRES_FULL_LIBC 2023-10-25 08:32:06 +02:00
llext llext: fix read-only extension image 2023-12-01 10:08:12 -05:00
logging tests: logging: add log_blocking testsuite to demonstrate bugfix 2023-12-04 09:15:29 -05:00
mem_mgmt tests: move shared_multi_heap to tests/lib 2023-12-13 17:27:54 -05:00
mgmt ztest: shell: add shell support 2024-01-09 09:58:57 +01:00
modbus tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
modem tests: mode: Modem CMUX DTE / DCE test 2023-12-08 20:17:58 +00:00
openthread tests/subsys/openthread: Enable for native_sim 2023-11-27 16:06:42 +00:00
pm PM: Add testing pm_device_state_str function. 2024-01-05 14:47:14 -05:00
portability tests/subsys/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
rtio/rtio_api tests/subsys/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
sd tests: add test for SDIO subsystem 2023-11-06 19:01:08 -05:00
settings tests/subsys/settings/functional/*: Switch to native_sim 2023-11-22 09:53:20 +01:00
shell tests: shell: shell_uart: add test for multi-instance 2023-12-06 11:27:20 -08:00
sip_svc tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
storage tests/subsys/storage/*: Switch to native_sim 2023-11-22 09:54:03 +01:00
testsuite/fff_fake_contexts tests/subsys/testsuite/fff_fake_contexts: Enable for native_sim 2023-11-27 16:06:42 +00:00
tracing/tracing_api tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
usb usb: device_next: uac2: interface descriptor macros 2023-12-15 14:24:44 +01:00
zbus tests: zbus: add HLP priority boost tests 2024-01-04 09:41:54 +01:00