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:
Anas Nashif 2019-09-25 13:58:09 -04:00
commit 1caab558a1
5 changed files with 22 additions and 3 deletions

View file

@ -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

View file

@ -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),

View 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)

View file

@ -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);
}

View file

@ -0,0 +1,4 @@
tests:
utilities.intmath:
tags: util intmath
type: unit