tests: adapt libfixmath tests for change

This commit is contained in:
Martine Lenders 2016-05-12 16:39:43 +02:00
parent ee41b98ee9
commit 39fb0ae19a
3 changed files with 10 additions and 1 deletions

View File

@ -2,5 +2,6 @@ APPLICATION = libfixmath
include ../Makefile.tests_common
USEPKG += libfixmath
USEMODULE += libfixmath
include $(RIOTBASE)/Makefile.include

View File

@ -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)))

View File

@ -29,10 +29,16 @@
*/
#include <stdio.h>
#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;