From 05840535f183b8b1f12e72869f9fe9face51df03 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 26 Nov 2015 14:14:41 +0100 Subject: [PATCH] Fix math tests --- src/systemcmds/tests/CMakeLists.txt | 2 +- src/systemcmds/tests/test_hrt.c | 2 +- src/systemcmds/tests/test_time.c | 3 ++- src/systemcmds/tests/tests_main.c | 8 +++++--- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/systemcmds/tests/CMakeLists.txt b/src/systemcmds/tests/CMakeLists.txt index 25cad8505c..e9cb903477 100644 --- a/src/systemcmds/tests/CMakeLists.txt +++ b/src/systemcmds/tests/CMakeLists.txt @@ -58,7 +58,6 @@ set(srcs test_rc.c test_conv.cpp test_mount.c - test_eigen.cpp ) if(${OS} STREQUAL "nuttx") @@ -73,6 +72,7 @@ px4_add_module( STACK 60000 COMPILE_FLAGS -Wframe-larger-than=6000 + -Wno-float-equal -O0 SRCS ${srcs} DEPENDS diff --git a/src/systemcmds/tests/test_hrt.c b/src/systemcmds/tests/test_hrt.c index 8bc0888122..fe3c58af6a 100644 --- a/src/systemcmds/tests/test_hrt.c +++ b/src/systemcmds/tests/test_hrt.c @@ -37,7 +37,7 @@ ****************************************************************************/ #include - +#include #include #include diff --git a/src/systemcmds/tests/test_time.c b/src/systemcmds/tests/test_time.c index d89f90c683..c67f11f467 100644 --- a/src/systemcmds/tests/test_time.c +++ b/src/systemcmds/tests/test_time.c @@ -37,7 +37,8 @@ ****************************************************************************/ #include - +#include +#include #include #include diff --git a/src/systemcmds/tests/tests_main.c b/src/systemcmds/tests/tests_main.c index e16e0adb56..7c7cbeb28f 100644 --- a/src/systemcmds/tests/tests_main.c +++ b/src/systemcmds/tests/tests_main.c @@ -50,11 +50,11 @@ #include #include - -//#include - #include +// Not using Eigen at the moment +#define TESTS_EIGEN_DISABLE + #include "tests.h" /**************************************************************************** @@ -113,7 +113,9 @@ const struct { #ifndef TESTS_MATHLIB_DISABLE {"mathlib", test_mathlib, 0}, #endif +#ifndef TESTS_EIGEN_DISABLE {"eigen", test_eigen, OPT_NOJIGTEST}, +#endif {"help", test_help, OPT_NOALLTEST | OPT_NOHELP | OPT_NOJIGTEST}, {NULL, NULL, 0} };