1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
Description: Disable performance booster tests if building without libhybris. (No boosters except from the nullbooster available then).
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Forwarded: https://gitlab.com/ubports/development/core/repowerd/-/merge_requests/95
--- a/tests/core-tests/CMakeLists.txt
+++ b/tests/core-tests/CMakeLists.txt
@@ -14,9 +14,7 @@
#
# Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
-add_executable(
- repowerd-core-tests
-
+set(REPOWERD_CORE_TESTS_SOURCES
acceptance_test.cpp
daemon_config.cpp
fake_display_information.cpp
@@ -44,7 +42,6 @@
test_lid.cpp
test_modem_power_control.cpp
test_notification.cpp
- test_performance_booster.cpp
test_power_button.cpp
test_power_source.cpp
test_proximity_sensor.cpp
@@ -55,6 +52,17 @@
test_voice_call.cpp
)
+if(REPOWERD_ENABLE_HYBRIS)
+ list(APPEND REPOWERD_CORE_TESTS_SOURCES
+ test_performance_booster.cpp)
+endif()
+
+add_executable(
+ repowerd-core-tests
+
+ ${REPOWERD_CORE_TESTS_SOURCES}
+)
+
target_link_libraries(
repowerd-core-tests
|