tests: move intmath test to be unit tests
Move to a unit test, no need to build this for every platform we have. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
e9156e04b4
commit
1caab558a1
5 changed files with 22 additions and 3 deletions
|
@ -18,7 +18,6 @@ target_sources(app PRIVATE
|
|||
src/atomic.c
|
||||
src/byteorder.c
|
||||
src/clock.c
|
||||
src/intmath.c
|
||||
src/main.c
|
||||
src/timeout_order.c
|
||||
src/multilib.c
|
||||
|
|
|
@ -25,7 +25,6 @@ extern void test_sys_put_le32(void);
|
|||
extern void test_sys_get_le64(void);
|
||||
extern void test_sys_put_le64(void);
|
||||
extern void test_atomic(void);
|
||||
extern void test_intmath(void);
|
||||
extern void test_printk(void);
|
||||
extern void test_timeout_order(void);
|
||||
extern void test_clock_cycle(void);
|
||||
|
@ -119,7 +118,6 @@ void test_main(void)
|
|||
ztest_user_unit_test(test_atomic),
|
||||
ztest_unit_test(test_bitfield),
|
||||
ztest_unit_test(test_printk),
|
||||
ztest_unit_test(test_intmath),
|
||||
ztest_unit_test(test_timeout_order),
|
||||
ztest_1cpu_user_unit_test(test_clock_uptime),
|
||||
ztest_unit_test(test_clock_cycle),
|
||||
|
|
7
tests/unit/intmath/CMakeLists.txt
Normal file
7
tests/unit/intmath/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
project(base64)
|
||||
set(SOURCES
|
||||
main.c
|
||||
)
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
|
@ -98,3 +98,14 @@ void test_intmath(void)
|
|||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
void test_main(void)
|
||||
{
|
||||
ztest_test_suite(intmath,
|
||||
ztest_unit_test(test_intmath)
|
||||
);
|
||||
|
||||
ztest_run_test_suite(intmath);
|
||||
}
|
4
tests/unit/intmath/testcase.yaml
Normal file
4
tests/unit/intmath/testcase.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
tests:
|
||||
utilities.intmath:
|
||||
tags: util intmath
|
||||
type: unit
|
Loading…
Add table
Add a link
Reference in a new issue