From 6887ae2ff9f66bc30161d6234ca7afa93a5d4b22 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 24 Jul 2019 13:03:33 +0200 Subject: cmake: Enable network test Task-number: QTBUG-74146 Change-Id: Ib29d1531f89676afb2b4df5032529b731ace029d Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann --- tests/auto/network/kernel/CMakeLists.txt | 19 ++++++++++++++ .../network/kernel/qauthenticator/CMakeLists.txt | 20 +++++++++++++++ .../auto/network/kernel/qdnslookup/CMakeLists.txt | 16 ++++++++++++ .../kernel/qdnslookup_appless/CMakeLists.txt | 16 ++++++++++++ .../network/kernel/qhostaddress/CMakeLists.txt | 26 +++++++++++++++++++ tests/auto/network/kernel/qhostinfo/CMakeLists.txt | 30 ++++++++++++++++++++++ .../kernel/qnetworkaddressentry/CMakeLists.txt | 16 ++++++++++++ .../network/kernel/qnetworkdatagram/CMakeLists.txt | 15 +++++++++++ .../kernel/qnetworkinterface/CMakeLists.txt | 19 ++++++++++++++ .../network/kernel/qnetworkproxy/CMakeLists.txt | 16 ++++++++++++ .../kernel/qnetworkproxyfactory/CMakeLists.txt | 18 +++++++++++++ 11 files changed, 211 insertions(+) create mode 100644 tests/auto/network/kernel/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qauthenticator/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qdnslookup/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qdnslookup_appless/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qhostaddress/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qhostinfo/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qnetworkaddressentry/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qnetworkdatagram/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qnetworkinterface/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qnetworkproxy/CMakeLists.txt create mode 100644 tests/auto/network/kernel/qnetworkproxyfactory/CMakeLists.txt (limited to 'tests/auto/network/kernel') diff --git a/tests/auto/network/kernel/CMakeLists.txt b/tests/auto/network/kernel/CMakeLists.txt new file mode 100644 index 0000000000..c1082f60b7 --- /dev/null +++ b/tests/auto/network/kernel/CMakeLists.txt @@ -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() diff --git a/tests/auto/network/kernel/qauthenticator/CMakeLists.txt b/tests/auto/network/kernel/qauthenticator/CMakeLists.txt new file mode 100644 index 0000000000..dd9ee1385c --- /dev/null +++ b/tests/auto/network/kernel/qauthenticator/CMakeLists.txt @@ -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:: +# CONFIG = "testcase" diff --git a/tests/auto/network/kernel/qdnslookup/CMakeLists.txt b/tests/auto/network/kernel/qdnslookup/CMakeLists.txt new file mode 100644 index 0000000000..599e342c21 --- /dev/null +++ b/tests/auto/network/kernel/qdnslookup/CMakeLists.txt @@ -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:: +# CONFIG = "testcase" diff --git a/tests/auto/network/kernel/qdnslookup_appless/CMakeLists.txt b/tests/auto/network/kernel/qdnslookup_appless/CMakeLists.txt new file mode 100644 index 0000000000..fb1a9e8507 --- /dev/null +++ b/tests/auto/network/kernel/qdnslookup_appless/CMakeLists.txt @@ -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:: +# CONFIG = "testcase" diff --git a/tests/auto/network/kernel/qhostaddress/CMakeLists.txt b/tests/auto/network/kernel/qhostaddress/CMakeLists.txt new file mode 100644 index 0000000000..a68e6655d6 --- /dev/null +++ b/tests/auto/network/kernel/qhostaddress/CMakeLists.txt @@ -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:: +# CONFIG = "testcase" + +## Scopes: +##################################################################### + +extend_target(tst_qhostaddress CONDITION WIN32 + PUBLIC_LIBRARIES + ws2_32 +) diff --git a/tests/auto/network/kernel/qhostinfo/CMakeLists.txt b/tests/auto/network/kernel/qhostinfo/CMakeLists.txt new file mode 100644 index 0000000000..ec55f576ef --- /dev/null +++ b/tests/auto/network/kernel/qhostinfo/CMakeLists.txt @@ -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:: +# 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" diff --git a/tests/auto/network/kernel/qnetworkaddressentry/CMakeLists.txt b/tests/auto/network/kernel/qnetworkaddressentry/CMakeLists.txt new file mode 100644 index 0000000000..98d431657d --- /dev/null +++ b/tests/auto/network/kernel/qnetworkaddressentry/CMakeLists.txt @@ -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:: +# CONFIG = "testcase" diff --git a/tests/auto/network/kernel/qnetworkdatagram/CMakeLists.txt b/tests/auto/network/kernel/qnetworkdatagram/CMakeLists.txt new file mode 100644 index 0000000000..eee1c52296 --- /dev/null +++ b/tests/auto/network/kernel/qnetworkdatagram/CMakeLists.txt @@ -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:: +# CONFIG = "testcase" "console" diff --git a/tests/auto/network/kernel/qnetworkinterface/CMakeLists.txt b/tests/auto/network/kernel/qnetworkinterface/CMakeLists.txt new file mode 100644 index 0000000000..8005c18fd0 --- /dev/null +++ b/tests/auto/network/kernel/qnetworkinterface/CMakeLists.txt @@ -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:: +# CONFIG = "testcase" diff --git a/tests/auto/network/kernel/qnetworkproxy/CMakeLists.txt b/tests/auto/network/kernel/qnetworkproxy/CMakeLists.txt new file mode 100644 index 0000000000..48264cdd99 --- /dev/null +++ b/tests/auto/network/kernel/qnetworkproxy/CMakeLists.txt @@ -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:: +# CONFIG = "testcase" diff --git a/tests/auto/network/kernel/qnetworkproxyfactory/CMakeLists.txt b/tests/auto/network/kernel/qnetworkproxyfactory/CMakeLists.txt new file mode 100644 index 0000000000..b54ebf78bc --- /dev/null +++ b/tests/auto/network/kernel/qnetworkproxyfactory/CMakeLists.txt @@ -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:: +# CONFIG = "testcase" -- cgit v1.2.3