From ce1157e3985a539baf87316734ac9fc5b599d0b1 Mon Sep 17 00:00:00 2001 From: Julian Kent Date: Thu, 28 Jan 2021 10:32:29 +0100 Subject: [PATCH] Work around broken coverage interface --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0c5f7b495f..31ea4aa4ad 100644 --- a/Makefile +++ b/Makefile @@ -362,8 +362,10 @@ tests: tests_coverage: @$(MAKE) clean - @$(MAKE) --no-print-directory px4_sitl_default test_coverage_genhtml PX4_CMAKE_BUILD_TYPE=Coverage - @echo "Open "$(SRC_DIR)"/build/px4_sitl_default/coverage-html/index.html to see coverage" + @$(MAKE) --no-print-directory tests PX4_CMAKE_BUILD_TYPE=Coverage + @mkdir -p coverage + @lcov --directory build/px4_sitl_test --base-directory build/px4_sitl_test --gcov-tool gcov --capture -o coverage/lcov.info + rostest: px4_sitl_default @$(MAKE) --no-print-directory px4_sitl_default sitl_gazebo