Warning, /network/falkon/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include(ECMMarkAsTest)
0002 
0003 set(falkon_autotests_SRCS )
0004 
0005 qt_add_resources(falkon_autotests_SRCS autotests.qrc)
0006 
0007 macro(falkon_tests)
0008     foreach(_testname ${ARGN})
0009         add_executable(${_testname} ${_testname}.cpp ${_testname}.h ${falkon_autotests_SRCS})
0010         target_link_libraries(${_testname} Qt::Test FalkonPrivate)
0011         add_test(NAME falkon-${_testname} COMMAND ${_testname})
0012         ecm_mark_as_test(${_testname})
0013         set_tests_properties(falkon-${_testname} PROPERTIES RUN_SERIAL TRUE)
0014     endforeach(_testname)
0015 endmacro()
0016 
0017 falkon_tests(
0018     qztoolstest
0019     cookiestest
0020     adblocktest
0021     updatertest
0022     locationbartest
0023     webviewtest
0024     webtabtest
0025     sqldatabasetest
0026 )
0027 
0028 set(falkon_autotests_SRCS ${CMAKE_SOURCE_DIR}/tests/modeltest/modeltest.cpp)
0029 include_directories(${CMAKE_SOURCE_DIR}/tests/modeltest)
0030 falkon_tests(
0031     tabmodeltest
0032 )
0033 
0034 set(falkon_autotests_SRCS passwordbackendtest.cpp)
0035 include_directories(${OPENSSL_INCLUDE_DIR})
0036 falkon_tests(
0037     databasepasswordbackendtest
0038     databaseencryptedpasswordbackendtest
0039 )
0040 
0041 set(falkon_autotests_SRCS
0042     qml/qmltestitem.cpp
0043     qml/qmltesthelper.cpp
0044 )
0045 
0046 macro(falkon_qml_tests)
0047     foreach(_testname ${ARGN})
0048         add_executable(${_testname} qml/${_testname}.cpp ${falkon_autotests_SRCS})
0049         target_link_libraries(${_testname} Qt::Test FalkonPrivate)
0050         add_test(NAME falkon-qml-${_testname} COMMAND ${_testname})
0051         ecm_mark_as_test(${_testname})
0052         set_tests_properties(falkon-qml-${_testname} PROPERTIES RUN_SERIAL TRUE)
0053     endforeach(_testname)
0054 endmacro()
0055 
0056 falkon_qml_tests(
0057     qmlbookmarksapitest
0058     qmltopsitesapitest
0059     qmlhistoryapitest
0060     qmlcookiesapitest
0061     qmlclipboardapitest
0062     qmltabsapitest
0063     qmlwindowsapitest
0064     qmluserscriptapitest
0065 )