unit tests cleanup

-launch using top level make tests
-ignore generated files
This commit is contained in:
Daniel Agar 2016-03-12 14:05:43 -05:00 committed by Lorenz Meier
parent d02ca5dd45
commit 1e2be407dd
4 changed files with 11 additions and 3 deletions

View File

@ -109,7 +109,7 @@ script:
&& echo 'Building UAVCAN node firmware..' && (git clone https://github.com/thiemar/vectorcontrol && cd vectorcontrol && BOARD=s2740vc_1_0 make -s && BOARD=px4esc_1_6 make -s && ../Tools/uavcan_copy.sh)
&& echo 'Building NuttX px4fmu-v4 Firmware..' && make px4fmu-v4_default
&& echo 'Building NuttX px4-stm32f4discovery Firmware..' && make px4-stm32f4discovery_default
&& echo 'Running Tests..' && cd unittests && ./run_tests.sh; cd ..
&& echo 'Running Tests..' && make tests
;
fi

View File

@ -194,6 +194,13 @@ run_sitl_ros: sitl_deprecation
check_format:
@./Tools/check_code_style.sh
check:
check_format
tests
tests: posix_sitl_default
@(cd unittests && ./run_tests.sh)
clean:
@rm -rf build_*/
@(cd NuttX/nuttx && make clean)

View File

@ -1,5 +1,6 @@
./obj/*
gtest_main.a
dsm_test
mixer_test
sf0x_test
sbus2_test

View File

@ -1,8 +1,8 @@
#!/bin/sh
cmake .
make clean
make all -j4
make --no-print-directory clean
make --no-print-directory all -j4
set -e