Commit abf1d36e authored by Anas Nashif's avatar Anas Nashif
Browse files

tests: move crc to a unit test



Move to a unit test, no need to build this for every platform we have.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 48c33548
Loading
Loading
Loading
Loading

tests/lib/crc/CMakeLists.txt

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
# 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})

tests/lib/crc/prj.conf

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
CONFIG_ZTEST=y
+5 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

project(crc)
set(SOURCES main.c)
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
+5 −0
Original line number Diff line number Diff line
@@ -6,6 +6,11 @@

#include <ztest.h>
#include <sys/crc.h>
#include "../../../lib/os/crc8_sw.c"
#include "../../../lib/os/crc16_sw.c"
#include "../../../lib/os/crc32_sw.c"
#include "../../../lib/os/crc7_sw.c"


void test_crc32_ieee(void)
{
+1 −0
Original line number Diff line number Diff line
tests:
  misc.crc:
    tags: net crc
    type: unit