Warning, /system/dolphin/src/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) 0002 0003 find_package(Qt6Test CONFIG REQUIRED) 0004 include(ECMAddTests) 0005 0006 include(FindGem) # For servicemenutest, see bottom of this file 0007 0008 # KItemSetTest 0009 ecm_add_test(kitemsettest.cpp LINK_LIBRARIES dolphinprivate Qt6::Test) 0010 0011 # KItemRangeTest 0012 ecm_add_test(kitemrangetest.cpp LINK_LIBRARIES dolphinprivate Qt6::Test) 0013 0014 0015 # KItemListSelectionManagerTest 0016 ecm_add_test(kitemlistselectionmanagertest.cpp LINK_LIBRARIES dolphinprivate Qt6::Test) 0017 0018 # KItemListControllerTest 0019 ecm_add_test(kitemlistcontrollertest.cpp testdir.cpp 0020 TEST_NAME kitemlistcontrollertest 0021 LINK_LIBRARIES dolphinprivate Qt6::Test) 0022 0023 # KItemListControllerExpandTest 0024 ecm_add_test(kitemlistcontrollerexpandtest.cpp testdir.cpp 0025 TEST_NAME kitemlistcontrollerexpandtest 0026 LINK_LIBRARIES dolphinprivate Qt6::Test) 0027 0028 # KFileItemListViewTest 0029 ecm_add_test(kfileitemlistviewtest.cpp testdir.cpp 0030 TEST_NAME kfileitemlistviewtest 0031 LINK_LIBRARIES dolphinprivate Qt6::Test) 0032 0033 # KFileItemModelTest 0034 ecm_add_test(kfileitemmodeltest.cpp testdir.cpp 0035 TEST_NAME kfileitemmodeltest 0036 LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test) 0037 0038 # KFileItemModelBenchmark, not run automatically with `ctest` or `make test` 0039 add_executable(kfileitemmodelbenchmark kfileitemmodelbenchmark.cpp testdir.cpp) 0040 target_link_libraries(kfileitemmodelbenchmark dolphinprivate Qt6::Test) 0041 0042 # KItemListKeyboardSearchManagerTest 0043 ecm_add_test(kitemlistkeyboardsearchmanagertest.cpp LINK_LIBRARIES dolphinprivate Qt6::Test) 0044 0045 # DolphinSearchBox 0046 if (KF6Baloo_FOUND) 0047 ecm_add_test(dolphinsearchboxtest.cpp 0048 TEST_NAME dolphinsearchboxtest 0049 LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test) 0050 endif() 0051 0052 # DolphinQuery 0053 if (KF6Baloo_FOUND) 0054 ecm_add_test(dolphinquerytest.cpp 0055 TEST_NAME dolphinquerytest 0056 LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test) 0057 endif() 0058 0059 # ViewPropertiesTest 0060 ecm_add_test(viewpropertiestest.cpp testdir.cpp 0061 TEST_NAME viewpropertiestest 0062 LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test) 0063 0064 # DolphinMainWindowTest 0065 ecm_add_test(dolphinmainwindowtest.cpp testdir.cpp ${CMAKE_SOURCE_DIR}/src/dolphin.qrc 0066 TEST_NAME dolphinmainwindowtest 0067 LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test) 0068 0069 # DragAndDropHelperTest 0070 ecm_add_test(draganddrophelpertest.cpp LINK_LIBRARIES dolphinprivate Qt6::Test) 0071 0072 find_gem(test-unit) 0073 set_package_properties(Gem_test-unit PROPERTIES 0074 TYPE RECOMMENDED 0075 DESCRIPTION "Ruby gem 'test-unit' required for testing of servicemenu helpers.") 0076 if (Gem_test-unit_FOUND) 0077 add_test(NAME servicemenutest 0078 COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../settings/contextmenu/test/test_run.rb) 0079 endif()