1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-21 03:06:34 +01:00
falkonOfficial/autotests/CMakeLists.txt

65 lines
1.7 KiB
CMake
Raw Normal View History

include(ECMMarkAsTest)
set(falkon_autotests_SRCS )
2018-01-29 00:20:28 +01:00
qt5_add_resources(falkon_autotests_SRCS autotests.qrc)
macro(falkon_tests)
foreach(_testname ${ARGN})
add_executable(${_testname} ${_testname}.cpp ${falkon_autotests_SRCS})
target_link_libraries(${_testname} Qt5::Test FalkonPrivate)
add_test(NAME falkon-${_testname} COMMAND ${_testname})
ecm_mark_as_test(${_testname})
set_tests_properties(falkon-${_testname} PROPERTIES RUN_SERIAL TRUE)
endforeach(_testname)
endmacro()
falkon_tests(
qztoolstest
2018-01-27 09:03:18 +01:00
cookiestest
adblocktest
updatertest
2018-01-27 09:57:47 +01:00
locationbartest
2018-01-29 00:20:28 +01:00
webviewtest
webtabtest
sqldatabasetest
)
2018-01-30 14:53:18 +01:00
set(falkon_autotests_SRCS ${CMAKE_SOURCE_DIR}/tests/modeltest/modeltest.cpp)
include_directories(${CMAKE_SOURCE_DIR}/tests/modeltest)
falkon_tests(
tabmodeltest
)
set(falkon_autotests_SRCS passwordbackendtest.cpp)
include_directories(${OPENSSL_INCLUDE_DIR})
falkon_tests(
databasepasswordbackendtest
databaseencryptedpasswordbackendtest
)
2018-05-21 13:17:26 +02:00
set(falkon_autotests_SRCS
qml/qmltestitem.cpp
qml/qmltesthelper.cpp
)
macro(falkon_qml_tests)
foreach(_testname ${ARGN})
add_executable(${_testname} qml/${_testname}.cpp ${falkon_autotests_SRCS})
target_link_libraries(${_testname} Qt5::Test FalkonPrivate)
add_test(NAME falkon-qml-${_testname} COMMAND ${_testname})
ecm_mark_as_test(${_testname})
set_tests_properties(falkon-qml-${_testname} PROPERTIES RUN_SERIAL TRUE)
endforeach(_testname)
endmacro()
falkon_qml_tests(
qmlbookmarksapitest
2018-05-22 08:00:04 +02:00
qmltopsitesapitest
2018-05-23 17:03:54 +02:00
qmlhistoryapitest
2018-05-24 21:40:33 +02:00
qmlcookiesapitest
2018-05-31 18:27:40 +02:00
qmlclipboardapitest
qmltabsapitest
2018-06-05 07:56:04 +02:00
qmlwindowsapitest
2018-05-21 13:17:26 +02:00
)