tests: crc: convert to regular test case

The special 'unittest' target has largely been supersesed by
native_posix, and converting this to a regular test will allow
us to see code coverage for the CRC functions in our coverage
reports.

Fixes: #16943

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-07-02 10:20:30 -07:00 committed by Ioannis Glaropoulos
commit eb07943b2d
5 changed files with 10 additions and 12 deletions

View file

@ -0,0 +1,8 @@
# 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(base64)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})

1
tests/lib/crc/prj.conf Normal file
View file

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

View file

@ -5,11 +5,7 @@
*/
#include <ztest.h>
#include <lib/os/crc32_sw.c>
#include <lib/os/crc16_sw.c>
#include <lib/os/crc8_sw.c>
#include <lib/os/crc7_sw.c>
#include <sys/crc.h>
void test_crc32_ieee(void)
{

View file

@ -1,5 +1,3 @@
tests:
misc.crc:
tags: net crc
timeout: 5
type: unit

View file

@ -1,5 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
project(crc)
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)