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:
parent
b8d4a77ecd
commit
eb07943b2d
5 changed files with 10 additions and 12 deletions
8
tests/lib/crc/CMakeLists.txt
Normal file
8
tests/lib/crc/CMakeLists.txt
Normal 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
1
tests/lib/crc/prj.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_ZTEST=y
|
|
@ -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)
|
||||
{
|
|
@ -1,5 +1,3 @@
|
|||
tests:
|
||||
misc.crc:
|
||||
tags: net crc
|
||||
timeout: 5
|
||||
type: unit
|
|
@ -1,5 +0,0 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
project(crc)
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue