1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/heatshrink: move from unittests to regular test

This moves tests for the heatshrink package from unittests to a regular
test, which should help to decrease binary size of unittests.
This commit is contained in:
smlng 2018-10-19 12:12:55 +02:00
parent d928ce687c
commit 24032ac9ae
5 changed files with 37 additions and 6 deletions

View File

@ -0,0 +1,11 @@
include ../Makefile.tests_common
BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove \
arduino-uno \
nucleo-f031k6 \
#
USEPKG += heatshrink
USEMODULE += embunit
include $(RIOTBASE)/Makefile.include

View File

@ -7,7 +7,7 @@
*/
/**
* @ingroup unittests
* @ingroup tests
* @{
* @file
* @brief Tests for the heatshrink compression library package
@ -106,7 +106,7 @@ static void test_heatshrink(void)
TEST_ASSERT_EQUAL_INT(_comp_uncomp((const uint8_t*)_data, strlen(_data)), 0);
}
TestRef test_heatshrink_all(void)
TestRef tests_heatshrink(void)
{
EMB_UNIT_TESTFIXTURES(fixtures) {
new_TestFixture(test_heatshrink),
@ -116,7 +116,11 @@ TestRef test_heatshrink_all(void)
return (TestRef) & HeatshrinkTest;
}
void tests_heatshrink(void)
int main(void)
{
TESTS_RUN(test_heatshrink_all());
TESTS_START();
TESTS_RUN(tests_heatshrink());
TESTS_END();
return 0;
}

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('OK \(\d+ tests\)')
if __name__ == "__main__":
sys.exit(run(testfunc))

View File

@ -1 +0,0 @@
include $(RIOTBASE)/Makefile.base

View File

@ -1 +0,0 @@
USEPKG += heatshrink