1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #10188 from smlng/pr/tests/pkg_cn-cbor

tests/cn-cbor: move from unittests to regular test
This commit is contained in:
Martine Lenders 2018-11-27 23:51:11 +01:00 committed by GitHub
commit 85b9be71da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 12 deletions

View File

@ -0,0 +1,32 @@
include ../Makefile.tests_common
BOARD_BLACKLIST := arduino-duemilanove \
arduino-mega2560 \
arduino-uno \
chronos \
jiminy-mega256rfr2 \
mega-xplained \
msb-430 \
msb-430h \
telosb \
waspmote-pro \
wsn430-v1_3b \
wsn430-v1_4 \
z1 \
#
USEPKG += cn-cbor
USEMODULE += embunit
USEMODULE += fmt
USEMODULE += memarray
# Tests will fail on platforms <64 bit if not set.
# Workaround for missing overflow detection in cn-cbor.
CFLAGS += -DCBOR_NO_LL
# Skips test cases for floating point data types.
# CFLAGS += -DCBOR_NO_FLOAT
TEST_ON_CI_WHITELIST += all
include $(RIOTBASE)/Makefile.include

View File

@ -197,7 +197,9 @@ TestRef test_cn_cbor(void)
return (TestRef) & tests_cn_cbor;
}
void tests_cn_cbor(void)
int main(void)
{
TESTS_START();
TESTS_RUN(test_cn_cbor());
TESTS_END();
}

View File

@ -0,0 +1,18 @@
#!/usr/bin/env python3
# Copyright (C) 2017 Freie Universität Berlin
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import sys
from testrunner import run
def testfunc(child):
child.expect(r'OK \(\d+ tests\)')
if __name__ == "__main__":
sys.exit(run(testfunc))

View File

@ -1,8 +0,0 @@
include $(RIOTBASE)/Makefile.base
# Tests will fail on platforms <64 bit if not set.
# Workaround for missing overflow detection in cn-cbor.
CFLAGS += -DCBOR_NO_LL
# Skips test cases for floating point data types.
# CFLAGS += -DCBOR_NO_FLOAT

View File

@ -1,3 +0,0 @@
USEPKG += cn-cbor
USEMODULE += fmt
USEMODULE += memarray