tests: move util 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
1caab558a1
commit
50d5e37b8a
6 changed files with 6 additions and 10 deletions
|
@ -4,7 +4,6 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
|
||||||
#include <sys/util.h>
|
#include <sys/util.h>
|
||||||
|
|
||||||
u8_t u8_to_dec(char *buf, u8_t buflen, u8_t value)
|
u8_t u8_to_dec(char *buf, u8_t buflen, u8_t value)
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.13.1)
|
|
||||||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
||||||
project(lib_sys_util_tests)
|
|
||||||
|
|
||||||
FILE(GLOB app_sources src/*.c)
|
|
||||||
target_sources(app PRIVATE ${app_sources})
|
|
|
@ -1 +0,0 @@
|
||||||
CONFIG_ZTEST=y
|
|
5
tests/unit/util/CMakeLists.txt
Normal file
5
tests/unit/util/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
project(util)
|
||||||
|
set(SOURCES main.c ../../../lib/os/dec.c)
|
||||||
|
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
|
@ -1,3 +1,4 @@
|
||||||
tests:
|
tests:
|
||||||
libraries.sys.util.dec:
|
libraries.sys.util.dec:
|
||||||
tags: lib_sys_util_tests
|
tags: lib_sys_util_tests
|
||||||
|
type: unit
|
Loading…
Add table
Add a link
Reference in a new issue