cmake: Enable network test

Task-number: QTBUG-74146
Change-Id: Ib29d1531f89676afb2b4df5032529b731ace029d
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Liang Qi 2019-07-24 13:03:33 +02:00 committed by Alexandru Croitor
parent 1307736c7d
commit 6887ae2ff9
74 changed files with 1565 additions and 5 deletions

View File

@ -26,7 +26,7 @@ if (NOT APPLE_UIKIT AND TARGET Qt::Gui)
add_subdirectory(gui)
endif()
if (TARGET Qt::Network AND NOT WINRT)
# add_subdirectory(network)
add_subdirectory(network)
endif()
if (TARGET Qt::OpenGL AND NOT WINRT)
add_subdirectory(opengl)

View File

@ -0,0 +1,13 @@
# Generated from network.pro.
add_subdirectory(access)
add_subdirectory(bearer)
add_subdirectory(kernel)
add_subdirectory(ssl)
add_subdirectory(socket)
if(WIN32)
endif()
if(WIN32 OR APPLE)
endif()

View File

@ -0,0 +1,21 @@
# Generated from access.pro.
add_subdirectory(qnetworkdiskcache)
add_subdirectory(qnetworkcookiejar)
add_subdirectory(qnetworkaccessmanager)
add_subdirectory(qnetworkcookie)
add_subdirectory(qnetworkrequest)
add_subdirectory(qnetworkreply)
add_subdirectory(spdy)
add_subdirectory(qnetworkcachemetadata)
add_subdirectory(qabstractnetworkcache)
if(QT_FEATURE_private_tests)
add_subdirectory(qhttpnetworkconnection)
add_subdirectory(qhttpnetworkreply)
add_subdirectory(qftp)
add_subdirectory(hpack)
add_subdirectory(http2)
add_subdirectory(hsts)
endif()

View File

