Skip to content
Permalink
Browse files

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>
  • Loading branch information...
andrewboie authored and ioannisg committed Jul 2, 2019
1 parent b8d4a77 commit eb07943b2dcf83b40c3aeb2f4d3e52aebe4ad23b
@@ -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})
@@ -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

This file was deleted.

0 comments on commit eb07943

Please sign in to comment.
You can’t perform that action at this time.