zephyr/include
Yuval Peress ab1caef8c3 ztest: Update ztest with more powerful testing APIs
1. Test suites in prior ztest serve no purpose other than logical
ordering of tests into a named-group. Move the construct of setup and
teardown into the test suite and away from individual tests.
Additionally, add the constructs of before/after to the test suites.
This model more closely resembels other testing frameworks such as gTest
and Junit.
2. Test can be added to a suite by using ZTEST() or ZTEST_F() where _F
stands for fixture. In the case where _F is used, the argument `this`
will be provided with the type `struct suite_name##_fixture*`. Again,
this models other modern testing frameworks and allows the test to
directly access the already set up data related to the test suite.
3. Add the concept of test rules (from Junit). Rules are similar to the
before/after functions of the test suites but are global and run on all
suites. An example of a test rule can be to check that nothing was
logged to ERROR. The rule can cause the test to fail if anything was
logged to ERROR during an integration test. Another example would be a
rule that verifies that tests ran within some defined timeout.

Signed-off-by: Yuval Peress <peress@google.com>
2022-01-11 11:47:30 +01:00
..
app_memory kernel: mem_domain: remove extra slash in Z_PROGBITS_SYM 2021-12-05 10:22:26 -05:00
arch arch: riscv: pmp: simplify pmp region number computation 2022-01-11 11:47:03 +01:00
audio
bluetooth include: Bluetooth: Add LE Supported Features type to GAP 2022-01-11 11:45:27 +01:00
canbus canbus: isotp: fix net_buf usage in recv function 2021-11-09 18:12:08 +02:00
console doc: Fix a few typos in docs/comments/messages 2021-09-03 06:06:59 -04:00
crypto
data json: Add top-level array decoding support 2021-12-01 12:21:19 -05:00
debug debug: thread analyzer to display runtime stats 2022-01-10 10:38:06 -05:00
devicetree drivers: can: remove DT_CHOSEN_ZEPHYR_CANBUS_LABEL macro 2021-11-09 11:19:50 +01: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: rename API functions for better consistency 2022-01-10 10:44:37 +01:00
dt-bindings drivers: clock_control: lpc: syscon: add MCAN clock support 2022-01-10 12:00:20 +01:00
fs fs: Add FS_MOUNT_FLAG_USE_DISK_ACCESS flag 2021-12-06 08:08:26 -05:00
ipc ipc_service: Extend RPMsg structs and misc fixes 2021-11-22 23:03:23 -05:00
kernel kernel/sched: enable/disable runtime stats 2022-01-10 10:38:06 -05:00
linker ztest: Update ztest with more powerful testing APIs 2022-01-11 11:47:30 +01:00
logging logging: Add option to have tag which is prepended to all messages 2022-01-04 14:57:31 -06:00
lorawan
mgmt mgmt/mcumgr: Correct packet length information 2021-11-30 11:44:26 +01:00
modbus
multi_heap multi_heap: Introduce shared multi-heap memory pool manager 2021-10-12 07:44:46 -04:00
net drivers: can: rename API functions for better consistency 2022-01-10 10:44:37 +01:00
pm pm: policy: return a reference to the next state 2022-01-11 10:46:20 +01:00
portability lib/os: bitarray: introduce SYS_BITARRAY_DEFINE_STATIC() 2021-11-24 14:22:23 -05:00
posix posix: semaphore: use ZRESTRICT 2021-11-05 13:29:31 +01:00
random
settings toolchain: migrate iterable sections calls to the external API 2021-08-12 17:47:04 -04:00
shell lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
stats stats: i2c: I2C stats 2021-12-04 07:22:56 -05:00
storage storage/flash_map: Use larger type for alignment 2021-12-30 16:32:02 -05:00
sys sys: time_units: add missing include 2022-01-11 10:46:20 +01:00
task_wdt task_wdt: fix silent init failures 2021-10-01 15:21:32 +02:00
timing
toolchain include: Add a macro to check pointer alignment 2021-12-10 14:08:59 +01:00
tracing kernel: pipes: add pipe flush routines 2022-01-10 12:17:14 -05:00
usb include: usb: add iterable section in ram for usb_cfg_data 2021-12-10 07:22:15 -06:00
xen xenvm: drivers: serial: add interrupt-driven API for Xen PV console 2021-12-07 12:15:38 -05:00
zephyr
cache.h
device.h device: improve (z_)device_is_ready docs 2022-01-07 10:41:23 -05:00
devicetree.h devicetree: add DT_INST_PARENT helper 2021-12-16 11:10:01 -06:00
ec_host_cmd.h
emul.h
exc_handle.h
fatal.h fatal: fix missing extern "C" 2021-12-14 11:47:13 -06:00
init.h
irq_nextlevel.h
irq_offload.h
irq.h
kernel_includes.h
kernel_structs.h kernel: extend CPU runtime stats 2022-01-10 10:38:06 -05:00
kernel_version.h
kernel.h kernel: pipes: add pipe flush routines 2022-01-10 12:17:14 -05: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
zephyr.h