@ -0,0 +1,20 @@
# Generated from hpack.pro.
#####################################################################
## tst_hpack Test:
#####################################################################
add_qt_test(tst_hpack
GUI
SOURCES
tst_hpack.cpp
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:hpack.pro:<TRUE>:
# CONFIG = "testcase" "parallel_test" "c++11"
# TEMPLATE = "app"

View File

@ -0,0 +1,20 @@
# Generated from hsts.pro.
#####################################################################
## tst_qhsts Test:
#####################################################################
add_qt_test(tst_qhsts
GUI
SOURCES
tst_qhsts.cpp
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:hsts.pro:<TRUE>:
# CONFIG = "testcase" "parallel_test" "c++11"
# TEMPLATE = "app"

View File

@ -0,0 +1,25 @@
# Generated from http2.pro.
#####################################################################
## tst_http2 Test:
#####################################################################
add_qt_test(tst_http2
GUI
SOURCES
../../../../shared/emulationdetector.h
http2srv.cpp http2srv.h
tst_http2.cpp
DEFINES
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
INCLUDE_DIRECTORIES
../../../../shared
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:http2.pro:<TRUE>:
# CONFIG = "testcase" "parallel_test" "c++11"

View File

@ -0,0 +1,26 @@
# Generated from qabstractnetworkcache.pro.
#####################################################################
## tst_qabstractnetworkcache Test:
#####################################################################
# Collect test data
file(GLOB test_data_glob
LIST_DIRECTORIES true
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"tests/*")
list(APPEND test_data ${test_data_glob})
add_qt_test(tst_qabstractnetworkcache
GUI
SOURCES
tst_qabstractnetworkcache.cpp
PUBLIC_LIBRARIES
Qt::Network
TESTDATA ${test_data}
)
#### Keys ignored in scope 1:.:.:qabstractnetworkcache.pro:<TRUE>:
# CONFIG = "testcase" "unsupported/testserver"
# QT_TEST_SERVER_LIST = "apache2"

View File

@ -0,0 +1,19 @@
# Generated from qftp.pro.
#####################################################################
## tst_qftp Test:
#####################################################################
add_qt_test(tst_qftp
GUI
SOURCES
tst_qftp.cpp
LIBRARIES
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qftp.pro:<TRUE>:
# CONFIG = "testcase" "unsupported/testserver"
# QT_TEST_SERVER_LIST = "vsftpd" "ftp-proxy" "squid" "danted"

View File

@ -0,0 +1,20 @@
# Generated from qhttpnetworkconnection.pro.
#####################################################################
## tst_qhttpnetworkconnection Test:
#####################################################################
add_qt_test(tst_qhttpnetworkconnection
GUI
SOURCES
tst_qhttpnetworkconnection.cpp
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qhttpnetworkconnection.pro:<TRUE>:
# CONFIG = "testcase" "unsupported/testserver"
# QT_TEST_SERVER_LIST = "apache2"

View File

@ -0,0 +1,19 @@
# Generated from qhttpnetworkreply.pro.
#####################################################################
## tst_qhttpnetworkreply Test:
#####################################################################
add_qt_test(tst_qhttpnetworkreply
GUI
SOURCES
tst_qhttpnetworkreply.cpp
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qhttpnetworkreply.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,16 @@
# Generated from qnetworkaccessmanager.pro.
#####################################################################
## tst_qnetworkaccessmanager Test:
#####################################################################
add_qt_test(tst_qnetworkaccessmanager
GUI
SOURCES
tst_qnetworkaccessmanager.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkaccessmanager.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,16 @@
# Generated from qnetworkcachemetadata.pro.
#####################################################################
## tst_qnetworkcachemetadata Test:
#####################################################################
add_qt_test(tst_qnetworkcachemetadata
GUI
SOURCES
tst_qnetworkcachemetadata.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkcachemetadata.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,16 @@
# Generated from qnetworkcookie.pro.
#####################################################################
## tst_qnetworkcookie Test:
#####################################################################
add_qt_test(tst_qnetworkcookie
GUI
SOURCES
tst_qnetworkcookie.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkcookie.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,23 @@
# Generated from qnetworkcookiejar.pro.
#####################################################################
## tst_qnetworkcookiejar Test:
#####################################################################
# Collect test data
list(APPEND test_data "parser.json")
add_qt_test(tst_qnetworkcookiejar
GUI
SOURCES
tst_qnetworkcookiejar.cpp
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
TESTDATA ${test_data}
)
#### Keys ignored in scope 1:.:.:qnetworkcookiejar.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,16 @@
# Generated from qnetworkdiskcache.pro.
#####################################################################
## tst_qnetworkdiskcache Test:
#####################################################################
add_qt_test(tst_qnetworkdiskcache
GUI
SOURCES
tst_qnetworkdiskcache.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkdiskcache.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,7 @@
# Generated from qnetworkreply.pro.
add_subdirectory(test)
if(NOT WINRT)
add_subdirectory(echo)
endif()

View File

@ -0,0 +1,13 @@
# Generated from echo.pro.
#####################################################################
## echo Binary:
#####################################################################
add_qt_executable(echo
SOURCES
main.cpp
)
#### Keys ignored in scope 1:.:.:echo.pro:<TRUE>:
# CONFIG = "-debug_and_release_target" "cmdline"

View File

@ -0,0 +1,56 @@
# 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 test_data_glob
LIST_DIRECTORIES true
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
GUI
SOURCES
../../../../../shared/emulationdetector.h
../tst_qnetworkreply.cpp
INCLUDE_DIRECTORIES
../../../../../shared
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
TESTDATA ${test_data}
)
# Resources:
add_qt_resource(tst_qnetworkreply "qnetworkreply"
BASE
".."
FILES
resource
)
#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# CONFIG = "testcase" "-debug_and_release_target" "unsupported/testserver"
# 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

@ -4,7 +4,7 @@ CONFIG -= debug_and_release_target
INCLUDEPATH += ../../../../../shared/
HEADERS += ../../../../../shared/emulationdetector.h
SOURCES += ../tst_qnetworkreply.cpp
TARGET = ../tst_qnetworkreply
TARGET = tst_qnetworkreply
QT = core-private network-private testlib
QT_FOR_CONFIG += gui-private

View File

@ -0,0 +1,16 @@
# Generated from qnetworkrequest.pro.
#####################################################################
## tst_qnetworkrequest Test:
#####################################################################
add_qt_test(tst_qnetworkrequest
GUI
SOURCES
tst_qnetworkrequest.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkrequest.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,25 @@
# Generated from spdy.pro.
#####################################################################
## tst_spdy Test:
#####################################################################
add_qt_test(tst_spdy
GUI
SOURCES
tst_spdy.cpp
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:spdy.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:.:spdy.pro:WIN32:
# CONFIG = "insignificant_test"

View File

@ -0,0 +1,6 @@
# Generated from bearer.pro.
add_subdirectory(qnetworkconfiguration)
add_subdirectory(qnetworkconfigurationmanager)
add_subdirectory(qnetworkconfigurationmanagerqappless)
add_subdirectory(qnetworksession)

View File

@ -0,0 +1,17 @@
# Generated from qnetworkconfiguration.pro.
#####################################################################
## tst_qnetworkconfiguration Test:
#####################################################################
add_qt_test(tst_qnetworkconfiguration
GUI
SOURCES
../qbearertestcommon.h
tst_qnetworkconfiguration.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkconfiguration.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,17 @@
# Generated from qnetworkconfigurationmanager.pro.
#####################################################################
## tst_qnetworkconfigurationmanager Test:
#####################################################################
add_qt_test(tst_qnetworkconfigurationmanager
GUI
SOURCES
../qbearertestcommon.h
tst_qnetworkconfigurationmanager.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkconfigurationmanager.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,17 @@
# Generated from qnetworkconfigurationmanagerqappless.pro.
#####################################################################
## tst_qnetworkconfigurationmanagerqappless Test:
#####################################################################
add_qt_test(tst_qnetworkconfigurationmanagerqappless
GUI
SOURCES
../qbearertestcommon.h
tst_qnetworkconfigurationmanagerqappless.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkconfigurationmanagerqappless.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,7 @@
# Generated from qnetworksession.pro.
add_subdirectory(test)
if(NOT WINRT)
add_subdirectory(lackey)
endif()

View File

@ -0,0 +1,16 @@
# Generated from lackey.pro.
#####################################################################
## lackey Binary:
#####################################################################
add_qt_executable(lackey
SOURCES
main.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:lackey.pro:<TRUE>:
# CONFIG = "cmdline"
# DESTDIR = "./"

View File

@ -0,0 +1,34 @@
# Generated from test.pro.
#####################################################################
## tst_qnetworksession Test:
#####################################################################
add_qt_test(tst_qnetworksession
GUI
SOURCES
../../qbearertestcommon.h
tst_qnetworksession.cpp
LIBRARIES
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# CONFIG = "testcase"
## 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:NOT ANDROID AND NOT WINRT:
# TEST_HELPER_INSTALLS = "../lackey/lackey"

View File

@ -0,0 +1,19 @@
add_subdirectory(qdnslookup)
add_subdirectory(qdnslookup_appless)
add_subdirectory(qnetworkinterface)
add_subdirectory(qnetworkdatagram)
add_subdirectory(qnetworkaddressentry)
add_subdirectory(qhostaddress)
if(NOT WINRT)
add_subdirectory(qnetworkproxy)
add_subdirectory(qnetworkproxyfactory)
endif()
if(QT_FEATURE_private_tests)
add_subdirectory(qauthenticator)
if(NOT APPLE_OSX)
add_subdirectory(qhostinfo)
endif()
endif()

View File

@ -0,0 +1,20 @@
# Generated from qauthenticator.pro.
#####################################################################
## tst_qauthenticator Test:
#####################################################################
add_qt_test(tst_qauthenticator
GUI
SOURCES
tst_qauthenticator.cpp
DEFINES
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
LIBRARIES
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qauthenticator.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,16 @@
# Generated from qdnslookup.pro.
#####################################################################
## tst_qdnslookup Test:
#####################################################################
add_qt_test(tst_qdnslookup
GUI
SOURCES
tst_qdnslookup.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qdnslookup.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,16 @@
# Generated from qdnslookup_appless.pro.
#####################################################################
## tst_qdnslookup_appless Test:
#####################################################################
add_qt_test(tst_qdnslookup_appless
GUI
SOURCES
tst_qdnslookup_appless.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qdnslookup_appless.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,26 @@
# Generated from qhostaddress.pro.
#####################################################################
## tst_qhostaddress Test:
#####################################################################
add_qt_test(tst_qhostaddress
GUI
SOURCES
tst_qhostaddress.cpp
LIBRARIES
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qhostaddress.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
extend_target(tst_qhostaddress CONDITION WIN32
PUBLIC_LIBRARIES
ws2_32
)

View File

@ -0,0 +1,30 @@
# Generated from qhostinfo.pro.
#####################################################################
## tst_qhostinfo Test:
#####################################################################
add_qt_test(tst_qhostinfo
GUI
SOURCES
tst_qhostinfo.cpp
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qhostinfo.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
extend_target(tst_qhostinfo CONDITION WIN32
PUBLIC_LIBRARIES
ws2_32
)
#### Keys ignored in scope 3:.:.:qhostinfo.pro:WINRT:
# WINRT_MANIFEST.capabilities = "internetClientServer"

View File

@ -0,0 +1,16 @@
# Generated from qnetworkaddressentry.pro.
#####################################################################
## tst_qnetworkaddressentry Test:
#####################################################################
add_qt_test(tst_qnetworkaddressentry
GUI
SOURCES
tst_qnetworkaddressentry.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkaddressentry.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,15 @@
# Generated from qnetworkdatagram.pro.
#####################################################################
## tst_qnetworkdatagram Test:
#####################################################################
add_qt_test(tst_qnetworkdatagram
SOURCES
tst_qnetworkdatagram.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkdatagram.pro:<TRUE>:
# CONFIG = "testcase" "console"

View File

@ -0,0 +1,19 @@
# Generated from qnetworkinterface.pro.
#####################################################################
## tst_qnetworkinterface Test:
#####################################################################
add_qt_test(tst_qnetworkinterface
GUI
SOURCES
../../../../shared/emulationdetector.h
tst_qnetworkinterface.cpp
INCLUDE_DIRECTORIES
../../../../shared
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkinterface.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,16 @@
# Generated from qnetworkproxy.pro.
#####################################################################
## tst_qnetworkproxy Test:
#####################################################################
add_qt_test(tst_qnetworkproxy
GUI
SOURCES
tst_qnetworkproxy.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkproxy.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,18 @@
# Generated from qnetworkproxyfactory.pro.
#####################################################################
## tst_qnetworkproxyfactory Test:
#####################################################################
add_qt_test(tst_qnetworkproxyfactory
GUI
SOURCES
tst_qnetworkproxyfactory.cpp
LIBRARIES
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qnetworkproxyfactory.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,20 @@
# Generated from socket.pro.
add_subdirectory(qudpsocket)
### add_subdirectory(qlocalsocket)
add_subdirectory(qtcpserver)
add_subdirectory(qabstractsocket)
if(QT_FEATURE_private_tests)
add_subdirectory(platformsocketengine)
add_subdirectory(qtcpsocket)
if(NOT WINRT)
add_subdirectory(qhttpsocketengine)
add_subdirectory(qsocks5socketengine)
endif()
endif()
if(QT_FEATURE_sctp)
add_subdirectory(qsctpsocket)
endif()

View File

@ -0,0 +1,37 @@
# Generated from platformsocketengine.pro.
#####################################################################
## tst_platformsocketengine Test:
#####################################################################
add_qt_test(tst_platformsocketengine
GUI
SOURCES
tst_platformsocketengine.cpp
INCLUDE_DIRECTORIES
${PROJECT_SOURCE_DIR}/src/network
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:platformsocketengine.pro:<TRUE>:
# CONFIG = "testcase"
# MOC_DIR = "tmp"
## Scopes:
#####################################################################
extend_target(tst_platformsocketengine CONDITION WIN32
PUBLIC_LIBRARIES
ws2_32
)
extend_target(tst_platformsocketengine CONDITION QT_FEATURE_reduce_exports AND UNIX
SOURCES
${PROJECT_SOURCE_DIR}/src/network/socket/qabstractsocketengine.cpp
${PROJECT_SOURCE_DIR}/src/network/socket/qnativesocketengine.cpp
${PROJECT_SOURCE_DIR}/src/network/socket/qnativesocketengine_unix.cpp
)

View File

@ -0,0 +1,16 @@
# Generated from qabstractsocket.pro.
#####################################################################
## tst_qabstractsocket Test:
#####################################################################
add_qt_test(tst_qabstractsocket
GUI
SOURCES
tst_qabstractsocket.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qabstractsocket.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,41 @@
# Generated from qhttpsocketengine.pro.
#####################################################################
## tst_qhttpsocketengine Test:
#####################################################################
add_qt_test(tst_qhttpsocketengine
GUI
SOURCES
tst_qhttpsocketengine.cpp
INCLUDE_DIRECTORIES
${PROJECT_SOURCE_DIR}/src/network
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qhttpsocketengine.pro:<TRUE>:
# CONFIG = "testcase"
# MOC_DIR = "tmp"
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:.:qhttpsocketengine.pro:LINUX:
# CONFIG = "unsupported/testserver"
# QT_TEST_SERVER_LIST = "squid" "danted" "cyrus" "apache2"
extend_target(tst_qhttpsocketengine CONDITION WIN32
PUBLIC_LIBRARIES
ws2_32
)
extend_target(tst_qhttpsocketengine CONDITION QT_FEATURE_reduce_exports AND UNIX
SOURCES
${PROJECT_SOURCE_DIR}/src/network/socket/qabstractsocketengine.cpp
${PROJECT_SOURCE_DIR}/src/network/socket/qnativesocketengine.cpp
${PROJECT_SOURCE_DIR}/src/network/socket/qnativesocketengine_unix.cpp
)

View File

@ -0,0 +1,4 @@
# Generated from qlocalsocket.pro.
add_subdirectory(test)
add_subdirectory(socketprocess)

View File

@ -0,0 +1,17 @@
# Generated from socketprocess.pro.
#####################################################################
## socketprocess Binary:
#####################################################################
add_qt_executable(socketprocess
SOURCES
main.cpp
PUBLIC_LIBRARIES
Qt::Network
Qt::Test
)
#### Keys ignored in scope 1:.:.:socketprocess.pro:<TRUE>:
# CONFIG = "cmdline"
# DESTDIR = "./"

View File

@ -0,0 +1,32 @@
# Generated from test.pro.
#####################################################################
## tst_qlocalsocket Test:
#####################################################################
add_qt_test(tst_qlocalsocket
GUI
SOURCES
../tst_qlocalsocket.cpp
DEFINES
QLOCALSERVER_DEBUG
QLOCALSOCKET_DEBUG
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../\\\"
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# CONFIG = "testcase"
## 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 = ".."

View File

@ -0,0 +1,16 @@
# Generated from qsctpsocket.pro.
#####################################################################
## tst_qsctpsocket Test:
#####################################################################
add_qt_test(tst_qsctpsocket
GUI
SOURCES
tst_qsctpsocket.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qsctpsocket.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,41 @@
# Generated from qsocks5socketengine.pro.
#####################################################################
## tst_qsocks5socketengine Test:
#####################################################################
add_qt_test(tst_qsocks5socketengine
GUI
SOURCES
tst_qsocks5socketengine.cpp
INCLUDE_DIRECTORIES
${PROJECT_SOURCE_DIR}/src/network
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qsocks5socketengine.pro:<TRUE>:
# CONFIG = "testcase"
# MOC_DIR = "tmp"
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:.:qsocks5socketengine.pro:LINUX:
# CONFIG = "unsupported/testserver"
# QT_TEST_SERVER_LIST = "danted" "apache2" "cyrus"
extend_target(tst_qsocks5socketengine CONDITION WIN32
PUBLIC_LIBRARIES
ws2_32
)
extend_target(tst_qsocks5socketengine CONDITION QT_FEATURE_reduce_exports AND UNIX
SOURCES
${PROJECT_SOURCE_DIR}/src/network/socket/qabstractsocketengine.cpp
${PROJECT_SOURCE_DIR}/src/network/socket/qnativesocketengine.cpp
${PROJECT_SOURCE_DIR}/src/network/socket/qnativesocketengine_unix.cpp
)

View File

@ -0,0 +1,4 @@
# Generated from qtcpserver.pro.
add_subdirectory(test)
add_subdirectory(crashingServer)

View File

@ -0,0 +1,23 @@
# Generated from crashingServer.pro.
#####################################################################
## crashingServer Binary:
#####################################################################
add_qt_executable(crashingServer
GUI
SOURCES
main.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:crashingServer.pro:<TRUE>:
# CONFIG = "-app_bundle"
# DESTDIR = "./"
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:.:crashingServer.pro:mingw:
# CONFIG = "console"

View File

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

View File

@ -3,13 +3,13 @@ SOURCES += ../tst_qtcpserver.cpp
win32: QMAKE_USE += ws2_32
TARGET = ../tst_qtcpserver
TARGET = tst_qtcpserver
win32 {
CONFIG(debug, debug|release) {
TARGET = ../../debug/tst_qtcpserver
TARGET = ../debug/tst_qtcpserver
} else {
TARGET = ../../release/tst_qtcpserver
TARGET = ../release/tst_qtcpserver
}
}

View File

@ -0,0 +1,7 @@
# Generated from qtcpsocket.pro.
add_subdirectory(test)
if(NOT VXWORKS)
add_subdirectory(stressTest)
endif()

View File

@ -0,0 +1,20 @@
# Generated from stressTest.pro.
#####################################################################
## stressTest Binary:
#####################################################################
add_qt_executable(stressTest
SOURCES
Test.cpp Test.h
main.cpp
PUBLIC_LIBRARIES
Qt::Network
Qt::Test
)
#### Keys ignored in scope 1:.:.:stressTest.pro:<TRUE>:
# CONFIG = "cmdline"
# DESTDIR = "./"
# MOC_DIR = ".moc/"
# TMP_DIR = ".tmp/"

View File

@ -0,0 +1,40 @@
# Generated from test.pro.
#####################################################################
## tst_qtcpsocket Test:
#####################################################################
add_qt_test(tst_qtcpsocket
GUI
SOURCES
../tst_qtcpsocket.cpp
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
extend_target(tst_qtcpsocket CONDITION WIN32
PUBLIC_LIBRARIES
ws2_32
)
#### Keys ignored in scope 4:.:.:test.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "../debug"
#### Keys ignored in scope 5:.:.:test.pro:else:
# DESTDIR = "../release"
#### Keys ignored in scope 6:.:.:test.pro:else:
# DESTDIR = "../"
#### Keys ignored in scope 7:.:.:test.pro:LINUX:
# CONFIG = "unsupported/testserver"
# QT_TEST_SERVER_LIST = "danted" "squid" "apache2" "ftp-proxy" "vsftpd" "iptables" "cyrus"

View File

@ -0,0 +1,4 @@
# Generated from qudpsocket.pro.
add_subdirectory(test)
add_subdirectory(clientserver)

View File

@ -0,0 +1,16 @@
# Generated from clientserver.pro.
#####################################################################
## clientserver Binary:
#####################################################################
add_qt_executable(clientserver
SOURCES
main.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:clientserver.pro:<TRUE>:
# CONFIG = "cmdline"
# DESTDIR = "./"

View File

@ -0,0 +1,36 @@
# Generated from test.pro.
#####################################################################
## tst_qudpsocket Test:
#####################################################################
add_qt_test(tst_qudpsocket
GUI
SOURCES
../tst_qudpsocket.cpp
INCLUDE_DIRECTORIES
../../../../../shared
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# CONFIG = "testcase"
# 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:
# CONFIG = "unsupported/testserver"
# QT_TEST_SERVER_LIST = "danted" "echo"

View File

@ -0,0 +1,15 @@
# Generated from udpServer.pro.
#####################################################################
## udpServer Binary:
#####################################################################
add_qt_executable(udpServer
SOURCES
main.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:udpServer.pro:<TRUE>:
# CONFIG = "cmdline"

View File

@ -0,0 +1,36 @@
# Generated from ssl.pro.
add_subdirectory(qpassworddigestor)
add_subdirectory(qsslcertificate)
add_subdirectory(qsslcipher)
add_subdirectory(qsslellipticcurve)
add_subdirectory(qsslerror)
add_subdirectory(qsslkey)
if(QT_FEATURE_ssl)
if(QT_FEATURE_private_tests)
add_subdirectory(qsslsocket)
if(NOT WINRT)
add_subdirectory(qsslsocket_onDemandCertificates_member)
add_subdirectory(qsslsocket_onDemandCertificates_static)
endif()
if(QT_FEATURE_dtls)
add_subdirectory(qdtlscookie)
add_subdirectory(qdtls)
endif()
if(QT_FEATURE_ocsp)
add_subdirectory(qocsp)
endif()
endif()
endif()
if(QT_FEATURE_ssl)
if(QT_FEATURE_private_tests)
add_subdirectory(qasn1element)
add_subdirectory(qssldiffiehellmanparameters)
endif()
endif()

View File

@ -0,0 +1,18 @@
# Generated from qasn1element.pro.
#####################################################################
## tst_qasn1element Test:
#####################################################################
add_qt_test(tst_qasn1element
GUI
SOURCES
tst_qasn1element.cpp
LIBRARIES
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qasn1element.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,31 @@
# Generated from qdtls.pro.
#####################################################################
## tst_qdtls Test:
#####################################################################
# Collect test data
list(APPEND test_data "certs")
add_qt_test(tst_qdtls
GUI
SOURCES
tst_qdtls.cpp
LIBRARIES
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
TESTDATA ${test_data}
)
#### Keys ignored in scope 1:.:.:qdtls.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
#### Keys ignored in scope 3:.:.:qdtls.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "debug"
#### Keys ignored in scope 4:.:.:qdtls.pro:else:
# DESTDIR = "release"

View File

@ -0,0 +1,27 @@
# Generated from qdtlscookie.pro.
#####################################################################
## tst_qdtlscookie Test:
#####################################################################
add_qt_test(tst_qdtlscookie
GUI
SOURCES
tst_qdtlscookie.cpp
LIBRARIES
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qdtlscookie.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
#### Keys ignored in scope 3:.:.:qdtlscookie.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "debug"
#### Keys ignored in scope 4:.:.:qdtlscookie.pro:else:
# DESTDIR = "release"

View File

@ -0,0 +1,27 @@
# Generated from qocsp.pro.
#####################################################################
## tst_qocsp Test:
#####################################################################
add_qt_test(tst_qocsp
GUI
SOURCES
tst_qocsp.cpp
LIBRARIES
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qocsp.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
#### Keys ignored in scope 3:.:.:qocsp.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "debug"
#### Keys ignored in scope 4:.:.:qocsp.pro:else:
# DESTDIR = "release"

View File

@ -0,0 +1,16 @@
# Generated from qpassworddigestor.pro.
#####################################################################
## tst_qpassworddigestor Test:
#####################################################################
add_qt_test(tst_qpassworddigestor
GUI
SOURCES
tst_qpassworddigestor.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qpassworddigestor.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,43 @@
# Generated from qsslcertificate.pro.
#####################################################################
## tst_qsslcertificate Test:
#####################################################################
# Collect test data
file(GLOB test_data_glob
LIST_DIRECTORIES true
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"certificates/*")
list(APPEND test_data ${test_data_glob})
file(GLOB test_data_glob
LIST_DIRECTORIES true
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"more-certificates/*")
list(APPEND test_data ${test_data_glob})
file(GLOB test_data_glob
LIST_DIRECTORIES true
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"verify-certs/*")
list(APPEND test_data ${test_data_glob})
file(GLOB test_data_glob
LIST_DIRECTORIES true
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"pkcs12/*")
list(APPEND test_data ${test_data_glob})
add_qt_test(tst_qsslcertificate
GUI
SOURCES
tst_qsslcertificate.cpp
PUBLIC_LIBRARIES
Qt::Network
TESTDATA ${test_data}
)
#### Keys ignored in scope 1:.:.:qsslcertificate.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,25 @@
# Generated from qsslcipher.pro.
#####################################################################
## tst_qsslcipher Test:
#####################################################################
add_qt_test(tst_qsslcipher
GUI
SOURCES
tst_qsslcipher.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qsslcipher.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
#### Keys ignored in scope 3:.:.:qsslcipher.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "debug"
#### Keys ignored in scope 4:.:.:qsslcipher.pro:else:
# DESTDIR = "release"

View File

@ -0,0 +1,16 @@
# Generated from qssldiffiehellmanparameters.pro.
#####################################################################
## tst_qssldiffiehellmanparameters Test:
#####################################################################
add_qt_test(tst_qssldiffiehellmanparameters
GUI
SOURCES
tst_qssldiffiehellmanparameters.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qssldiffiehellmanparameters.pro:<TRUE>:
# CONFIG = "testcase" "parallel_test"

View File

@ -0,0 +1,16 @@
# Generated from qsslellipticcurve.pro.
#####################################################################
## tst_qsslellipticcurve Test:
#####################################################################
add_qt_test(tst_qsslellipticcurve
GUI
SOURCES
tst_qsslellipticcurve.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qsslellipticcurve.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,25 @@
# Generated from qsslerror.pro.
#####################################################################
## tst_qsslerror Test:
#####################################################################
add_qt_test(tst_qsslerror
GUI
SOURCES
tst_qsslerror.cpp
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qsslerror.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
#### Keys ignored in scope 3:.:.:qsslerror.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "debug"
#### Keys ignored in scope 4:.:.:qsslerror.pro:else:
# DESTDIR = "release"

View File

@ -0,0 +1,43 @@
# Generated from qsslkey.pro.
#####################################################################
## tst_qsslkey Test:
#####################################################################
# Collect test data
file(GLOB test_data_glob
LIST_DIRECTORIES true
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"keys/*")
list(APPEND test_data ${test_data_glob})
file(GLOB test_data_glob
LIST_DIRECTORIES true
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"rsa-*.pem")
list(APPEND test_data ${test_data_glob})
add_qt_test(tst_qsslkey
GUI
SOURCES
tst_qsslkey.cpp
PUBLIC_LIBRARIES
Qt::Network
TESTDATA ${test_data}
)
#### Keys ignored in scope 1:.:.:qsslkey.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
extend_target(tst_qsslkey CONDITION QT_FEATURE_private_tests
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Core
Qt::Network
)

View File

@ -0,0 +1,38 @@
# Generated from qsslsocket.pro.
#####################################################################
## tst_qsslsocket Test:
#####################################################################
# Collect test data
list(APPEND test_data "certs")
add_qt_test(tst_qsslsocket
GUI
SOURCES
tst_qsslsocket.cpp
DEFINES
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
TESTDATA ${test_data}
)
#### Keys ignored in scope 1:.:.:qsslsocket.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
#### Keys ignored in scope 3:.:.:qsslsocket.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "debug"
#### Keys ignored in scope 4:.:.:qsslsocket.pro:else:
# DESTDIR = "release"
#### Keys ignored in scope 5:.:.:qsslsocket.pro:LINUX:
# CONFIG = "unsupported/testserver"
# QT_TEST_SERVER_LIST = "squid" "danted" "cyrus" "apache2" "echo"

View File

@ -0,0 +1,35 @@
# Generated from qsslsocket_onDemandCertificates_member.pro.
#####################################################################
## tst_qsslsocket_onDemandCertificates_member Test:
#####################################################################
add_qt_test(tst_qsslsocket_onDemandCertificates_member
GUI
SOURCES
tst_qsslsocket_onDemandCertificates_member.cpp
DEFINES
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qsslsocket_onDemandCertificates_member.pro:<TRUE>:
# CONFIG = "testcase"
# testcase.timeout = "300"
## Scopes:
#####################################################################
#### Keys ignored in scope 3:.:.:qsslsocket_onDemandCertificates_member.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "debug"
#### Keys ignored in scope 4:.:.:qsslsocket_onDemandCertificates_member.pro:else:
# DESTDIR = "release"
#### Keys ignored in scope 5:.:.:qsslsocket_onDemandCertificates_member.pro:LINUX:
# CONFIG = "unsupported/testserver"
# QT_TEST_SERVER_LIST = "squid" "danted"

View File

@ -0,0 +1,34 @@
# Generated from qsslsocket_onDemandCertificates_static.pro.
#####################################################################
## tst_qsslsocket_onDemandCertificates_static Test:
#####################################################################
add_qt_test(tst_qsslsocket_onDemandCertificates_static
GUI
SOURCES
tst_qsslsocket_onDemandCertificates_static.cpp
DEFINES
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
PUBLIC_LIBRARIES
Qt::Network
)
#### Keys ignored in scope 1:.:.:qsslsocket_onDemandCertificates_static.pro:<TRUE>:
# CONFIG = "testcase"
## Scopes:
#####################################################################
#### Keys ignored in scope 3:.:.:qsslsocket_onDemandCertificates_static.pro:(CMAKE_BUILD_TYPE STREQUAL Debug):
# DESTDIR = "debug"
#### Keys ignored in scope 4:.:.:qsslsocket_onDemandCertificates_static.pro:else:
# DESTDIR = "release"
#### Keys ignored in scope 5:.:.:qsslsocket_onDemandCertificates_static.pro:LINUX:
# CONFIG = "unsupported/testserver"
# QT_TEST_SERVER_LIST = "squid" "danted"