diff options
Diffstat (limited to 'src/tests/CMakeLists.txt')
| -rw-r--r-- | src/tests/CMakeLists.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 3ac657215..94bba8e5c 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -68,16 +68,20 @@ ecm_add_test(viewpropertiestest.cpp testdir.cpp TEST_NAME viewpropertiestest LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test KF6::FileMetaData) -# DolphinMainWindowTest -ecm_add_test(dolphinmainwindowtest.cpp testdir.cpp ${CMAKE_SOURCE_DIR}/src/dolphin.qrc -TEST_NAME dolphinmainwindowtest -LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test) +# DolphinMainWindowTest (requires a real window desktop; not reliable on Windows CI) +if(NOT WIN32) + ecm_add_test(dolphinmainwindowtest.cpp testdir.cpp ${CMAKE_SOURCE_DIR}/src/dolphin.qrc + TEST_NAME dolphinmainwindowtest + LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test) +endif() # DragAndDropHelperTest ecm_add_test(draganddrophelpertest.cpp LINK_LIBRARIES dolphinprivate Qt6::Test) # Lint: forbid bare QTest::qWait() in test sources without an // UNAVOIDABLE: justification. # Every unavoidable delay must carry a comment explaining why no signal-based wait is possible. +# Requires bash; not run on Windows. +if(NOT WIN32) add_test( NAME no_bare_qwait_in_tests COMMAND bash -c @@ -105,6 +109,7 @@ add_test( exit 1; \ fi" ) +endif() # Smoke test: launch Dolphin, verify it starts without crashing, then quit. if(NOT WIN32) |
