aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-16 22:50:57 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-17 12:21:14 +0200
commita9148486a7617afe336a93e365ef917240c44a10 (patch)
treec4fcf46eed283b3bf950ae08d02c2dc540b4c687
parent49d522e6bc2a513887277371e90838b742528b42 (diff)
downloadlibayatana-indicator-a9148486a7617afe336a93e365ef917240c44a10.tar.gz
libayatana-indicator-a9148486a7617afe336a93e365ef917240c44a10.tar.bz2
libayatana-indicator-a9148486a7617afe336a93e365ef917240c44a10.zip
CMakeLists.txt: Fix coverage report. We need to reference the test executables here, not the test wrappers.
-rw-r--r--CMakeLists.txt25
1 files changed, 24 insertions, 1 deletions
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()