tests: adapt libfixmath tests for change
This commit is contained in:
parent
ee41b98ee9
commit
39fb0ae19a
|
@ -2,5 +2,6 @@ APPLICATION = libfixmath
|
|||
include ../Makefile.tests_common
|
||||
|
||||
USEPKG += libfixmath
|
||||
USEMODULE += libfixmath
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -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…
Reference in New Issue