mixer multirotor: add to CI

This commit is contained in:
Beat Küng 2018-12-11 13:21:54 +01:00
parent e8e3b00a10
commit 418df2516d
2 changed files with 13 additions and 5 deletions

View File

@ -322,9 +322,13 @@ format:
# Testing
# --------------------------------------------------------------------
.PHONY: tests tests_coverage tests_mission tests_mission_coverage tests_offboard rostest python_coverage
.PHONY: tests tests_coverage tests_mission tests_mission_coverage tests_offboard
.PHONY: rostest python_coverage test_mixer_multirotor
tests:
test_mixer_multirotor:
@$(MAKE) -C "$(SRC_DIR)"/src/lib/mixer --no-print-directory tests
tests: test_mixer_multirotor
@$(MAKE) --no-print-directory px4_sitl_default test_results \
ASAN_OPTIONS="color=always:check_initialization_order=1:detect_stack_use_after_return=1" \
UBSAN_OPTIONS="color=always"

View File

@ -1,9 +1,13 @@
.PHONY: all tests
.PHONY: all tests clean
all: test_mixer_multirotor
test_mixer_multirotor: test_mixer_multirotor.cpp mixer_multirotor.cpp mixer.cpp
g++ $^ -I .. -DMIXER_MULTIROTOR_USE_MOCK_GEOMETRY -o $@
@g++ $^ -std=c++11 -I .. -DMIXER_MULTIROTOR_USE_MOCK_GEOMETRY -o $@
tests: test_mixer_multirotor
python mixer_multirotor.py --test --mixer-multirotor-binary ./$^
@echo "Testing Mixer Multirotor"
@python mixer_multirotor.py --test --mixer-multirotor-binary ./$^
clean:
@rm test_mixer_multirotor