Browse Source

mixer multirotor: add to CI

sbg
Beat Küng 6 years ago
parent
commit
418df2516d
  1. 8
      Makefile
  2. 10
      src/lib/mixer/Makefile

8
Makefile

@ -322,9 +322,13 @@ format: @@ -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"

10
src/lib/mixer/Makefile

@ -1,9 +1,13 @@ @@ -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

Loading…
Cancel
Save