Browse Source

tests enable bezier and search_min

sbg
Daniel Agar 6 years ago
parent
commit
e4b3c8bcc6
  1. 2
      platforms/posix/cmake/sitl_tests.cmake
  2. 2
      src/systemcmds/tests/test_search_min.cpp
  3. 30
      src/systemcmds/tests/tests_main.c

2
platforms/posix/cmake/sitl_tests.cmake

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
# TODO: find a way to keep this in sync with tests_main
set(tests
autodeclination
bezier
bson
commander
controllib
@ -27,6 +28,7 @@ set(tests @@ -27,6 +28,7 @@ set(tests
parameters
perf
rc
search_min
servo
sf0x
sleep

2
src/systemcmds/tests/test_search_min.cpp

@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
#include <float.h>
#include <math.h>
#include "../../lib/mathlib/math/SearchMin.hpp"
#include <mathlib/math/SearchMin.hpp>
// linear function
float _linear_function(float x)

30
src/systemcmds/tests/tests_main.c

@ -68,6 +68,7 @@ const struct { @@ -68,6 +68,7 @@ const struct {
{"help", test_help, OPT_NOALLTEST | OPT_NOHELP | OPT_NOJIGTEST},
{"all", test_all, OPT_NOALLTEST | OPT_NOJIGTEST},
{"jig", test_jig, OPT_NOJIGTEST | OPT_NOALLTEST},
#ifdef __PX4_NUTTX
{"adc", test_adc, OPT_NOJIGTEST},
{"file", test_file, OPT_NOJIGTEST | OPT_NOALLTEST},
@ -81,26 +82,19 @@ const struct { @@ -81,26 +82,19 @@ const struct {
{"rc", rc_tests_main, 0},
#endif /* __PX4_NUTTX */
/* external tests */
{"commander", commander_tests_main, 0},
{"controllib", controllib_test_main, 0},
#ifndef __PX4_NUTTX
{"mavlink", mavlink_tests_main, 0},
#endif
{"sf0x", sf0x_tests_main, 0},
{"uorb", uorb_tests_main, 0},
{"hysteresis", test_hysteresis, 0},
{"mixer", test_mixer, OPT_NOJIGTEST},
{"autodeclination", test_autodeclination, 0},
{"bezier", test_bezierQuad, 0},
{"bson", test_bson, 0},
{"conv", test_conv, 0},
{"ctlmath", test_controlmath, 0},
{"dataman", test_dataman, OPT_NOJIGTEST | OPT_NOALLTEST},
{"file2", test_file2, OPT_NOJIGTEST},
{"float", test_float, 0},
{"hott_telemetry", test_hott_telemetry, OPT_NOJIGTEST | OPT_NOALLTEST},
{"hrt", test_hrt, OPT_NOJIGTEST | OPT_NOALLTEST},
{"hysteresis", test_hysteresis, 0},
{"hysteresis", test_hysteresis, 0},
{"int", test_int, 0},
{"jig_voltages", test_jig_voltages, OPT_NOALLTEST},
{"mathlib", test_mathlib, 0},
@ -109,6 +103,8 @@ const struct { @@ -109,6 +103,8 @@ const struct {
{"microbench_math", test_microbench_math, 0},
{"microbench_matrix", test_microbench_matrix, 0},
{"microbench_uorb", test_microbench_uorb, 0},
{"mixer", test_mixer, OPT_NOJIGTEST},
{"mixer", test_mixer, OPT_NOJIGTEST},
{"mount", test_mount, OPT_NOJIGTEST | OPT_NOALLTEST},
{"param", test_param, 0},
{"parameters", test_parameters, 0},
@ -119,12 +115,22 @@ const struct { @@ -119,12 +115,22 @@ const struct {
{"search_min", test_search_min, 0},
{"servo", test_servo, OPT_NOJIGTEST | OPT_NOALLTEST},
{"sleep", test_sleep, OPT_NOJIGTEST},
{"smoothz", test_smooth_z, 0},
{"tone", test_tone, 0},
{"uart_loopback", test_uart_loopback, OPT_NOJIGTEST | OPT_NOALLTEST},
{"uart_send", test_uart_send, OPT_NOJIGTEST | OPT_NOALLTEST},
{"versioning", test_versioning, 0},
{"ctlmath", test_controlmath, 0},
{"smoothz", test_smooth_z, 0},
/* external tests */
{"commander", commander_tests_main, 0},
{"controllib", controllib_test_main, 0},
#ifndef __PX4_NUTTX
{"mavlink", mavlink_tests_main, 0},
#endif
{"sf0x", sf0x_tests_main, 0},
{"uorb", uorb_tests_main, 0},
{NULL, NULL, 0}
};

Loading…
Cancel
Save