Browse Source

Fix math tests

sbg
Lorenz Meier 9 years ago
parent
commit
05840535f1
  1. 2
      src/systemcmds/tests/CMakeLists.txt
  2. 2
      src/systemcmds/tests/test_hrt.c
  3. 3
      src/systemcmds/tests/test_time.c
  4. 8
      src/systemcmds/tests/tests_main.c

2
src/systemcmds/tests/CMakeLists.txt

@ -58,7 +58,6 @@ set(srcs @@ -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( @@ -73,6 +72,7 @@ px4_add_module(
STACK 60000
COMPILE_FLAGS
-Wframe-larger-than=6000
-Wno-float-equal
-O0
SRCS ${srcs}
DEPENDS

2
src/systemcmds/tests/test_hrt.c

@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
****************************************************************************/
#include <px4_config.h>
#include <px4_posix.h>
#include <sys/types.h>
#include <sys/time.h>

3
src/systemcmds/tests/test_time.c

@ -37,7 +37,8 @@ @@ -37,7 +37,8 @@
****************************************************************************/
#include <px4_config.h>
#include <px4_defines.h>
#include <px4_posix.h>
#include <sys/types.h>
#include <stdio.h>

8
src/systemcmds/tests/tests_main.c

@ -50,11 +50,11 @@ @@ -50,11 +50,11 @@
#include <errno.h>
#include <arch/board/board.h>
//#include <nuttx/spi.h>
#include <systemlib/perf_counter.h>
// Not using Eigen at the moment
#define TESTS_EIGEN_DISABLE
#include "tests.h"
/****************************************************************************
@ -113,7 +113,9 @@ const struct { @@ -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}
};

Loading…
Cancel
Save