zephyr/tests
Yuval Peress 84dfb8edf8 ztest: allow asserts anywhere
Updates the ztest_test_fail() function to allow failures in setup.
When executed, a failed assert will fail every test in the suite owning
the setup function. This was verified by adding a suite which asserts
in the setup function and has a test that should pass. During
exeuction, ztest marks the test as failing.

In order to verify exection I also added 2 new APIs:
- ZTEST_EXPECT_FAIL(suite_name, test_name)
- ZTEST_EXPECT_SKIP(suite_name, test_name)

Signed-off-by: Yuval Peress <peress@google.com>
2022-08-09 13:30:15 -04:00
..
application_development test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
arch tests: arm: Increase main stack size with no optimizations 2022-08-08 11:17:01 -04:00
benchmarks test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
bluetooth doxygen: remove redundant usages of def 2022-08-09 12:29:28 +02:00
boards test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
boot/uefi tests: migrate includes to <zephyr/...> 2022-05-06 20:02:14 +02:00
cmake/config_dir
crypto test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
drivers esp32: counter: tests: remove deprecated conf file 2022-08-08 13:00:38 -05:00
kernel tests: kernel: common: adjust fudge factors 2022-08-08 10:44:41 +02:00
lib devicetree.h: DT_FOREACH_NODE, DT_FOREACH_STATUS_OKAY_NODE 2022-08-08 10:44:41 +02:00
misc test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
net tests: net: socket: Disable unstable tests for mps2_an385 2022-08-08 22:18:23 +09:00
posix test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
subsys tests: subsys: modbus cases move to new ztest API 2022-08-08 10:51:17 +02:00
unit tests: unit: util: Add test for IS_EQ 2022-08-04 17:35:39 +01:00
ztest ztest: allow asserts anywhere 2022-08-09 13:30:15 -04:00