Warning, /utilities/konsole/src/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include(ECMAddTests)
0002 
0003 set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
0004 
0005 set(KONSOLE_TEST_LIBS Qt::Test konsoleprivate konsolecharacters konsoledecoders)
0006 
0007 # ATM issue with non-termination due to message dialog
0008 if(QT_MAJOR_VERSION EQUAL "5")
0009 if ("$ENV{USER}" STREQUAL "jenkins")
0010     message(STATUS "We are running in jenkins; skipping DBusTest...")
0011 else()
0012     message(STATUS "We are NOT running in jenkins; running DBusTest...")
0013 
0014     # This test fails on kf5-qt5 SUSEQt5.9 buildbot since Oct 28, 2018
0015     # Believed due to frameworks regression; disable to avoid sysadmins having
0016     # to fix for every build
0017     # https://mail.kde.org/pipermail/kde-frameworks-devel/2018-November/073078.html
0018     # https://phabricator.kde.org/T9948
0019     if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
0020         ecm_add_test(DBusTest.cpp LINK_LIBRARIES ${KONSOLE_TEST_LIBS} Qt::DBus)
0021     endif()
0022 endif()
0023 endif()
0024 
0025 # Temporary bypass for BKO 432379
0026 if(BUILD_SHARED_LIBS)
0027     ecm_add_test(KeyboardTranslatorTest.cpp LINK_LIBRARIES ${KONSOLE_TEST_LIBS})
0028 endif(BUILD_SHARED_LIBS)
0029 
0030 if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
0031     ecm_add_test(
0032         PartTest.cpp
0033         LINK_LIBRARIES KF6::XmlGui KF6::Parts KF6::Pty ${KONSOLE_TEST_LIBS}
0034     )
0035 endif()
0036 
0037 ecm_add_tests(
0038     BookMarkTest.cpp
0039     CharacterColorTest.cpp
0040     CharacterTest.cpp
0041     CharacterWidthTest.cpp
0042     HotSpotFilterTest.cpp
0043     ProcessInfoTest.cpp
0044     ProfileTest.cpp
0045     PtyTest.cpp
0046     ScreenTest.cpp
0047     ShellCommandTest.cpp
0048     TerminalCharacterDecoderTest.cpp
0049     Vt102EmulationTest.cpp
0050     LINK_LIBRARIES ${KONSOLE_TEST_LIBS}
0051 )
0052 target_link_libraries(PtyTest KF6::Pty ${KONSOLE_TEST_LIBS})
0053 
0054 ecm_add_tests(
0055     HistoryTest.cpp
0056     SessionTest.cpp
0057     TerminalInterfaceTest.cpp
0058     TerminalTest.cpp
0059     LINK_LIBRARIES ${KONSOLE_TEST_LIBS} KF6::Parts
0060 )