From a9148486a7617afe336a93e365ef917240c44a10 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 16 May 2021 22:50:57 +0200 Subject: CMakeLists.txt: Fix coverage report. We need to reference the test executables here, not the test wrappers. --- CMakeLists.txt | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc65cee..c7444f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,6 +81,29 @@ add_subdirectory(src) add_subdirectory(data) add_subdirectory(tools) +set (COVERAGE_TEST_EXECUTABLES + "service-manager-connect" + "service-manager-connect-service" + "service-manager-no-connect" + "service-manager-nostart-connect" + "service-shutdown-timeout" + "service-version-bad-service" + "service-version-good-service" + "service-version-manager" + "service-version-multiwatch-manager" + "service-version-multiwatch-manager-impolite" + "service-version-multiwatch-service" + "test-desktop-shortcuts" + "test-loader" +) + +if(FLAVOUR_GTK3) + set (COVERAGE_TEST_EXECUTABLES + ${COVERAGE_TEST_EXECUTABLES} + "test-indicator-ng" + ) +endif() + if(ENABLE_TESTS) include(CTest) enable_testing() @@ -90,7 +113,7 @@ if(ENABLE_TESTS) find_package(CoverageReport) ENABLE_COVERAGE_REPORT( TARGETS "ayatana-indicator3" - TESTS "test-desktop-shortcuts" "test-indicator-ng" "test-loader" + TESTS ${COVERAGE_TEST_EXECUTABLES} FILTER /usr/include ${CMAKE_BINARY_DIR}/* ) endif() -- cgit v1.2.3