David Sidrane
93bc8f6467
Combined ifdess and made positive logic
...
We still allow CONFIG_ARCH_BOARD_SITL in the code base, but
use positive logic and less #ifdefs
2017-01-21 11:45:36 +01:00
David Sidrane
5d263776f2
Placed dependancy on BOARD_USES_PX4IO not path (PX4IO_DEVICE_PATH)
...
Code was conditionaly included based on #define PX4IO_DEVICE_PATH
in drivers/drv_gpio.h depanedent on board #ifdef CONFIG_ARCH_BOARDxxxx
Now that dependancy comes from board_common.h as BOARD_USES_PX4IO defined
when a board config provides PX4IO_SERIAL_DEVICE.
2017-01-21 11:45:36 +01:00
Beat Küng
e7db0ed098
test_mixer & mixer: use memmove instead of memcpy
...
Both, src & dst use the same array, thus potentially overlapping.
Behavior of memcpy in that case is undefined.
2017-01-18 18:23:42 +01:00
Lorenz Meier
b6e18a1479
Mixer test: More instrumentation to catch repro cases in CI
2017-01-14 20:42:54 +01:00
Lorenz Meier
26625b3a5d
Servo test: Fix resource leak
2017-01-14 07:47:03 -08:00
Lorenz Meier
a905babe95
PPM LoopbackTest: Fix resource leak
2017-01-14 07:47:03 -08:00
Lorenz Meier
b9e32d7a34
mixer test: Fix string handling
...
Some strings were not enforcing NUL termination.
2017-01-14 07:47:03 -08:00
Lorenz Meier
6927fcb5c0
Mixer test: Fix string termination corner case
2017-01-14 07:47:03 -08:00
Daniel Agar
056cd30629
Servo test: fix style
2017-01-12 03:02:05 -05:00
Lorenz Meier
61d7f22aba
Servo test: Ensure we only close an open FD
2017-01-12 02:31:15 +01:00
Andreas Antener
35740b0b59
Mixer test: fix paths for nuttx
2017-01-03 20:32:33 -05:00
Lorenz Meier
3229c4183a
Mixer test: Condition strncpy properly
2017-01-03 20:32:33 -05:00
Lorenz Meier
9e95d88574
Use system define for path length buffer
2017-01-03 20:32:33 -05:00
Lorenz Meier
c6b6d04a19
UART tests: Move shell and fix config restore command
2017-01-03 20:32:33 -05:00
Lorenz Meier
0d5089e3bf
Mixer test: Improve portability
2017-01-03 20:32:33 -05:00
Lorenz Meier
5247f17576
Mixer test: use real defines from IO firmware
...
We use the real defines now and test them against every mixer on the system. This means we should catch transfer errors now before even hitting master.
2017-01-03 20:32:33 -05:00
Lorenz Meier
d0dbddea1b
Extend mixer test case with complex mixer
2017-01-03 20:32:33 -05:00
Lorenz Meier
0810bcfe8e
Polish mixer test, remove any too verbose output
2017-01-03 20:32:33 -05:00
Lorenz Meier
c27728a7aa
Test VTOL test mixers
2017-01-03 20:32:33 -05:00
Lorenz Meier
fb8243d5e1
Mixer test: Fix test, failing right now but showing the real issues
2017-01-03 20:32:33 -05:00
Beat Küng
000d965a5e
fix test_uart_loopback: 0 is a valid file descriptor
2017-01-03 14:44:45 +01:00
Lorenz Meier
9f3fe2a802
Fix unit tests leaking resources
...
This was harmless but none the less is not good style and needs fixing.
2017-01-03 14:44:45 +01:00
Daniel Agar
28971caaf3
partially restore mavlink_tests
2017-01-02 10:14:41 +01:00
Daniel Agar
74231e6656
split tests for SITL ctest
2017-01-02 10:14:41 +01:00
David Sidrane
b7521e1b38
Adding Test for sending break on u[s]arts
2016-12-21 08:34:22 +01:00
David Sidrane
c9f10107c0
Nuttx Upgrade:Adds sem_setprotocol
2016-12-21 08:34:21 +01:00
Lorenz Meier
92c35f26be
Tests: Correct use of unsubscribe
2016-12-19 20:39:03 +01:00
Mark Whitehorn
86252e19e6
clean up other build targets
2016-12-10 12:56:39 +01:00
Bartosz Wawrzacz
619efa7b45
[PX4IO/PWM driver] Added trim values to the PWM output drivers
2016-12-10 12:56:39 +01:00
Mark Whitehorn
9603794b9d
set verbose flag for Dcm.renormalize test
2016-11-05 11:05:25 +01:00
Mark Whitehorn
fc73ab5e40
add unit test for Dcm.renormalize()
2016-11-05 11:05:25 +01:00
David Sidrane
86ec703620
Left test_dataman out by default - as it was prior
2016-10-18 00:23:58 +02:00
David Sidrane
bb71aa5b64
Revive test_dataman.c
2016-10-18 00:23:58 +02:00
Andreas Antener
9a219da9c2
Refactored cross sphere line tracking and added a unittest to verify correct operation
2016-10-10 23:05:44 +02:00
Julian Oes
8ff237c69f
Remove size optimization for individual modules
...
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Lorenz Meier
cf671b5134
Fix tests and re-introduce tests into build
...
Code style fix
2016-09-27 11:56:49 +02:00
Lorenz Meier
f511d49cc2
Improvements to SITL to make paths more flexible. ( #5181 ) ( #5255 )
...
* Path cleanup for SITL.
* Restructured sitl scripts dir.
* Set integration tests to use ekf2 for vtol.
* Fix sitl paths for mac.
2016-08-25 21:47:45 +02:00
Lorenz Meier
7579ebf4e8
Fix failing mac test
2016-08-19 22:19:05 +02:00
James Goppert
818840b576
Path cleanup, low impact changes ( #5340 )
...
* Low impact changes from path_cleanup branch.
This is a step towards minimizing the diff with path_cleanup branch.
* Update ecl.
* Revert matrix update.
* Revert ecl and matrix.
* Update sitl gazebo.
* Revert sitl_gazebo and matrix changes.
2016-08-18 15:37:23 -04:00
Lorenz Meier
a52d0ca00a
Remove hysteresis tests on Mac OS
2016-08-12 13:53:02 +02:00
Daniel Agar
12a5ce7a0a
temporarily disable uorb test on OSX ( #5280 )
2016-08-08 20:59:24 -04:00
Lorenz Meier
e24d18f810
Hysteresis test: Relax time for all tests for OS X CI system
2016-08-07 14:05:03 +02:00
Lorenz Meier
ead8e31de4
Hysteresis test: Fix for Mac OS CI
2016-08-07 14:05:03 +02:00
Lorenz Meier
7b5917567a
Fix Mixer test for OS X
2016-08-07 14:05:03 +02:00
Lorenz Meier
102f5b54d7
Revert "Improvements to SITL to make paths more flexible. ( #5181 )"
...
This reverts commit 699b6a2cb3 .
2016-08-05 21:29:49 +02:00
James Goppert
699b6a2cb3
Improvements to SITL to make paths more flexible. ( #5181 )
2016-08-05 06:23:59 -04:00
Julian Oes
0d80a77e46
unit_tests: move hysteresis test to new framework
2016-07-30 12:26:56 +02:00
Lorenz Meier
6ab9dc0acf
Testing cleanup from Daniel Agar
2016-07-29 13:49:14 +02:00
Lucas De Marchi
18330f7ab7
Move __STDC_FORMAT_MACROS to build system
...
__STDC_FORMAT_MACROS changes the behavior of inttypes.h to allow
defining format macros for printf-like functions. It needs to be defined
before any include is done, otherwise due to include chains and header
guards it may not take effect.
Instead of having to define it everywhere it is used, move the define to the
build system. Also update ecl and DriverFramework submodules to deal with the
changed definitions.
2016-07-10 16:31:36 +02:00
Lorenz Meier
7398164fcc
Updated PX4 use / API of low level GPIO and other hardware-centric system facilities
2016-05-28 14:56:17 +02:00