zephyr/include
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
..
app_memory
arch modules: cmsis: add core_ca inclusion for aarch32 Cortex-A SoCs 2021-10-28 15:26:50 +02:00
audio
bluetooth Bluetooth: ATT: Fix typo in defines 2021-10-23 20:39:36 -04:00
canbus modules: canopennode: move glue code to modules directory 2021-07-01 13:32:18 -04:00
console doc: Fix a few typos in docs/comments/messages 2021-09-03 06:06:59 -04:00
crypto
data data: json: include missing toolchain.h 2021-10-04 10:18:49 -05:00
debug kernel: remove object tracing 2021-05-07 22:10:21 -04:00
devicetree spi: helper macro for constructing CS gpio_dt_spec 2021-10-05 19:24:18 -04:00
dfu dfu: boot: Add implementation for multi-image swap type check 2021-08-26 09:13:13 -04:00
disk
display toolchain: migrate iterable sections calls to the external API 2021-08-12 17:47:04 -04:00
drivers drivers: can: Add get_max_filters API 2021-10-28 13:56:58 -04:00
dt-bindings drivers: ethernet: xlnx_gem: Zynq-7000 support for the Xilinx GEM driver 2021-10-28 15:26:50 +02:00
fs subsys/fs/nvs: nvs_write return missing documentation 2021-09-28 06:15:20 -04:00
ipc ipc: ipc_service: Rework multi-instance backend. 2021-10-11 20:58:09 -04:00
kernel kernel: add support for event objects 2021-10-16 06:27:10 -04:00
linker ztest: Add register functionality 2021-10-28 16:57:51 -04:00
logging comments: minor typo fixes 2021-10-05 07:18:13 -04:00
lorawan lorawan: port oriented downlink callbacks 2021-04-30 13:05:10 -05:00
mgmt subsys/mgmt/hawkbit: Prevent multiple instances of hawkbit_probe 2021-08-18 20:10:21 -04:00
modbus
multi_heap multi_heap: Introduce shared multi-heap memory pool manager 2021-10-12 07:44:46 -04:00
net net: coap: Add coap_next_block_for_option function 2021-10-27 13:46:19 -04:00
pm pm: device: Simplify device pm states 2021-10-26 15:02:15 -05:00
portability cmsis_rtos_v1: fix thread instances management. 2021-09-09 12:01:06 -04:00
posix ARC: MWDT: workaround for double clockid_t definition 2021-08-13 13:43:19 -05:00
power pm: deprecate power/power.h header 2021-05-05 18:35:49 -04:00
random
settings toolchain: migrate iterable sections calls to the external API 2021-08-12 17:47:04 -04:00
shell shell: Add __printf_like to shell_fprintf 2021-10-14 16:32:19 -04:00
stats pm: Use stats subsys for tracking system states 2021-10-17 10:56:21 -04:00
storage
sys Docs: Clarification of CONTAINER_OF 2021-10-28 10:19:39 -04:00
task_wdt task_wdt: fix silent init failures 2021-10-01 15:21:32 +02:00
timing
toolchain ARC: MWDT: enable back BUILD_ASSERT macro 2021-10-20 07:24:03 -04:00
tracing tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
usb include: usb: fix hid feature item typo 2021-09-28 19:22:06 +02:00
zephyr
cache.h cache: Do not warn on unused parameters 2021-05-25 07:05:22 -05:00
device.h pm: rename pm_control(_fn) to (pm_)action_cb 2021-10-14 07:55:55 -04:00
devicetree.h devicetree: add devicetree/pinctrl.h 2021-08-25 18:09:00 -04:00
ec_host_cmd.h
emul.h
exc_handle.h
fatal.h
init.h init: tweak Zephyr .init* section name conflicting with toolchain 2021-04-26 14:15:43 -04:00
irq_nextlevel.h
irq_offload.h irq_offload: Remove ifdef from the api 2021-04-29 14:50:35 +02:00
irq.h doc: fix display of the ISR_DIRECT_DECLARE example usage 2021-05-07 20:52:02 -04:00
kernel_includes.h kernel: move internal headers into include/kernel 2021-06-16 20:38:55 -04:00
kernel_structs.h kernel/sched: Add CONFIG_CPU_MASK_PIN_ONLY 2021-09-28 20:15:05 -04:00
kernel_version.h
kernel.h kernel: add support for event objects 2021-10-16 06:27:10 -04:00
ptp_clock.h
shared_irq.h
smf.h lib: smf: Add State Machine Framework 2021-10-04 20:33:11 -04:00
spinlock.h
sw_isr_table.h
sys_clock.h
syscall_handler.h
syscall.h kernel: syscall: pin generated inline functions 2021-08-26 21:16:22 -04:00
timeout_q.h
toolchain.h armclang: adding toolchain/armclang.h header 2021-08-30 08:54:23 -04:00
wait_q.h kernel: move internal headers into include/kernel 2021-06-16 20:38:55 -04:00
zephyr.h