Commit Graph

69 Commits

Author SHA1 Message Date
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
Mark Charlebois fb402bc096 POSIX: Fixed remaining broke gtests
The addition of the hrt workqueue required adding some additional files to
unittests/CMakeLists.txt

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 20:22:49 -07:00
Mark Charlebois ea7d5070c5 POSIX: Fixed some of the failing gtests
The orb_advert_t change from int to void * required some fixups
for the gtests.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 19:42:54 -07:00
Mark Charlebois 6cb26de74c Multi-uORB support changes - part 1
This adds support for a dynamic build for QuRT and initial
Multi-uORB changes to enable communication between the DSP and
the application processor.

This part of the changes do not affect the POSIX build. This is
enablement for the QuRT build using Multi-uORB. The second part
of the changes will be added in a new module under src/modules.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
David Sidrane bcb3529490 Added confitional definition 2015-06-03 22:49:57 +02:00
David Sidrane 9d055ef95b Added ASSERT macro that mimic Nuttx but uses the system assert 2015-06-03 22:49:57 +02:00
Mark Charlebois 7301b59d14 Unit tests: Fixed unit test build
Unit tests now work. The linux build was failing saving params
because it was using the changes for QuRT that fake out the
filesystem.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-19 13:36:13 -07:00
Lorenz Meier 40faa98416 Linux: Fix unit tests 2015-04-21 09:23:36 +02:00
Daniel Agar 8aae66b893 trivial code style cleanup round 2 2015-03-27 23:38:58 -04:00
Daniel Agar b55fe24161 unittests fix code style 2015-03-19 23:49:35 +01:00
NosDE 04f4206371 Graupner HoTT SUMD/SUMH Receiver Protocol added 2015-03-07 11:39:00 +01:00
Andreas Antener a7580a1eae added actual tests and fixed reset-exclude funtction 2015-02-10 08:39:46 +01:00
Andreas Antener 28e943ca28 setting parameters at runtime to get rid of the designated union initializer 2015-02-10 08:39:46 +01:00
Andreas Antener 4ece1f92ca removed old stub 2015-02-10 08:39:46 +01:00
Andreas Antener 5cccc01cd4 added unit test directive to switch out parameter storage 2015-02-10 08:39:46 +01:00
Andreas Antener 13039f9e69 hard-code parameter array for verification 2015-02-10 08:39:46 +01:00
Andreas Antener a73a095c1d added test and stub 2015-02-10 08:39:46 +01:00
Andreas Antener 959aefba63 renamed const name since it is a macro in a system header on OS X (/usr/include/sys/syslimits.h) 2015-02-10 08:39:46 +01:00
Lorenz Meier d441d38677 Merged master into ros 2015-02-02 21:21:51 +01:00
Lorenz Meier e6a7dc7a3f Fixed unit test usage of visibility macros 2015-02-02 21:03:19 +01:00
Thomas Gubler fb151a855f Merge remote-tracking branch 'upstream/master' into ros 2015-01-08 17:08:30 +01:00
Lorenz Meier aa2a00b56a Merge branch 'MixerNaming' of github.com:anton-matosov/Firmware 2015-01-08 12:45:43 +01:00
Daniel Agar cc2d0f00d6 move sf0x_test to gtest 2015-01-07 23:17:31 -05:00
Daniel Agar a4db73dad8 move st24_test to gtest 2015-01-07 23:15:12 -05:00
Anton Matosov 08062e6546 Changed naming of the mixers to get rid of umbiguity as outputs are actually going to be driven by io, not fmu
Implemented automatic lookup for the .aux.mix file if it exists
2015-01-08 00:53:52 +02:00
Thomas Gubler fe279d340d Merge remote-tracking branch 'upstream/master' into dev_ros
Conflicts:
	Makefile
2015-01-07 16:00:59 +01:00
Thomas Gubler a01a8f9553 add missing defines for unittests 2015-01-07 08:20:35 +01:00
Thomas Gubler e855e4454c exclude macro hack for tests target 2015-01-07 00:19:30 +01:00
Daniel Agar 620df8ba0b cmake unittests add PX_SRC variable to cleanup long paths 2015-01-06 08:50:45 -05:00
Daniel Agar 3606f5370a cmake generate mixer_multirotor.generated.h for unittests 2015-01-06 08:46:58 -05:00
Daniel Agar e23b73e415 Merge remote-tracking branch 'upstream/master' into unittests 2015-01-06 08:38:08 -05:00
Daniel Agar d31b0cd5db move sbus2 to gtest 2015-01-05 22:12:25 -05:00
Daniel Agar bd130ec397 move sf0x_test to cmake and remove unittests/Makefile 2015-01-05 18:55:38 -05:00
Daniel Agar 322362d5e0 move st24_test to cmake and run tests from original unittests working directory 2015-01-05 18:50:26 -05:00
Daniel Agar 4a09e6370a move sbus2_test to cmake 2015-01-05 18:43:26 -05:00
Daniel Agar efb3240bd2 gtest mixer_test match original 2015-01-05 18:38:28 -05:00
Daniel Agar 6287231fec cmake test harness output everything on failure 2015-01-05 18:34:36 -05:00
Anton Matosov 5841686a2e Changed the way CC is reset to CXX, used a real value instead of hardcoded g++. 2015-01-06 01:27:09 +02:00
Daniel Agar 3efb1be48e move mixer_test and conversion_test to gtest 2015-01-05 18:18:47 -05:00