summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2019-09-16 14:22:07 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-09-16 14:47:09 +0000
commita3c87a0e44bb67cc3f726dd915178f9f307480e8 (patch)
tree6b40f1f687dd6e25d71e41c37eed2b230524e83f /tests
parenta5b0495ac273bcc841298b52dae3ca9bb608edf7 (diff)
downloadqtwebsockets-a3c87a0e44bb67cc3f726dd915178f9f307480e8.tar.gz
Add initial-support for cmake
Task-number: QTBUG-78180 Change-Id: If6cf82c61d605332402feffca9bde2ea0dd6e313 Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt10
-rw-r--r--tests/auto/CMakeLists.txt6
-rw-r--r--tests/auto/qml/CMakeLists.txt3
-rw-r--r--tests/auto/qml/qmlwebsockets/CMakeLists.txt18
-rw-r--r--tests/auto/websockets/CMakeLists.txt13
-rw-r--r--tests/auto/websockets/dataprocessor/CMakeLists.txt17
-rw-r--r--tests/auto/websockets/handshakerequest/CMakeLists.txt17
-rw-r--r--tests/auto/websockets/handshakeresponse/CMakeLists.txt17
-rw-r--r--tests/auto/websockets/qdefaultmaskgenerator/CMakeLists.txt17
-rw-r--r--tests/auto/websockets/qwebsocket/CMakeLists.txt15
-rw-r--r--tests/auto/websockets/qwebsocketcorsauthenticator/CMakeLists.txt15
-rw-r--r--tests/auto/websockets/qwebsocketserver/CMakeLists.txt45
-rw-r--r--tests/auto/websockets/websocketframe/CMakeLists.txt17
-rw-r--r--tests/auto/websockets/websocketprotocol/CMakeLists.txt17
14 files changed, 227 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..8179d6c
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,10 @@
+# special case begin
+if(NOT TARGET Qt::Test)
+ cmake_minimum_required(VERSION 3.15.0)
+ project(QtWebSocketsTests VERSION 6.0.0 LANGUAGES C CXX)
+ find_package(Qt6 REQUIRED COMPONENTS BuildInternals Core Network Test Qml Quick QuickTest WebSockets)
+ qt_set_up_standalone_tests_build()
+endif()
+# special case end
+
+qt_build_tests()
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 0000000..cfe7447
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from auto.pro.
+
+add_subdirectory(websockets)
+if(TARGET Qt::Quick)
+ add_subdirectory(qml)
+endif()
diff --git a/tests/auto/qml/CMakeLists.txt b/tests/auto/qml/CMakeLists.txt
new file mode 100644
index 0000000..8562441
--- /dev/null
+++ b/tests/auto/qml/CMakeLists.txt
@@ -0,0 +1,3 @@
+if(NOT APPLE_UIKIT)
+ add_subdirectory(qmlwebsockets)
+endif()
diff --git a/tests/auto/qml/qmlwebsockets/CMakeLists.txt b/tests/auto/qml/qmlwebsockets/CMakeLists.txt
new file mode 100644
index 0000000..753e254
--- /dev/null
+++ b/tests/auto/qml/qmlwebsockets/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from qmlwebsockets.pro.
+
+#####################################################################
+## tst_qmlwebsockets Test:
+#####################################################################
+
+add_qt_test(tst_qmlwebsockets
+ QMLTEST
+ SOURCES
+ tst_qmlwebsockets.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+)
+
+#### Keys ignored in scope 1:.:.:qmlwebsockets.pro:<TRUE>:
+# DEPLOYMENT = "importFiles"
+# TEMPLATE = "app"
+# importFiles.path = "."
diff --git a/tests/auto/websockets/CMakeLists.txt b/tests/auto/websockets/CMakeLists.txt
new file mode 100644
index 0000000..70b99db
--- /dev/null
+++ b/tests/auto/websockets/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from websockets.pro.
+
+add_subdirectory(qwebsocketcorsauthenticator)
+add_subdirectory(qwebsocket)
+add_subdirectory(qwebsocketserver)
+if(QT_FEATURE_private_tests)
+ add_subdirectory(websocketprotocol)
+ add_subdirectory(dataprocessor)
+ add_subdirectory(websocketframe)
+ add_subdirectory(handshakerequest)
+ add_subdirectory(handshakeresponse)
+ add_subdirectory(qdefaultmaskgenerator)
+endif()
diff --git a/tests/auto/websockets/dataprocessor/CMakeLists.txt b/tests/auto/websockets/dataprocessor/CMakeLists.txt
new file mode 100644
index 0000000..523a7a4
--- /dev/null
+++ b/tests/auto/websockets/dataprocessor/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from dataprocessor.pro.
+
+#####################################################################
+## tst_dataprocessor Test:
+#####################################################################
+
+add_qt_test(tst_dataprocessor
+ SOURCES
+ tst_dataprocessor.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:dataprocessor.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/websockets/handshakerequest/CMakeLists.txt b/tests/auto/websockets/handshakerequest/CMakeLists.txt
new file mode 100644
index 0000000..b0b3333
--- /dev/null
+++ b/tests/auto/websockets/handshakerequest/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from handshakerequest.pro.
+
+#####################################################################
+## tst_handshakerequest Test:
+#####################################################################
+
+add_qt_test(tst_handshakerequest
+ SOURCES
+ tst_handshakerequest.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:handshakerequest.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/websockets/handshakeresponse/CMakeLists.txt b/tests/auto/websockets/handshakeresponse/CMakeLists.txt
new file mode 100644
index 0000000..75d81f0
--- /dev/null
+++ b/tests/auto/websockets/handshakeresponse/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from handshakeresponse.pro.
+
+#####################################################################
+## tst_handshakeresponse Test:
+#####################################################################
+
+add_qt_test(tst_handshakeresponse
+ SOURCES
+ tst_handshakeresponse.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:handshakeresponse.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/websockets/qdefaultmaskgenerator/CMakeLists.txt b/tests/auto/websockets/qdefaultmaskgenerator/CMakeLists.txt
new file mode 100644
index 0000000..27d2e36
--- /dev/null
+++ b/tests/auto/websockets/qdefaultmaskgenerator/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from qdefaultmaskgenerator.pro.
+
+#####################################################################
+## tst_defaultmaskgenerator Test:
+#####################################################################
+
+add_qt_test(tst_defaultmaskgenerator
+ SOURCES
+ tst_defaultmaskgenerator.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:qdefaultmaskgenerator.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/websockets/qwebsocket/CMakeLists.txt b/tests/auto/websockets/qwebsocket/CMakeLists.txt
new file mode 100644
index 0000000..68282a9
--- /dev/null
+++ b/tests/auto/websockets/qwebsocket/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from qwebsocket.pro.
+
+#####################################################################
+## tst_qwebsocket Test:
+#####################################################################
+
+add_qt_test(tst_qwebsocket
+ SOURCES
+ tst_qwebsocket.cpp
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:qwebsocket.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/websockets/qwebsocketcorsauthenticator/CMakeLists.txt b/tests/auto/websockets/qwebsocketcorsauthenticator/CMakeLists.txt
new file mode 100644
index 0000000..35e4f95
--- /dev/null
+++ b/tests/auto/websockets/qwebsocketcorsauthenticator/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from qwebsocketcorsauthenticator.pro.
+
+#####################################################################
+## tst_qwebsocketcorsauthenticator Test:
+#####################################################################
+
+add_qt_test(tst_qwebsocketcorsauthenticator
+ SOURCES
+ tst_qwebsocketcorsauthenticator.cpp
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:qwebsocketcorsauthenticator.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/websockets/qwebsocketserver/CMakeLists.txt b/tests/auto/websockets/qwebsocketserver/CMakeLists.txt
new file mode 100644
index 0000000..7a5cdfa
--- /dev/null
+++ b/tests/auto/websockets/qwebsocketserver/CMakeLists.txt
@@ -0,0 +1,45 @@
+# Generated from qwebsocketserver.pro.
+
+#####################################################################
+## tst_qwebsocketserver Test:
+#####################################################################
+
+add_qt_test(tst_qwebsocketserver
+ SOURCES
+ tst_qwebsocketserver.cpp
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+# Resources:
+set_source_files_properties("../shared/localhost.cert"
+ PROPERTIES QT_RESOURCE_ALIAS "localhost.cert"
+)
+set_source_files_properties("../shared/localhost.key"
+ PROPERTIES QT_RESOURCE_ALIAS "localhost.key"
+)
+set(qwebsocketshared_resource_files
+ "localhost.cert"
+ "localhost.key"
+)
+
+add_qt_resource(tst_qwebsocketserver "qwebsocketshared"
+ PREFIX
+ "/"
+ BASE
+ "../shared"
+ FILES
+ ${qwebsocketshared_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:qwebsocketserver.pro:<TRUE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+extend_target(tst_qwebsocketserver CONDITION boot2qt
+ DEFINES
+ SHOULD_CHECK_SYSCALL_SUPPORT
+)
diff --git a/tests/auto/websockets/websocketframe/CMakeLists.txt b/tests/auto/websockets/websocketframe/CMakeLists.txt
new file mode 100644
index 0000000..47baf69
--- /dev/null
+++ b/tests/auto/websockets/websocketframe/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from websocketframe.pro.
+
+#####################################################################
+## tst_websocketframe Test:
+#####################################################################
+
+add_qt_test(tst_websocketframe
+ SOURCES
+ tst_websocketframe.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:websocketframe.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/websockets/websocketprotocol/CMakeLists.txt b/tests/auto/websockets/websocketprotocol/CMakeLists.txt
new file mode 100644
index 0000000..914720b
--- /dev/null
+++ b/tests/auto/websockets/websocketprotocol/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from websocketprotocol.pro.
+
+#####################################################################
+## tst_websocketprotocol Test:
+#####################################################################
+
+add_qt_test(tst_websocketprotocol
+ SOURCES
+ tst_websocketprotocol.cpp
+ LIBRARIES
+ Qt::WebSocketsPrivate
+ PUBLIC_LIBRARIES
+ Qt::WebSockets
+)
+
+#### Keys ignored in scope 1:.:.:websocketprotocol.pro:<TRUE>:
+# TEMPLATE = "app"