Skip to content

Commit

Permalink
unit tests cleanup
Browse files Browse the repository at this point in the history
-launch using top level make tests
-ignore generated files
  • Loading branch information
dagar authored and LorenzMeier committed Mar 14, 2016
1 parent d02ca5d commit 1e2be40
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions unittests/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
./obj/*
gtest_main.a
dsm_test
mixer_test
sf0x_test
sbus2_test
Expand Down
4 changes: 2 additions & 2 deletions unittests/run_tests.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 1e2be40

Please sign in to comment.