Browse Source

tests: adapt libfixmath tests for change

pr/spi.typo
Martine Lenders 7 years ago
parent
commit
39fb0ae19a
  1. 1
      tests/libfixmath/Makefile
  2. 2
      tests/libfixmath_unittests/Makefile
  3. 8
      tests/libfixmath_unittests/main.c

1
tests/libfixmath/Makefile

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

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

8
tests/libfixmath_unittests/main.c

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

Loading…
Cancel
Save