]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/CMakeLists.txt
Update dolphin tests following place changes D7446
[dolphin.git] / src / tests / CMakeLists.txt
index 8ef20cb83b7bfc04f95164d6daa0cf1468de21a6..6ecac1f1e8b431e15abc4aef8e354df448a21006 100644 (file)
@@ -9,12 +9,6 @@ find_gem(test-unit REQUIRED)
 set_package_properties(Gem:test-unit PROPERTIES
     DESCRIPTION "Ruby gem 'test-unit' required for testing of servicemenu helpers.")
 
-if(BUILD_COVERAGE)
-    find_gem(simplecov)
-    set_package_properties(Gem:simplecov PROPERTIES
-        DESCRIPTION "Ruby gem 'simplecov' used for coverage statistics.")
-endif()
-
 # KItemSetTest
 ecm_add_test(kitemsettest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
 
@@ -77,9 +71,11 @@ LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
 ecm_add_test(draganddrophelpertest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
 
 # PlacesItemModelTest
-ecm_add_test(placesitemmodeltest.cpp
-TEST_NAME placesitemmodeltest
-LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
+if (KF5_VERSION VERSION_GREATER_EQUAL 5.63.0)
+    ecm_add_test(placesitemmodeltest.cpp
+    TEST_NAME placesitemmodeltest
+    LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
+endif()
 
 add_test(NAME servicemenutest
  COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../settings/services/test/test_run.rb)