Warning, /sdk/selenium-webdriver-at-spi/autotests/appiumtests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-License-Identifier: BSD-3-Clause
0002 # SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org>
0003 
0004 project(selenium-webdriver-at-spi-appiumtests)
0005 
0006 cmake_minimum_required(VERSION 3.22)
0007 find_package(ECM 5.99 REQUIRED NO_MODULE)
0008 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0009 
0010 include(FeatureSummary)
0011 include(KDEInstallDirs)
0012 include(KDECMakeSettings)
0013 include(KDECompilerSettings)
0014 include(KDEClangFormat)
0015 include(KDEGitCommitHooks)
0016 include(CMakePackageConfigHelpers)
0017 
0018 if(CMAKE_SYSTEM_NAME MATCHES "Linux")
0019     find_package(SeleniumWebDriverATSPI)
0020     set_package_properties(SeleniumWebDriverATSPI PROPERTIES
0021         DESCRIPTION "Server component for selenium tests using Linux accessibility infrastructure"
0022         PURPOSE "Needed for GUI tests"
0023         URL "https://invent.kde.org/sdk/selenium-webdriver-at-spi"
0024         TYPE OPTIONAL
0025     )
0026 
0027 
0028     add_test(
0029         NAME clipboardtest
0030         COMMAND selenium-webdriver-at-spi-run ${CMAKE_CURRENT_SOURCE_DIR}/clipboardtest.py
0031     )
0032     set_tests_properties(clipboardtest PROPERTIES TIMEOUT 30)
0033 
0034     add_test(
0035         NAME shiftsynthesizertest
0036         COMMAND selenium-webdriver-at-spi-run ${CMAKE_CURRENT_SOURCE_DIR}/shiftsynthesizertest.rb
0037     )
0038     set_tests_properties(shiftsynthesizertest PROPERTIES TIMEOUT 30)
0039 
0040     add_test(
0041         NAME kinfocentertest
0042         COMMAND selenium-webdriver-at-spi-run ${CMAKE_CURRENT_SOURCE_DIR}/kinfocentertest.rb
0043     )
0044     set_tests_properties(kinfocentertest PROPERTIES TIMEOUT 300 ENVIRONMENT "RECORD_VIDEO_NAME=kinfocentertest.webm")
0045 
0046     add_test(
0047         NAME kinfocentertest-xwayland
0048         COMMAND selenium-webdriver-at-spi-run ${CMAKE_CURRENT_SOURCE_DIR}/kinfocentertest.rb
0049     )
0050     set_tests_properties(kinfocentertest PROPERTIES TIMEOUT 300 ENVIRONMENT "TEST_WITH_XWAYLAND=1")
0051 
0052     add_test(
0053         NAME calculatortest
0054         COMMAND selenium-webdriver-at-spi-run ${CMAKE_CURRENT_SOURCE_DIR}/calculatortest.py
0055     )
0056     set_tests_properties(calculatortest PROPERTIES TIMEOUT 300)
0057 endif()
0058 
0059 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)