unit tests use ninja and ctest

This commit is contained in:
Daniel Agar 2016-03-12 16:28:34 -05:00 committed by Lorenz Meier
parent a67546d232
commit dcd44ea4bb
3 changed files with 11 additions and 16 deletions

View File

@ -200,8 +200,12 @@ check_format:
check: px4fmu-v1_default px4fmu-v2_default px4fmu-v4_default px4-stm32f4discovery_default check_format tests
tests: posix_sitl_default
@(cd unittests && ./run_tests.sh)
unittest: posix_sitl_default
@(cd unittests && cmake -G$(PX4_CMAKE_GENERATOR) && $(PX4_MAKE) $(PX4_MAKE_ARGS) && ctest)
tests: unittest
@make --no-print-directory px4fmu-v2_default test
@make --no-print-directory posix_sitl_default test
package_firmware:
@zip --junk-paths Firmware.zip `find . -name \*.px4`

View File

@ -15,3 +15,8 @@ CMakeFiles
CTestTestfile.cmake
cmake_install.cmake
Makefile
.ninja_deps
.ninja_log
build.ninja
rules.ninja

View File

@ -1,14 +0,0 @@
#!/bin/sh
cmake .
make --no-print-directory clean
make --no-print-directory all -j4
set -e
#./param_test
./conversion_test
./autodeclination_test
./mixer_test 2> /dev/null
./sbus2_test
./rc_input_test