2018-01-24 16:38:25 +01:00
|
|
|
include(ECMMarkAsTest)
|
|
|
|
|
|
|
|
set(falkon_autotests_SRCS )
|
|
|
|
|
|
|
|
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
|
2018-01-24 16:38:25 +01:00
|
|
|
adblocktest
|
|
|
|
updatertest
|
2018-01-27 09:57:47 +01:00
|
|
|
locationbartest
|
2018-01-24 16:38:25 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(falkon_autotests_SRCS passwordbackendtest.cpp)
|
|
|
|
falkon_tests(
|
|
|
|
databasepasswordbackendtest
|
|
|
|
databaseencryptedpasswordbackendtest
|
|
|
|
)
|