From d4683886434ef7e5c654c0bc710414f75989c5ea Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 25 Jan 2020 16:32:10 +0100 Subject: [PATCH] Coverage: Run lcov separate to fix paths Without this the paths of the different compile units do not match up. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index b8ef1214d0..0ecb75446f 100644 --- a/Makefile +++ b/Makefile @@ -368,6 +368,8 @@ tests_integration_coverage: @$(MAKE) --no-print-directory px4_sitl_default sitl_gazebo @$(MAKE) --no-print-directory px4_sitl_default mavsdk_tests @"$(SRC_DIR)"/test/mavsdk_tests/mavsdk_test_runner.py --speed-factor 100 + @mkdir -p coverage + @lcov --directory build/px4_sitl_default --base-directory build/px4_sitl_default --gcov-tool gcov --capture -o coverage/lcov.info tests_mission: rostest @"$(SRC_DIR)"/test/rostest_px4_run.sh mavros_posix_tests_missions.test