mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 00:03:33 +08:00
Add unit testing possibility using googletest on POSIX
This commit is contained in:
@@ -337,9 +337,14 @@ format:
|
||||
|
||||
# Testing
|
||||
# --------------------------------------------------------------------
|
||||
.PHONY: tests tests_coverage tests_mission tests_mission_coverage tests_offboard tests_avoidance
|
||||
.PHONY: tests tests_coverage tests_mission tests_mission_coverage tests_offboard tests_avoidance unit_test
|
||||
.PHONY: rostest python_coverage
|
||||
|
||||
unit_test:
|
||||
$(eval CMAKE_ARGS += -Dunit_testing=ON)
|
||||
$(eval ARGS += unit_test)
|
||||
$(call cmake-build,px4_sitl_default)
|
||||
|
||||
tests:
|
||||
@$(MAKE) --no-print-directory px4_sitl_test test_results \
|
||||
ASAN_OPTIONS="color=always:check_initialization_order=1:detect_stack_use_after_return=1" \
|
||||
|
||||
Reference in New Issue
Block a user