summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2020-04-27 16:46:30 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2020-04-29 22:48:45 +0200
commit3a34fdf72a4305a314c65603b56e2a0c202ccf97 (patch)
treedf090904a5022c240a415db5792a5604e6fc1153 /tests
parent9b51d5f5713c237c244c1bff4d0bd3d0437e1b95 (diff)
Port more tests from tests/auto/corelib/tools to CMake
Also removed add_subdirectory calls for subdirs which no longer exist. Change-Id: I759f408ca812e1721dde495b0e23feffdeeb9c60 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/tools/CMakeLists.txt25
-rw-r--r--tests/auto/corelib/tools/collections/.prev_CMakeLists.txt12
-rw-r--r--tests/auto/corelib/tools/collections/CMakeLists.txt12
-rw-r--r--tests/auto/corelib/tools/containerapisymmetry/CMakeLists.txt10
-rw-r--r--tests/auto/corelib/tools/qcryptographichash/CMakeLists.txt35
-rw-r--r--tests/auto/corelib/tools/qflatmap/CMakeLists.txt12
-rw-r--r--tests/auto/corelib/tools/qfreelist/CMakeLists.txt20
-rw-r--r--tests/auto/corelib/tools/qline/CMakeLists.txt18
-rw-r--r--tests/auto/corelib/tools/qmacautoreleasepool/CMakeLists.txt12
-rw-r--r--tests/auto/corelib/tools/qoffsetstringarray/CMakeLists.txt12
-rw-r--r--tests/auto/corelib/tools/qvector/CMakeLists.txt13
-rw-r--r--tests/auto/corelib/tools/qversionnumber/CMakeLists.txt13
12 files changed, 179 insertions, 15 deletions
diff --git a/tests/auto/corelib/tools/CMakeLists.txt b/tests/auto/corelib/tools/CMakeLists.txt
index 2a7025f97c..89fddb33a2 100644
--- a/tests/auto/corelib/tools/CMakeLists.txt
+++ b/tests/auto/corelib/tools/CMakeLists.txt
@@ -1,30 +1,26 @@
# Generated from tools.pro.
-# add_subdirectory(collections) # special case not ported
-# add_subdirectory(containerapisymmetry) # special case not ported
+add_subdirectory(collections)
+add_subdirectory(containerapisymmetry)
add_subdirectory(qalgorithms)
add_subdirectory(qarraydata)
-# add_subdirectory(qarraydata_strictiterators) # special case not ported
add_subdirectory(qbitarray)
add_subdirectory(qcache)
add_subdirectory(qcommandlineparser)
add_subdirectory(qcontiguouscache)
-# add_subdirectory(qcryptographichash) # special case not ported
+add_subdirectory(qcryptographichash)
add_subdirectory(qeasingcurve)
add_subdirectory(qexplicitlyshareddatapointer)
-# add_subdirectory(qfreelist) # special case not ported
+add_subdirectory(qflatmap)
+add_subdirectory(qfreelist)
add_subdirectory(qhash)
-# add_subdirectory(qhash_strictiterators) # special case not ported
add_subdirectory(qhashfunctions)
-# add_subdirectory(qline) # special case not ported
-# add_subdirectory(qlist) # special case no longer exists
-# add_subdirectory(qlist_strictiterators) # special case not ported
+add_subdirectory(qline)
add_subdirectory(qmakearray)
add_subdirectory(qmap)
-# add_subdirectory(qmap_strictiterators) # special case not ported
add_subdirectory(qmargins)
add_subdirectory(qmessageauthenticationcode)
-# add_subdirectory(qoffsetstringarray) # special case not ported
+add_subdirectory(qoffsetstringarray)
add_subdirectory(qpair)
add_subdirectory(qpoint)
add_subdirectory(qpointf)
@@ -42,9 +38,8 @@ add_subdirectory(qsizef)
add_subdirectory(qstl)
add_subdirectory(qtimeline)
add_subdirectory(qvarlengtharray)
-# add_subdirectory(qvector) # special case not ported
-# add_subdirectory(qvector_strictiterators) # special case not ported
-# add_subdirectory(qversionnumber) # special case not ported
+add_subdirectory(qvector)
+add_subdirectory(qversionnumber)
if(APPLE)
- # add_subdirectory(qmacautoreleasepool) # special case not ported
+ add_subdirectory(qmacautoreleasepool)
endif()
diff --git a/tests/auto/corelib/tools/collections/.prev_CMakeLists.txt b/tests/auto/corelib/tools/collections/.prev_CMakeLists.txt
new file mode 100644
index 0000000000..37c3a21d78
--- /dev/null
+++ b/tests/auto/corelib/tools/collections/.prev_CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from collections.pro.
+
+#####################################################################
+## tst_collections Test:
+#####################################################################
+
+qt_add_test(tst_collections
+ SOURCES
+ tst_collections.cpp
+ DEFINES
+ -QT_NO_JAVA_STYLE_ITERATORS
+)
diff --git a/tests/auto/corelib/tools/collections/CMakeLists.txt b/tests/auto/corelib/tools/collections/CMakeLists.txt
new file mode 100644
index 0000000000..4575d27d20
--- /dev/null
+++ b/tests/auto/corelib/tools/collections/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from collections.pro.
+
+#####################################################################
+## tst_collections Test:
+#####################################################################
+
+qt_add_test(tst_collections
+ SOURCES
+ tst_collections.cpp
+ DEFINES
+ # -QT_NO_JAVA_STYLE_ITERATORS # special case remove
+)
diff --git a/tests/auto/corelib/tools/containerapisymmetry/CMakeLists.txt b/tests/auto/corelib/tools/containerapisymmetry/CMakeLists.txt
new file mode 100644
index 0000000000..8d160af9af
--- /dev/null
+++ b/tests/auto/corelib/tools/containerapisymmetry/CMakeLists.txt
@@ -0,0 +1,10 @@
+# Generated from containerapisymmetry.pro.
+
+#####################################################################
+## tst_containerapisymmetry Test:
+#####################################################################
+
+qt_add_test(tst_containerapisymmetry
+ SOURCES
+ tst_containerapisymmetry.cpp
+)
diff --git a/tests/auto/corelib/tools/qcryptographichash/CMakeLists.txt b/tests/auto/corelib/tools/qcryptographichash/CMakeLists.txt
new file mode 100644
index 0000000000..4984606509
--- /dev/null
+++ b/tests/auto/corelib/tools/qcryptographichash/CMakeLists.txt
@@ -0,0 +1,35 @@
+# Generated from qcryptographichash.pro.
+
+#####################################################################
+## tst_qcryptographichash Test:
+#####################################################################
+
+# Collect test data
+file(GLOB_RECURSE test_data_glob
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ data/*)
+list(APPEND test_data ${test_data_glob})
+
+qt_add_test(tst_qcryptographichash
+ SOURCES
+ tst_qcryptographichash.cpp
+ TESTDATA ${test_data}
+)
+
+## Scopes:
+#####################################################################
+
+if(ANDROID AND NOT ANDROID_EMBEDDED)
+ # Resources:
+ set(testdata_resource_files
+ "data/2c1517dad3678f03917f15849b052fd5.md5"
+ "data/d41d8cd98f00b204e9800998ecf8427e.md5"
+ )
+
+ qt_add_resource(tst_qcryptographichash "testdata"
+ PREFIX
+ "/"
+ FILES
+ ${testdata_resource_files}
+ )
+endif()
diff --git a/tests/auto/corelib/tools/qflatmap/CMakeLists.txt b/tests/auto/corelib/tools/qflatmap/CMakeLists.txt
new file mode 100644
index 0000000000..f5a5dfd5fc
--- /dev/null
+++ b/tests/auto/corelib/tools/qflatmap/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from qflatmap.pro.
+
+#####################################################################
+## tst_qflatmap Test:
+#####################################################################
+
+qt_add_test(tst_qflatmap
+ SOURCES
+ tst_qflatmap.cpp
+ PUBLIC_LIBRARIES
+ Qt::CorePrivate
+)
diff --git a/tests/auto/corelib/tools/qfreelist/CMakeLists.txt b/tests/auto/corelib/tools/qfreelist/CMakeLists.txt
new file mode 100644
index 0000000000..3940470240
--- /dev/null
+++ b/tests/auto/corelib/tools/qfreelist/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from qfreelist.pro.
+
+#####################################################################
+## tst_qfreelist Test:
+#####################################################################
+
+qt_add_test(tst_qfreelist
+ SOURCES
+ tst_qfreelist.cpp
+ PUBLIC_LIBRARIES
+ Qt::CorePrivate
+)
+
+## Scopes:
+#####################################################################
+
+qt_extend_target(tst_qfreelist CONDITION NOT QT_FEATURE_private_tests
+ SOURCES
+ ${QT_SOURCE_TREE}/src/corelib/tools/qfreelist.cpp
+)
diff --git a/tests/auto/corelib/tools/qline/CMakeLists.txt b/tests/auto/corelib/tools/qline/CMakeLists.txt
new file mode 100644
index 0000000000..24de03c81a
--- /dev/null
+++ b/tests/auto/corelib/tools/qline/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from qline.pro.
+
+#####################################################################
+## tst_qline Test:
+#####################################################################
+
+qt_add_test(tst_qline
+ SOURCES
+ tst_qline.cpp
+)
+
+## Scopes:
+#####################################################################
+
+qt_extend_target(tst_qline CONDITION UNIX AND NOT APPLE AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS
+ PUBLIC_LIBRARIES
+ m
+)
diff --git a/tests/auto/corelib/tools/qmacautoreleasepool/CMakeLists.txt b/tests/auto/corelib/tools/qmacautoreleasepool/CMakeLists.txt
new file mode 100644
index 0000000000..e41a779029
--- /dev/null
+++ b/tests/auto/corelib/tools/qmacautoreleasepool/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from qmacautoreleasepool.pro.
+
+#####################################################################
+## tst_qmacautoreleasepool Test:
+#####################################################################
+
+qt_add_test(tst_qmacautoreleasepool
+ SOURCES
+ tst_qmacautoreleasepool.mm
+ PUBLIC_LIBRARIES
+ ${FWFoundation}
+)
diff --git a/tests/auto/corelib/tools/qoffsetstringarray/CMakeLists.txt b/tests/auto/corelib/tools/qoffsetstringarray/CMakeLists.txt
new file mode 100644
index 0000000000..1a10b0dc47
--- /dev/null
+++ b/tests/auto/corelib/tools/qoffsetstringarray/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from qoffsetstringarray.pro.
+
+#####################################################################
+## tst_qoffsetstringarray Test:
+#####################################################################
+
+qt_add_test(tst_qoffsetstringarray
+ SOURCES
+ tst_qoffsetstringarray.cpp
+ PUBLIC_LIBRARIES
+ Qt::CorePrivate
+)
diff --git a/tests/auto/corelib/tools/qvector/CMakeLists.txt b/tests/auto/corelib/tools/qvector/CMakeLists.txt
new file mode 100644
index 0000000000..d180a1be8c
--- /dev/null
+++ b/tests/auto/corelib/tools/qvector/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from qvector.pro.
+
+#####################################################################
+## tst_qvector Test:
+#####################################################################
+
+qt_add_test(tst_qvector
+ SOURCES
+ tst_qvector.cpp
+)
+
+## Scopes:
+#####################################################################
diff --git a/tests/auto/corelib/tools/qversionnumber/CMakeLists.txt b/tests/auto/corelib/tools/qversionnumber/CMakeLists.txt
new file mode 100644
index 0000000000..893ea91413
--- /dev/null
+++ b/tests/auto/corelib/tools/qversionnumber/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from qversionnumber.pro.
+
+#####################################################################
+## tst_qversionnumber Test:
+#####################################################################
+
+qt_add_test(tst_qversionnumber
+ SOURCES
+ tst_qversionnumber.cpp
+)
+
+## Scopes:
+#####################################################################