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
 
