diff options
Diffstat (limited to 'tests/auto/network/access')
19 files changed, 375 insertions, 1 deletions
diff --git a/tests/auto/network/access/CMakeLists.txt b/tests/auto/network/access/CMakeLists.txt new file mode 100644 index 0000000000..9f8513dccb --- /dev/null +++ b/tests/auto/network/access/CMakeLists.txt @@ -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() diff --git a/tests/auto/network/access/hpack/CMakeLists.txt b/tests/auto/network/access/hpack/CMakeLists.txt new file mode 100644 index 0000000000..104b2830f6 --- /dev/null +++ b/tests/auto/network/access/hpack/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/hsts/CMakeLists.txt b/tests/auto/network/access/hsts/CMakeLists.txt new file mode 100644 index 0000000000..a943d78074 --- /dev/null +++ b/tests/auto/network/access/hsts/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/http2/CMakeLists.txt b/tests/auto/network/access/http2/CMakeLists.txt new file mode 100644 index 0000000000..0dff68cb27 --- /dev/null +++ b/tests/auto/network/access/http2/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qabstractnetworkcache/CMakeLists.txt b/tests/auto/network/access/qabstractnetworkcache/CMakeLists.txt new file mode 100644 index 0000000000..a4708b7606 --- /dev/null +++ b/tests/auto/network/access/qabstractnetworkcache/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qftp/CMakeLists.txt b/tests/auto/network/access/qftp/CMakeLists.txt new file mode 100644 index 0000000000..55564e6fba --- /dev/null +++ b/tests/auto/network/access/qftp/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qhttpnetworkconnection/CMakeLists.txt b/tests/auto/network/access/qhttpnetworkconnection/CMakeLists.txt new file mode 100644 index 0000000000..04fff87674 --- /dev/null +++ b/tests/auto/network/access/qhttpnetworkconnection/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qhttpnetworkreply/CMakeLists.txt b/tests/auto/network/access/qhttpnetworkreply/CMakeLists.txt new file mode 100644 index 0000000000..bbc1922fdd --- /dev/null +++ b/tests/auto/network/access/qhttpnetworkreply/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qnetworkaccessmanager/CMakeLists.txt b/tests/auto/network/access/qnetworkaccessmanager/CMakeLists.txt new file mode 100644 index 0000000000..a5eda647d9 --- /dev/null +++ b/tests/auto/network/access/qnetworkaccessmanager/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qnetworkcachemetadata/CMakeLists.txt b/tests/auto/network/access/qnetworkcachemetadata/CMakeLists.txt new file mode 100644 index 0000000000..8867e79f68 --- /dev/null +++ b/tests/auto/network/access/qnetworkcachemetadata/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qnetworkcookie/CMakeLists.txt b/tests/auto/network/access/qnetworkcookie/CMakeLists.txt new file mode 100644 index 0000000000..0820f7fdd8 --- /dev/null +++ b/tests/auto/network/access/qnetworkcookie/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qnetworkcookiejar/CMakeLists.txt b/tests/auto/network/access/qnetworkcookiejar/CMakeLists.txt new file mode 100644 index 0000000000..d7302db404 --- /dev/null +++ b/tests/auto/network/access/qnetworkcookiejar/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qnetworkdiskcache/CMakeLists.txt b/tests/auto/network/access/qnetworkdiskcache/CMakeLists.txt new file mode 100644 index 0000000000..0d50ab6d21 --- /dev/null +++ b/tests/auto/network/access/qnetworkdiskcache/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qnetworkreply/CMakeLists.txt b/tests/auto/network/access/qnetworkreply/CMakeLists.txt new file mode 100644 index 0000000000..f7efa8f7f3 --- /dev/null +++ b/tests/auto/network/access/qnetworkreply/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from qnetworkreply.pro. + +add_subdirectory(test) + +if(NOT WINRT) + add_subdirectory(echo) +endif() diff --git a/tests/auto/network/access/qnetworkreply/echo/CMakeLists.txt b/tests/auto/network/access/qnetworkreply/echo/CMakeLists.txt new file mode 100644 index 0000000000..acb3f8a82e --- /dev/null +++ b/tests/auto/network/access/qnetworkreply/echo/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qnetworkreply/test/CMakeLists.txt b/tests/auto/network/access/qnetworkreply/test/CMakeLists.txt new file mode 100644 index 0000000000..df589b67da --- /dev/null +++ b/tests/auto/network/access/qnetworkreply/test/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/qnetworkreply/test/test.pro b/tests/auto/network/access/qnetworkreply/test/test.pro index 4cc1f6431e..d3385c1929 100644 --- a/tests/auto/network/access/qnetworkreply/test/test.pro +++ b/tests/auto/network/access/qnetworkreply/test/test.pro @@ -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 diff --git a/tests/auto/network/access/qnetworkrequest/CMakeLists.txt b/tests/auto/network/access/qnetworkrequest/CMakeLists.txt new file mode 100644 index 0000000000..3bf1d3f560 --- /dev/null +++ b/tests/auto/network/access/qnetworkrequest/CMakeLists.txt @@ -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" diff --git a/tests/auto/network/access/spdy/CMakeLists.txt b/tests/auto/network/access/spdy/CMakeLists.txt new file mode 100644 index 0000000000..ac70833b56 --- /dev/null +++ b/tests/auto/network/access/spdy/CMakeLists.txt @@ -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" |