CMake: Regenerate tests projects

Change-Id: I559bf2c82d83fac9bd3c52a331d99e1e83bc3f87
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexandru Croitor 2020-03-11 19:09:45 +01:00
parent aa77fbca69
commit 8facb31fde
27 changed files with 194 additions and 18 deletions

View File

@ -11,7 +11,6 @@ add_qt_test(tst_qmetatype
SOURCES
tst_qmetatype.cpp
DEFINES
-QT_NO_LINKED_LIST
QT_DISABLE_DEPRECATED_BEFORE=0
INCLUDE_DIRECTORIES
../../../other/qvariant_common

View File

@ -11,7 +11,6 @@ add_qt_test(tst_qmetatype
SOURCES
tst_qmetatype.cpp
DEFINES
# -QT_NO_LINKED_LIST # special case remove until we fix this
QT_DISABLE_DEPRECATED_BEFORE=0
INCLUDE_DIRECTORIES
../../../other/qvariant_common

View File

@ -8,7 +8,6 @@ add_qt_test(tst_qvariant
SOURCES
tst_qvariant.cpp
DEFINES
-QT_NO_LINKED_LIST
QT_DISABLE_DEPRECATED_BEFORE=0
INCLUDE_DIRECTORIES
../../../other/qvariant_common
@ -32,3 +31,8 @@ add_qt_resource(tst_qvariant "qvariant"
## Scopes:
#####################################################################
extend_target(tst_qvariant CONDITION NOT QT_FEATURE_doubleconversion AND NOT QT_FEATURE_system_doubleconversion
DEFINES
QT_NO_DOUBLECONVERSION
)

View File

@ -8,7 +8,6 @@ add_qt_test(tst_qvariant
SOURCES
tst_qvariant.cpp
DEFINES
# -QT_NO_LINKED_LIST # special case remove until we fix this
QT_DISABLE_DEPRECATED_BEFORE=0
INCLUDE_DIRECTORIES
../../../other/qvariant_common
@ -32,3 +31,8 @@ add_qt_resource(tst_qvariant "qvariant"
## Scopes:
#####################################################################
extend_target(tst_qvariant CONDITION NOT QT_FEATURE_doubleconversion AND NOT QT_FEATURE_system_doubleconversion
DEFINES
QT_NO_DOUBLECONVERSION
)

View File

@ -34,3 +34,8 @@ if(ANDROID)
${json_resource_files}
)
endif()
extend_target(tst_json CONDITION NOT QT_FEATURE_doubleconversion AND NOT QT_FEATURE_system_doubleconversion
DEFINES
QT_NO_DOUBLECONVERSION
)

View File

@ -10,8 +10,6 @@ list(APPEND test_data "datastream.q42")
add_qt_test(tst_qdatastream
SOURCES
tst_qdatastream.cpp
DEFINES
-QT_NO_LINKED_LIST
PUBLIC_LIBRARIES
Qt::Gui
TESTDATA ${test_data}

View File

@ -10,8 +10,6 @@ list(APPEND test_data "datastream.q42")
add_qt_test(tst_qdatastream
SOURCES
tst_qdatastream.cpp
DEFINES
# -QT_NO_LINKED_LIST # special case remove
PUBLIC_LIBRARIES
Qt::Gui
TESTDATA ${test_data}

View File

@ -4,7 +4,7 @@
## tst_qfuture Test:
#####################################################################
add_qt_test(tst_qfuture
qt_add_test(tst_qfuture
SOURCES
tst_qfuture.cpp
DEFINES

View File

@ -0,0 +1,18 @@
# Generated from copier.pro.
#####################################################################
## copier Binary:
#####################################################################
add_qt_executable(copier
SOURCES
main.cpp
PUBLIC_LIBRARIES
Qt::Gui
)
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:.:copier.pro:WIN32:
# DESTDIR = "../copier"

View File

@ -0,0 +1,18 @@
# Generated from paster.pro.
#####################################################################
## paster Binary:
#####################################################################
add_qt_executable(paster
SOURCES
main.cpp
PUBLIC_LIBRARIES
Qt::Gui
)
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:.:paster.pro:WIN32:
# DESTDIR = "../paster"

View File

@ -7,6 +7,8 @@
# Collect test data
list(APPEND test_data "data/thematicBreaks.md")
list(APPEND test_data "data/headingBulletsContinuations.md")
list(APPEND test_data "data/fuzz20450.md")
list(APPEND test_data "data/fuzz20580.md")
add_qt_test(tst_qtextmarkdownimporter
SOURCES

View File

@ -0,0 +1,59 @@
# Generated from test.pro.
#####################################################################
## tst_qnetworkreply Test:
#####################################################################
# Collect test data
list(APPEND test_data "../empty")
list(APPEND test_data "../rfc3252.txt")
list(APPEND test_data "../resource")
list(APPEND test_data "../bigfile")
file(GLOB_RECURSE test_data_glob
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
../*.jpg)
list(APPEND test_data ${test_data_glob})
list(APPEND test_data "../certs")
list(APPEND test_data "../index.html")
list(APPEND test_data "../smb-file.txt")
add_qt_test(tst_qnetworkreply
SOURCES
../../../../../shared/emulationdetector.h
../tst_qnetworkreply.cpp
INCLUDE_DIRECTORIES
../../../../../shared
PUBLIC_LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
TESTDATA ${test_data}
)
# Resources:
set_source_files_properties("../resource"
PROPERTIES QT_RESOURCE_ALIAS "resource"
)
set(qnetworkreply_resource_files
"resource"
)
add_qt_resource(tst_qnetworkreply "qnetworkreply"
PREFIX
"/"
BASE
".."
FILES
${qnetworkreply_resource_files}
)
#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# QT_FOR_CONFIG = "gui-private"
# QT_TEST_SERVER_LIST = "vsftpd" "apache2" "ftp-proxy" "danted" "squid"
# testcase.timeout = "600"
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:.:test.pro:NOT ANDROID AND NOT WINRT:
# TEST_HELPER_INSTALLS = "../echo/echo"

View File

@ -0,0 +1,26 @@
# Generated from test.pro.
#####################################################################
## tst_qtcpserver Test:
#####################################################################
add_qt_test(tst_qtcpserver
SOURCES
../tst_qtcpserver.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# MOC_DIR = "tmp"
## Scopes:
#####################################################################
extend_target(tst_qtcpserver CONDITION WIN32
PUBLIC_LIBRARIES
ws2_32
)
#### Keys ignored in scope 6:.:.:test.pro:LINUX:
# QT_TEST_SERVER_LIST = "danted" "cyrus" "squid" "ftp-proxy"

View File

@ -0,0 +1,33 @@
# Generated from test.pro.
#####################################################################
## tst_qudpsocket Test:
#####################################################################
add_qt_test(tst_qudpsocket
SOURCES
../tst_qudpsocket.cpp
INCLUDE_DIRECTORIES
../../../../../shared
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# MOC_DIR = "tmp"
# testcase.timeout = "800"
## Scopes:
#####################################################################
#### Keys ignored in scope 3:.:.:test.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "../debug"
#### Keys ignored in scope 4:.:.:test.pro:else:
# DESTDIR = "../release"
#### Keys ignored in scope 5:.:.:test.pro:else:
# DESTDIR = "../"
#### Keys ignored in scope 6:.:.:test.pro:LINUX:
# QT_TEST_SERVER_LIST = "danted" "echo"

View File

@ -1,10 +1,10 @@
# Generated from deleteLater.pro.
#####################################################################
## tst_deleteLater Binary:
## deleteLater Binary:
#####################################################################
add_qt_executable(tst_deleteLater
add_qt_executable(deleteLater
SOURCES
tst_deleteLater.cpp
PUBLIC_LIBRARIES

View File

@ -1,10 +1,10 @@
# Generated from deleteLater.pro.
#####################################################################
## tst_deleteLater Binary:
## deleteLater Binary:
#####################################################################
add_qt_executable(tst_deleteLater
add_qt_executable(deleteLater
NO_INSTALL # special case
OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} # special case
SOURCES

View File

@ -1,10 +1,10 @@
# Generated from deleteLater_noApp.pro.
#####################################################################
## tst_deleteLater_noApp Binary:
## deleteLater_noApp Binary:
#####################################################################
add_qt_executable(tst_deleteLater_noApp
add_qt_executable(deleteLater_noApp
SOURCES
tst_deleteLater_noApp.cpp
PUBLIC_LIBRARIES

View File

@ -1,10 +1,10 @@
# Generated from deleteLater_noApp.pro.
#####################################################################
## tst_deleteLater_noApp Binary:
## deleteLater_noApp Binary:
#####################################################################
add_qt_executable(tst_deleteLater_noApp
add_qt_executable(deleteLater_noApp
NO_INSTALL # special case
OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} # special case
SOURCES

View File

@ -7,6 +7,8 @@
add_qt_executable(verbose1
SOURCES
../counting/tst_counting.cpp
DEFINES
TESTLIB_VERBOSITY_ARG="-v1"
PUBLIC_LIBRARIES
Qt::Test
)

View File

@ -9,6 +9,8 @@ add_qt_executable(verbose1
OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} # special case
SOURCES
../counting/tst_counting.cpp
DEFINES
TESTLIB_VERBOSITY_ARG="-v1"
PUBLIC_LIBRARIES
Qt::Test
)

View File

@ -7,6 +7,8 @@
add_qt_executable(verbose2
SOURCES
../counting/tst_counting.cpp
DEFINES
TESTLIB_VERBOSITY_ARG="-v2"
PUBLIC_LIBRARIES
Qt::Test
)

View File

@ -9,6 +9,8 @@ add_qt_executable(verbose2
OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} # special case
SOURCES
../counting/tst_counting.cpp
DEFINES
TESTLIB_VERBOSITY_ARG="-v2"
PUBLIC_LIBRARIES
Qt::Test
)

View File

@ -21,6 +21,7 @@ set(qwidget_resource_files
"geometry-fullscreen.dat"
"geometry-maximized.dat"
"geometry.dat"
"hellotr_la.qm"
)
add_qt_resource(tst_qwidget "qwidget"

View File

@ -364,4 +364,5 @@ add_qt_resource(tst_GraphicsViewBenchmark "GraphicsViewBenchmark3"
extend_target(tst_GraphicsViewBenchmark CONDITION TARGET Qt::OpenGL
PUBLIC_LIBRARIES
Qt::OpenGL
Qt::OpenGLWidgets
)

View File

@ -54,4 +54,5 @@ extend_target(embeddedintoforeignwindow CONDITION QT_FEATURE_opengl
../diaglib/glinfo.cpp ../diaglib/glinfo.h
PUBLIC_LIBRARIES
Qt::OpenGL
Qt::OpenGLWidgets
)

View File

@ -19,6 +19,7 @@ add_qt_manual_test(foreignwindows
Qt::CorePrivate
Qt::Gui
Qt::GuiPrivate
Qt::OpenGL
Qt::Widgets
)
@ -54,4 +55,5 @@ extend_target(foreignwindows CONDITION QT_FEATURE_opengl
../diaglib/glinfo.cpp ../diaglib/glinfo.h
PUBLIC_LIBRARIES
Qt::OpenGL
Qt::OpenGLWidgets
)

View File

@ -17,6 +17,7 @@ add_qt_manual_test(lance
Qt::CorePrivate
Qt::Gui
Qt::GuiPrivate
Qt::OpenGLWidgets
Qt::PrintSupport
Qt::Widgets
)
@ -171,5 +172,4 @@ add_qt_resource(lance "images"
extend_target(lance CONDITION TARGET Qt::OpenGL
PUBLIC_LIBRARIES
Qt::OpenGL
Qt::OpenGLWidgets
)