diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-06-12 12:04:33 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-06-12 12:04:33 +0200 |
commit | 18c140612f0572b20020d2ae2012d3c036df5196 (patch) | |
tree | 63811d014995e666228278eb98ebf1e69b1d67f9 /tests | |
parent | 05f0b7cb724019557d4b6b03c838896eac766d39 (diff) | |
parent | 38c3591badb47bb745cecdb9843d48ac69f4c384 (diff) |
Merge remote-tracking branch 'origin/wip/cmake' into dev
Change-Id: If53446f41c6576857fff305e587e8c9cc95b6656
Diffstat (limited to 'tests')
-rw-r--r-- | tests/.prev_CMakeLists.txt | 11 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 13 | ||||
-rw-r--r-- | tests/auto/.prev_CMakeLists.txt | 14 | ||||
-rw-r--r-- | tests/auto/CMakeLists.txt | 16 | ||||
-rw-r--r-- | tests/auto/qcoapclient/.prev_CMakeLists.txt | 28 | ||||
-rw-r--r-- | tests/auto/qcoapclient/CMakeLists.txt | 32 | ||||
-rw-r--r-- | tests/auto/qcoapinternalreply/CMakeLists.txt | 16 | ||||
-rw-r--r-- | tests/auto/qcoapinternalrequest/CMakeLists.txt | 16 | ||||
-rw-r--r-- | tests/auto/qcoapmessage/CMakeLists.txt | 15 | ||||
-rw-r--r-- | tests/auto/qcoapoption/CMakeLists.txt | 15 | ||||
-rw-r--r-- | tests/auto/qcoapqudpconnection/.prev_CMakeLists.txt | 28 | ||||
-rw-r--r-- | tests/auto/qcoapqudpconnection/CMakeLists.txt | 30 | ||||
-rw-r--r-- | tests/auto/qcoapreply/CMakeLists.txt | 16 | ||||
-rw-r--r-- | tests/auto/qcoaprequest/CMakeLists.txt | 16 | ||||
-rw-r--r-- | tests/auto/qcoapresource/CMakeLists.txt | 16 |
15 files changed, 282 insertions, 0 deletions
diff --git a/tests/.prev_CMakeLists.txt b/tests/.prev_CMakeLists.txt new file mode 100644 index 0000000..93547b6 --- /dev/null +++ b/tests/.prev_CMakeLists.txt @@ -0,0 +1,11 @@ +# Generated from tests.pro. + +if(NOT TARGET Qt::Test) + cmake_minimum_required(VERSION 3.15.0) + project(QtCoapTests VERSION 6.0.0 LANGUAGES C CXX) + find_package(Qt6 ${PROJECT_VERSION} REQUIRED COMPONENTS BuildInternals Core SET_ME_TO_SOMETHING_USEFUL) + find_package(Qt6 ${PROJECT_VERSION} OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL) + qt_set_up_standalone_tests_build() +endif() + +qt_build_tests() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..c832990 --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from tests.pro. + +if(NOT TARGET Qt::Test) + cmake_minimum_required(VERSION 3.15.0) + project(QtCoapTests VERSION 6.0.0 LANGUAGES C CXX) + # special case begin + find_package(Qt6 ${PROJECT_VERSION} REQUIRED COMPONENTS BuildInternals Core Network Test Coap) + # find_package(Qt6 ${PROJECT_VERSION} OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL) + # special case end + qt_set_up_standalone_tests_build() +endif() + +qt_build_tests() diff --git a/tests/auto/.prev_CMakeLists.txt b/tests/auto/.prev_CMakeLists.txt new file mode 100644 index 0000000..d3c3112 --- /dev/null +++ b/tests/auto/.prev_CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from auto.pro. + +add_subdirectory(cmake) +add_subdirectory(qcoapclient) +add_subdirectory(qcoapmessage) +add_subdirectory(qcoapoption) +add_subdirectory(qcoaprequest) +add_subdirectory(qcoapresource) +if(QT_FEATURE_private_tests) + add_subdirectory(qcoapqudpconnection) + add_subdirectory(qcoapinternalrequest) + add_subdirectory(qcoapinternalreply) + add_subdirectory(qcoapreply) +endif() diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt new file mode 100644 index 0000000..fe81a8f --- /dev/null +++ b/tests/auto/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from auto.pro. + +# special case begin +# add_subdirectory(cmake) +# sepcial case end +add_subdirectory(qcoapclient) +add_subdirectory(qcoapmessage) +add_subdirectory(qcoapoption) +add_subdirectory(qcoaprequest) +add_subdirectory(qcoapresource) +if(QT_FEATURE_private_tests) + add_subdirectory(qcoapqudpconnection) + add_subdirectory(qcoapinternalrequest) + add_subdirectory(qcoapinternalreply) + add_subdirectory(qcoapreply) +endif() diff --git a/tests/auto/qcoapclient/.prev_CMakeLists.txt b/tests/auto/qcoapclient/.prev_CMakeLists.txt new file mode 100644 index 0000000..65a99f5 --- /dev/null +++ b/tests/auto/qcoapclient/.prev_CMakeLists.txt @@ -0,0 +1,28 @@ +# Generated from qcoapclient.pro. + +##################################################################### +## qcoapclient Test: +##################################################################### + +qt_add_test(qcoapclient + SOURCES + ../coapnetworksettings.h + tst_qcoapclient.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) + +#### Keys ignored in scope 1:.:.:qcoapclient.pro:<TRUE>: +# QT_TEST_SERVER_LIST = "californium" "freecoap" + +## Scopes: +##################################################################### + +qt_extend_target(qcoapclient CONDITION NOT COAP_TEST_SERVER_IP_ISEMPTY + DEFINES + COAP_TEST_SERVER_IP=\\\"$ENV{COAP_TEST_SERVER_IP}\\\" +) diff --git a/tests/auto/qcoapclient/CMakeLists.txt b/tests/auto/qcoapclient/CMakeLists.txt new file mode 100644 index 0000000..7e92725 --- /dev/null +++ b/tests/auto/qcoapclient/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from qcoapclient.pro. + +##################################################################### +## qcoapclient Test: +##################################################################### + +qt_add_test(qcoapclient + EXCEPTIONS # special case + GUI + SOURCES + ../coapnetworksettings.h + tst_qcoapclient.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) + +#### Keys ignored in scope 1:.:.:qcoapclient.pro:<TRUE>: +# QT_TEST_SERVER_LIST = "californium" "freecoap" + +## Scopes: +##################################################################### + +# special case begin +qt_extend_target(qcoapclient CONDITION DEFINED ENV{COAP_TEST_SERVER_IP} + DEFINES + COAP_TEST_SERVER_IP=\\\"$ENV{COAP_TEST_SERVER_IP}\\\" +) +# special case end diff --git a/tests/auto/qcoapinternalreply/CMakeLists.txt b/tests/auto/qcoapinternalreply/CMakeLists.txt new file mode 100644 index 0000000..8106aeb --- /dev/null +++ b/tests/auto/qcoapinternalreply/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qcoapinternalreply.pro. + +##################################################################### +## qcoapinternalreply Test: +##################################################################### + +qt_add_test(qcoapinternalreply + SOURCES + tst_qcoapinternalreply.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) diff --git a/tests/auto/qcoapinternalrequest/CMakeLists.txt b/tests/auto/qcoapinternalrequest/CMakeLists.txt new file mode 100644 index 0000000..b33c652 --- /dev/null +++ b/tests/auto/qcoapinternalrequest/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qcoapinternalrequest.pro. + +##################################################################### +## qcoapinternalrequest Test: +##################################################################### + +qt_add_test(qcoapinternalrequest + SOURCES + tst_qcoapinternalrequest.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) diff --git a/tests/auto/qcoapmessage/CMakeLists.txt b/tests/auto/qcoapmessage/CMakeLists.txt new file mode 100644 index 0000000..0d0f713 --- /dev/null +++ b/tests/auto/qcoapmessage/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qcoapmessage.pro. + +##################################################################### +## qcoapmessage Test: +##################################################################### + +qt_add_test(qcoapmessage + SOURCES + tst_qcoapmessage.cpp + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) diff --git a/tests/auto/qcoapoption/CMakeLists.txt b/tests/auto/qcoapoption/CMakeLists.txt new file mode 100644 index 0000000..ee18de8 --- /dev/null +++ b/tests/auto/qcoapoption/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qcoapoption.pro. + +##################################################################### +## qcoapoption Test: +##################################################################### + +qt_add_test(qcoapoption + SOURCES + tst_qcoapoption.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap +) diff --git a/tests/auto/qcoapqudpconnection/.prev_CMakeLists.txt b/tests/auto/qcoapqudpconnection/.prev_CMakeLists.txt new file mode 100644 index 0000000..95be340 --- /dev/null +++ b/tests/auto/qcoapqudpconnection/.prev_CMakeLists.txt @@ -0,0 +1,28 @@ +# Generated from qcoapqudpconnection.pro. + +##################################################################### +## qcoapqudpconnection Test: +##################################################################### + +qt_add_test(qcoapqudpconnection + SOURCES + ../coapnetworksettings.h + tst_qcoapqudpconnection.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) + +#### Keys ignored in scope 1:.:.:qcoapqudpconnection.pro:<TRUE>: +# QT_TEST_SERVER_LIST = "californium" + +## Scopes: +##################################################################### + +qt_extend_target(qcoapqudpconnection CONDITION NOT COAP_TEST_SERVER_IP_ISEMPTY + DEFINES + COAP_TEST_SERVER_IP=\\\"$ENV{COAP_TEST_SERVER_IP}\\\" +) diff --git a/tests/auto/qcoapqudpconnection/CMakeLists.txt b/tests/auto/qcoapqudpconnection/CMakeLists.txt new file mode 100644 index 0000000..b415301 --- /dev/null +++ b/tests/auto/qcoapqudpconnection/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from qcoapqudpconnection.pro. + +##################################################################### +## qcoapqudpconnection Test: +##################################################################### + +qt_add_test(qcoapqudpconnection + SOURCES + ../coapnetworksettings.h + tst_qcoapqudpconnection.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) + +#### Keys ignored in scope 1:.:.:qcoapqudpconnection.pro:<TRUE>: +# QT_TEST_SERVER_LIST = "californium" + +## Scopes: +##################################################################### + +# special case begin +qt_extend_target(qcoapqudpconnection CONDITION DEFINED ENV{COAP_TEST_SERVER_IP} + DEFINES + COAP_TEST_SERVER_IP=\\\"$ENV{COAP_TEST_SERVER_IP}\\\" +) +# special case end diff --git a/tests/auto/qcoapreply/CMakeLists.txt b/tests/auto/qcoapreply/CMakeLists.txt new file mode 100644 index 0000000..22d9210 --- /dev/null +++ b/tests/auto/qcoapreply/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qcoapreply.pro. + +##################################################################### +## qcoapreply Test: +##################################################################### + +qt_add_test(qcoapreply + SOURCES + tst_qcoapreply.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) diff --git a/tests/auto/qcoaprequest/CMakeLists.txt b/tests/auto/qcoaprequest/CMakeLists.txt new file mode 100644 index 0000000..08b2ee8 --- /dev/null +++ b/tests/auto/qcoaprequest/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qcoaprequest.pro. + +##################################################################### +## qcoaprequest Test: +##################################################################### + +qt_add_test(qcoaprequest + SOURCES + tst_qcoaprequest.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) diff --git a/tests/auto/qcoapresource/CMakeLists.txt b/tests/auto/qcoapresource/CMakeLists.txt new file mode 100644 index 0000000..fcdf254 --- /dev/null +++ b/tests/auto/qcoapresource/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qcoapresource.pro. + +##################################################################### +## qcoapresource Test: +##################################################################### + +qt_add_test(qcoapresource + SOURCES + tst_qcoapresource.cpp + LIBRARIES + Qt::CoapPrivate + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Coap + Qt::Network +) |