diff options
author | Tomasz Michalec <tm@semihalf.com> | 2021-04-14 11:45:50 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-16 13:30:00 +0000 |
commit | 81000c24119562a425500a881950155b47a41af2 (patch) | |
tree | c8770b26307dccc963a0dffcbc978d009db8b130 /test/cbi.c | |
parent | 862e4d0da76cc65bce9e934059c40ac7e64a94c5 (diff) | |
download | chrome-ec-81000c24119562a425500a881950155b47a41af2.tar.gz |
zephyr: test_util: Add TEST_SUITE macro
TEST_SUITE macro allows to define Zephyr test as test suite instead of
test_main(). Test suite can be used as part of bigger test.
BUG=b:185205123
BRANCH=none
TEST=zmake testall
TEST=make runhosttests
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I834ccf38e256c918623e96bb39597a0b22a874c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2825910
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'test/cbi.c')
-rw-r--r-- | test/cbi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cbi.c b/test/cbi.c index 2096ebce5a..222128ce8d 100644 --- a/test/cbi.c +++ b/test/cbi.c @@ -268,7 +268,7 @@ DECLARE_EC_TEST(test_bad_crc) return EC_SUCCESS; } -TEST_MAIN() +TEST_SUITE(test_suite_cbi) { ztest_test_suite(test_cbi, ztest_unit_test_setup_teardown(test_uint8, test_setup, |