# SPDX-FileCopyrightText: 2024 Devin Lin <devin@kde.org>
# SPDX-License-Identifier: GPL-2.0-or-later

add_subdirectory(notificationtest)

find_program(BASH_EXECUTABLE bash)
if(BASH_EXECUTABLE)
    add_test(
        NAME convergence-dock-invariant
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-convergence-dock-invariant.sh
    )

    add_test(
        NAME shift-icon-theme-coverage
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-shift-icon-theme.sh
    )

    add_test(
        NAME shift-product-metadata
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-shift-product-metadata.sh
    )

    add_test(
        NAME shift-theme-identity
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-shift-theme-identity.sh
    )

    add_test(
        NAME shift-preview-qml-stubs
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-preview-qml-stubs.sh
    )

    add_test(
        NAME shift-dynamic-tiles-motion
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-dynamic-tiles-motion.sh
    )

    add_test(
        NAME shift-initialstart-metadata
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-shift-initialstart-metadata.sh
    )

    add_test(
        NAME shift-quicksettings-metadata
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-shift-quicksettings-metadata.sh
    )

    add_test(
        NAME shift-containment-metadata
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-shift-containment-metadata.sh
    )

    add_test(
        NAME shift-settings-daemon-metadata
        COMMAND ${BASH_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-shift-settings-daemon-metadata.sh
    )
endif()
