Move autotests to autotests top-level directory

Also only build tests with BUILD_TESTING enabled.
remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent a509543eb7
commit d2e2eef5a5
  1. 10
      CMakeLists.txt
  2. 0
      autotests/CMakeLists.txt
  3. 0
      autotests/adblocktest.cpp
  4. 0
      autotests/adblocktest.h
  5. 0
      autotests/cookiestest.cpp
  6. 0
      autotests/cookiestest.h
  7. 0
      autotests/formcompletertest.cpp
  8. 0
      autotests/formcompletertest.h
  9. 0
      autotests/main.cpp
  10. 0
      autotests/passwordbackendtest.cpp
  11. 0
      autotests/passwordbackendtest.h
  12. 0
      autotests/qztoolstest.cpp
  13. 0
      autotests/qztoolstest.h
  14. 0
      autotests/updatertest.cpp
  15. 0
      autotests/updatertest.h

@ -41,7 +41,10 @@ add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DQT_NO_CAS
# Mandatory: Qt5
set(QT_MIN_VERSION "5.8.0")
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Widgets Network Sql QuickWidgets PrintSupport WebEngineWidgets WebChannel Test)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Widgets Network Sql QuickWidgets PrintSupport WebEngineWidgets WebChannel)
if (BUILD_TESTING)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test)
endif()
if (NOT DISABLE_DBUS)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS DBus)
endif()
@ -138,6 +141,9 @@ include_directories(
# Finally, go into the subdirs
add_subdirectory(src)
add_subdirectory(tests/autotests)
if (BUILD_TESTING)
add_subdirectory(autotests)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)

Loading…
Cancel
Save