┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/appiumtests/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'appiumtests/CMakeLists.txt')
-rw-r--r--appiumtests/CMakeLists.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/appiumtests/CMakeLists.txt b/appiumtests/CMakeLists.txt
new file mode 100644
index 000000000..3c1bb8c21
--- /dev/null
+++ b/appiumtests/CMakeLists.txt
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# SPDX-FileCopyrightText: 2022 Harald Sitter <[email protected]>
+
+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")
+