Warning, /plasma/plasma-workspace/applets/keyboardindicator/plugin/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2024 Fushan Wen <qydwhotmail@gmail.com>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 
0004 if(NOT CMAKE_SYSTEM_NAME MATCHES "Linux")
0005     return()
0006 endif()
0007 
0008 add_test(
0009     NAME lockedtest
0010     COMMAND selenium-webdriver-at-spi-run ${CMAKE_CURRENT_SOURCE_DIR}/lockedtest.py
0011 )
0012 execute_process(COMMAND gcc -print-file-name=libasan.so OUTPUT_VARIABLE LIBASAN_PATH ECHO_OUTPUT_VARIABLE OUTPUT_STRIP_TRAILING_WHITESPACE)
0013 set_tests_properties(lockedtest PROPERTIES
0014     TIMEOUT 60
0015     ENVIRONMENT "LD_PRELOAD=${LIBASAN_PATH};TEST_WITH_KWIN_WAYLAND=0;QML_EXEC=$<TARGET_FILE_DIR:Qt${QT_MAJOR_VERSION}::qmake>/qml")