Commit 48c33548 authored by Anas Nashif's avatar Anas Nashif
Browse files

tests: move base64 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 bff8f31a
Loading
Loading
Loading
Loading

tests/lib/base64/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/base64/prj.conf

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

project(base64)
set(SOURCES main.c)
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
+2 −0
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@
#include <ztest.h>
#include <sys/base64.h>

#include "../../../lib/os/base64.c"

static const unsigned char base64_test_dec[64] = {
	0x24, 0x48, 0x6E, 0x56, 0x87, 0x62, 0x5A, 0xBD,
	0xBF, 0x17, 0xD9, 0xA2, 0xC4, 0x17, 0x1A, 0x01,
+1 −0
Original line number Diff line number Diff line
tests:
  libraries.encoding:
    tags: base64
    type: unit