aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2020-12-21 14:28:27 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2021-01-11 15:39:54 +0100
commit1eb23cdd2aaaaebd0680950729297c1ec36fea11 (patch)
tree484393260a24a9eaf46cea292ad747a17ffb1060 /tests
parent3d0cbbb601e60f9f3e99b487785a799c86ebb74e (diff)
Enable docker-based testserver in QtCoap tests
Change-Id: Ie5cc074dc7897997b33d174b0ddaed2495141ca4 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qcoapclient/CMakeLists.txt3
-rw-r--r--tests/auto/qcoapqudpconnection/CMakeLists.txt3
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qcoapclient/CMakeLists.txt b/tests/auto/qcoapclient/CMakeLists.txt
index 0860bcd..9fdf39c 100644
--- a/tests/auto/qcoapclient/CMakeLists.txt
+++ b/tests/auto/qcoapclient/CMakeLists.txt
@@ -4,6 +4,8 @@
## qcoapclient Test:
#####################################################################
+set (QT_TESTSERVER_COMPOSE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/../../testserver/docker-compose.yml")
+
qt_add_test(qcoapclient
EXCEPTIONS # special case
GUI
@@ -14,6 +16,7 @@ qt_add_test(qcoapclient
Qt::Coap
Qt::CoapPrivate
Qt::Network
+ QT_TEST_SERVER_LIST "californium" "freecoap"
)
#### Keys ignored in scope 1:.:.:qcoapclient.pro:<TRUE>:
diff --git a/tests/auto/qcoapqudpconnection/CMakeLists.txt b/tests/auto/qcoapqudpconnection/CMakeLists.txt
index b0fcffc..8a351fd 100644
--- a/tests/auto/qcoapqudpconnection/CMakeLists.txt
+++ b/tests/auto/qcoapqudpconnection/CMakeLists.txt
@@ -4,6 +4,8 @@
## qcoapqudpconnection Test:
#####################################################################
+set (QT_TESTSERVER_COMPOSE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/../../testserver/docker-compose.yml")
+
qt_add_test(qcoapqudpconnection
SOURCES
../coapnetworksettings.h
@@ -12,6 +14,7 @@ qt_add_test(qcoapqudpconnection
Qt::Coap
Qt::CoapPrivate
Qt::Network
+ QT_TEST_SERVER_LIST "californium"
)
#### Keys ignored in scope 1:.:.:qcoapqudpconnection.pro:<TRUE>: