┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorSebastian Englbrecht <[email protected]>2026-06-01 19:29:34 +0200
committerMéven Car <[email protected]>2026-06-18 10:06:00 +0000
commit8cbae43d2269a056b530e10ae8c11168bc66ebb5 (patch)
treed39f084b0adc0593f146493058d6a4e64cfb634d /src/tests/CMakeLists.txt
parent5cd0c642f59924babe66d017d7c0ced7934de3d3 (diff)
tests: exclude two tests on windows
dolphinmainwindowtest requires a real window server no_bare_qwait_in_tests requires bash and only serves as lint, so linux only is OK
Diffstat (limited to 'src/tests/CMakeLists.txt')
-rw-r--r--src/tests/CMakeLists.txt13
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)