zephyr/subsys
Yuval Peress dee79d2b66 ztest: Add register functionality
Add new functionality to ztest to improve test modularity. The two
primary new entry points are:
* ztest_register_test_suite
* ztest_run_registered_test_suites

When registering a new test suite, users provide the name as well as
an optional predicate used to filter the tests for each run. Using NULL
as the predicate ensures that the test is run exactly once (after which
it is automatically filtered from future runs).

Calls to ztest_run_registered_test_suites take a state pointer as an
argument. This allows the the pragma functions to decide whether the
test should be run.

The biggest benefit of this system (other than the ability to filter
tests and maintain a larger test state) is the ability to better
modularize the test source code. Instead of all the various tests
having to coordinate and the main function having to know which tests
to run, each source file manages registering its own test
suite and handling the conditions for running the suite.

Signed-off-by: Yuval Peress <peress@chromium.org>
2021-10-28 16:57:51 -04:00
..
bluetooth Bluetooth: ISO: Fix typo in hci_le_cis_estabilished 2021-10-28 10:37:34 -04:00
canbus kconfig: canbus: experimental settings now uses select EXPERIMENTAL 2021-10-22 13:59:21 +02:00
console console: Kconfig: Remove EXPERIMENTAL marker 2021-10-22 09:46:22 -04:00
cpp ARC: MWDT: get rid of MWDT startup libs 2021-09-01 17:08:32 -04:00
debug kconfig: debug: experimental settings now uses select EXPERIMENTAL 2021-10-25 10:46:48 +02:00
demand_paging demand_paging: eviction/nru: fix incorrect dirty bit return val 2021-09-20 19:43:02 -04:00
dfu dfu: boot: Add implementation for multi-image swap type check 2021-08-26 09:13:13 -04:00
disk
emul emul: Add data and parent pointers to emulators 2021-10-05 19:21:39 -04:00
fb
fs fs/shell: Fix formatting for output of ssize_t variable 2021-10-28 11:19:04 +02:00
ipc ipc: ipc_service: Rework multi-instance backend. 2021-10-11 20:58:09 -04:00
jwt jwt: mbedTLS requires csprng 2021-10-07 14:02:40 -05:00
logging logging: rtt: Fix compilation error when multithreading disable 2021-10-19 23:06:20 -04:00
lorawan kconfig: lorawan: experimental settings now uses select EXPERIMENTAL 2021-10-25 10:46:48 +02:00
mgmt mgmt/mcumgr: Add Kconfig option to select number of supported images 2021-10-05 19:20:51 -04:00
modbus modbus: copy trans_id & proto_id to response header 2021-08-26 06:56:25 -04:00
net net: coap: Add coap_next_block_for_option function 2021-10-27 13:46:19 -04:00
pm pm: adjust PM_DEVICE prompt 2021-10-28 13:00:13 +02:00
portability cmsis_rtos_v1: fix thread instances management. 2021-09-09 12:01:06 -04:00
random random: Fix sys_csrand_get build condition 2021-10-07 14:02:40 -05:00
settings toolchain: migrate iterable sections calls to the external API 2021-08-12 17:47:04 -04:00
shell kconfig: shell: experimental settings now uses select EXPERIMENTAL 2021-10-25 10:46:48 +02:00
stats stats: fixed implicit integer sign extension in stats_get_off() 2021-10-28 15:15:56 -04:00
storage storage/flash_map: Separate layout and integrity functions 2021-10-21 17:18:44 -04:00
task_wdt task_wdt: ensure hw wdt is started before being fed 2021-10-21 07:35:11 -04:00
testsuite ztest: Add register functionality 2021-10-28 16:57:51 -04:00
timing
tracing tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
usb usb: function_rndis: do not force USB_COMPOSITE_DEVICE for IAD 2021-10-27 11:56:00 +02:00
CMakeLists.txt usb: remove Kconfig option CONFIG_USB 2021-08-03 19:00:12 -04:00
Kconfig