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:
parent
d928ce687c
commit
24032ac9ae
11
tests/pkg_heatshrink/Makefile
Normal file
11
tests/pkg_heatshrink/Makefile
Normal 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
|
@ -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;
|
||||
}
|
18
tests/pkg_heatshrink/tests/01-run.py
Executable file
18
tests/pkg_heatshrink/tests/01-run.py
Executable 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))
|
@ -1 +0,0 @@
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1 +0,0 @@
|
||||
USEPKG += heatshrink
|
Loading…
Reference in New Issue
Block a user