From 39fb0ae19af199539a474e4b240c4ce020adc452 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Thu, 12 May 2016 16:39:43 +0200 Subject: [PATCH] tests: adapt libfixmath tests for change --- tests/libfixmath/Makefile | 1 + tests/libfixmath_unittests/Makefile | 2 ++ tests/libfixmath_unittests/main.c | 8 +++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/libfixmath/Makefile b/tests/libfixmath/Makefile index f589677d6..5032a5389 100644 --- a/tests/libfixmath/Makefile +++ b/tests/libfixmath/Makefile @@ -2,5 +2,6 @@ APPLICATION = libfixmath include ../Makefile.tests_common USEPKG += libfixmath +USEMODULE += libfixmath include $(RIOTBASE)/Makefile.include diff --git a/tests/libfixmath_unittests/Makefile b/tests/libfixmath_unittests/Makefile index 5899573b4..bd7ea34b2 100644 --- a/tests/libfixmath_unittests/Makefile +++ b/tests/libfixmath_unittests/Makefile @@ -8,6 +8,8 @@ BOARD_BLACKLIST := arduino-mega2560 # The MSP boards don't feature round(), exp(), and log(), which are used in the unittests BOARD_BLACKLIST += chronos msb-430 msb-430h telosb wsn430-v1_3b wsn430-v1_4 z1 +BOARD_INSUFFICIENT_MEMORY := weio + USEMODULE += libfixmath-unittests ifneq (,$(filter native qemu-i386,$(BOARD))) diff --git a/tests/libfixmath_unittests/main.c b/tests/libfixmath_unittests/main.c index 6e8894c67..c0843f2c4 100644 --- a/tests/libfixmath_unittests/main.c +++ b/tests/libfixmath_unittests/main.c @@ -29,10 +29,16 @@ */ #include +#include "libfixmath-unittests.h" + +#define RUN(x) if (x() != 0) { return 1; } int main(void) { -#include "fix16_unittests.inc" + RUN(fix16_exp_unittests); + RUN(fix16_macros_unittests); + RUN(fix16_str_unittests); + RUN(fix16_unittests); puts("All tests executed."); return 0;