Commit Graph

107 Commits

Author SHA1 Message Date
Julian Oes 0d80a77e46 unit_tests: move hysteresis test to new framework 2016-07-30 12:26:56 +02:00
Julian Oes f365832c0b hysteresis: we needed different hysteresis
Sometimes, we only need a histeresis in one direction.
2016-07-30 12:26:56 +02:00
Julian Oes 401d807261 systemlib: added library for hysteresis
There have been two cases where a hysteresis function wasn't working
correctly. It is therefore a good idea to abstract the hysteresis
functionality into a library.
2016-07-30 12:26:56 +02:00
Julian Oes 36299c59b4 unittests: whitespace 2016-07-30 12:26:56 +02:00
Lorenz Meier 6ab9dc0acf Testing cleanup from Daniel Agar 2016-07-29 13:49:14 +02:00
Lorenz Meier e43625cfc1 ROMFS: Clear out SITL mixers from deployed image, delete unused mixers, move test mixers to test config 2016-07-01 18:08:32 +02:00
jwilson 1091319274 Removing shmem_posix.c from the unit testing since param_shmem_test is disabled. 2016-06-22 08:57:06 +02:00
Daniel Agar 2f5357be7a travis-ci use px4io docker images (#4696) 2016-06-14 01:06:43 -04:00
Daniel Agar 9c32792017 param_test link libmsg_gen 2016-05-14 11:27:07 +02:00
Daniel Agar 69c1ce1714 WIP logger serialization 2016-05-14 11:27:07 +02:00
Daniel Agar 76387b1693 uorb autogeneration 2016-05-14 11:27:07 +02:00
Daniel Agar 51298c1eb1 remove unused 2016-05-13 13:01:42 +02:00
Daniel Agar d85e7732b4 fix param_test 2016-05-13 13:01:42 +02:00
Lorenz Meier 20a59b8886 Fix mixer testing setup 2016-04-17 18:53:50 +02:00
Lorenz Meier 349a06d03a Fix mixer test 2016-04-17 11:54:56 +02:00
Daniel Agar ce8eb0edd8 unit tests -Werror 2016-03-14 09:15:02 +01:00
Daniel Agar dcd44ea4bb unit tests use ninja and ctest 2016-03-14 09:15:02 +01:00
Daniel Agar 20ec9965ea mixer_test be less verbose so we can see the failure 2016-03-14 09:15:02 +01:00
Daniel Agar 1e2be407dd unit tests cleanup
-launch using top level make tests
-ignore generated files
2016-03-14 09:15:02 +01:00
Lorenz Meier e73ae292dc Fix unit tests 2016-03-03 10:46:45 +01:00
Lorenz Meier 5a4472b418 DSM: Destroy test data to trigger decoding fails and test recovery 2015-12-24 09:47:29 +01:00
Lorenz Meier 13606173ee Write DSM unit test 2015-12-24 09:47:29 +01:00
Lorenz Meier 64b7072eaa Add DSM decoder test 2015-12-24 09:47:29 +01:00
Lorenz Meier cda3b51bb4 Add DSM X test data 2015-12-24 09:47:29 +01:00
Lorenz Meier 7c562d57fe S.BUS test: Fix code style 2015-12-07 11:41:03 +01:00
Lorenz Meier cde803c599 Introduce errors in test data 2015-12-07 11:41:03 +01:00
Lorenz Meier 856406fb6c Update S.BUS2 test 2015-12-07 11:41:03 +01:00
Lorenz Meier d3be4352ea Add S.BUS parser to test 2015-12-07 11:41:02 +01:00
Lorenz Meier e11908697c S.BUS2 test data: Remove invalid line 2015-12-07 11:41:02 +01:00
Lorenz Meier 1fdff53c82 Fix S.BUS2 test 2015-12-07 11:41:02 +01:00
Lorenz Meier 475fec88fa Update SBUS2 test 2015-12-07 11:41:02 +01:00
Lorenz Meier 314bb49bce Unit tests: Workaround for driver framework. Now unit tests are fully enabled 2015-12-06 12:19:24 +01:00
Lorenz Meier acd9e7571f Update test run file 2015-12-06 12:00:06 +01:00
Lorenz Meier fb495b6594 sumd test: Be less verbose 2015-12-06 11:58:44 +01:00
Lorenz Meier 981ca02001 st24 test: Be less verbose 2015-12-06 11:58:33 +01:00
Lorenz Meier 29621ce0ed mixer test: Fix build warning 2015-12-06 11:57:54 +01:00
Lorenz Meier 7158a154cc Unit tests: Fix build for current temporary build setup. Needs conversion to proper CMake proejct 2015-12-06 11:55:42 +01:00
Lorenz Meier e7e714f6df Unit tests: Ignore all test executables 2015-12-06 11:55:10 +01:00
Daniel Agar cbbb6a0e59 switch to official googletest repo 2015-10-19 09:38:30 +02:00
Daniel Agar 5391e8a24f unittests trivial cleanup
-add -Qunused-arguments for clang
-update to a recent cmake
-comment unused variables
2015-08-29 20:43:00 -04:00
Mark Charlebois 3a47434749 Fixes for qurt HIL build
Workaround required Eigen downgrade to 3.2. Hexagon toolchain does
not support C++11 features of newest version of Eigen.

Running make qurt_fixup will downgrade and patch Eigen for qurt.
Running make restore will revert the patch and do a git submodule update
to restore the expected Eigen version.

Added a "restore" target to undo qurt_fixup

Before doing a qurt build run:

    make qurt_fixup

That will downgrade Eigen to 3.2 and apply the require patch.
To build another target after downgrading:

    make restore

Them make the desired target (other than qurt).

Fixed type used in orb_priority to be consistent with the code
(int* was used in declaration but int32_t* used in code)

Removed unused class member variable in sensors.cpp

Added cmake fix for unit tests. The location of px4_log.c changed.

Fixed the qurt drv_hrt.c implementation to use us instead of ms for time resolution

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with
duplicate files. It was moved out of common because it is not used by qurt.

Changed PX4_DEBUG to PX4_WARN when checking for the error condition for store_poll_waiter in vdev.cpp

Updated the px4_log.h file to make calls to the qurt_log functions.
The qurt_log function is defined in the platforms/qurt layer.

Added an option to control starting the commander module in HIL mode.

Moved the flight specific drivers to the configuration file instead of adding them
to the common tool chain file because HIL mode does not need them.

Added the uorb Subscriber and Publisher classes

Call PX4_ISFINITE macro instead of isfinite().

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with duplicate files.
It was moved out of common because it is not used by qurt.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-25 21:59:01 -07:00
Mark Charlebois 84e775272f POSIX: Fixes for unit tests after code refactor
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-28 20:48:51 -07:00
Mark Charlebois 68c9f88f2c uORB: fixed copyright on unit tests
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-24 18:50:39 -07:00
Lorenz Meier af4cc8ec91 Merge pull request #2501 from mcharleb/whitespace-cleanup
Code cleanup - Whitespace changes
2015-07-01 23:46:44 +02:00
Lorenz Meier 509ec90b76 Merge pull request #2406 from mcharleb/logging-v3
Improved logging with both compile and runtime level filtering
2015-07-01 23:31:50 +02:00
Mark Charlebois 6763039980 Code cleanup - Whitespace changes
These are only whitespace changes

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 09:10:30 -07:00
Lorenz Meier 50ba1f7365 merged release_v1.0.0 into master 2015-06-30 15:30:45 +02:00
Lorenz Meier 7b05165249 Param unit test: Fix CLANG compile warning 2015-06-30 07:15:40 +02:00
Mark Charlebois fc5eb7af6f unittests: Fixed dependency on px4_log.c
px4_log.c was added to px4_platform library and the library was added
to unit tests that use the log macros.

There is also a dependency on hrt_absolute_time() as well which requires
px4_platform.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-17 18:05:04 -07:00
Lorenz Meier b06a533555 OS X porting: Make unit tests compile on OS X 2015-06-13 11:07:17 +02:00