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:
Anas Nashif 2019-09-25 14:14:40 -04:00
commit 50d5e37b8a
6 changed files with 6 additions and 10 deletions

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <sys/util.h>
u8_t u8_to_dec(char *buf, u8_t buflen, u8_t value)

View file

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

View file

@ -1 +0,0 @@
CONFIG_ZTEST=y

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

View file

@ -1,3 +1,4 @@
tests:
libraries.sys.util.dec:
tags: lib_sys_util_tests
type: unit