mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
![Méven Car](/assets/img/avatar_default.png)
Based upon @mart https://invent.kde.org/system/dolphin/-/merge_requests/492/diffs Co-authored-by: Marco Martin <mart@kde.org>
25 lines
818 B
CMake
25 lines
818 B
CMake
# SPDX-License-Identifier: BSD-3-Clause
|
|
# SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org>
|
|
|
|
if(NOT BUILD_TESTING OR NOT CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
return()
|
|
endif()
|
|
|
|
find_package(SeleniumWebDriverATSPI)
|
|
set_package_properties(SeleniumWebDriverATSPI PROPERTIES
|
|
DESCRIPTION "Server component for selenium tests using Linux accessibility infrastructure"
|
|
PURPOSE "Needed for GUI tests"
|
|
URL "https://invent.kde.org/sdk/selenium-webdriver-at-spi"
|
|
TYPE OPTIONAL
|
|
)
|
|
if(NOT SeleniumWebDriverATSPI_FOUND AND NOT DEFINED ENV{KDECI_BUILD})
|
|
return()
|
|
endif()
|
|
|
|
add_test(
|
|
NAME dolphintest
|
|
COMMAND selenium-webdriver-at-spi-run ${CMAKE_CURRENT_SOURCE_DIR}/dolphintest.py
|
|
)
|
|
set_tests_properties(dolphintest PROPERTIES TIMEOUT 300 ENVIRONMENT "CMAKE_BINARY_DIR=${CMAKE_BINARY_DIR}/bin")
|
|
|