summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2019-12-09 16:25:08 +0100
committerLeander Beernaert <leander.beernaert@qt.io>2019-12-13 15:25:35 +0000
commita4e5714db18713ffd40f00c3095dd5f2e33332eb (patch)
tree4bf8d2a06de6bee0bc3ce9fbdc28fec73449fe17 /tests
parentde7af88098c7d9da54147c5109cdb19fa9f68e84 (diff)
downloadqttools-a4e5714db18713ffd40f00c3095dd5f2e33332eb.tar.gz
Convert QtTools tests
Change-Id: I1666999af341f9dbc6dbb63d75a81c3b07adc316 Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt7
-rw-r--r--tests/auto/.prev_CMakeLists.txt22
-rw-r--r--tests/auto/CMakeLists.txt24
-rw-r--r--tests/auto/linguist/CMakeLists.txt5
-rw-r--r--tests/auto/linguist/lconvert/CMakeLists.txt10
-rw-r--r--tests/auto/linguist/lrelease/CMakeLists.txt10
-rw-r--r--tests/auto/linguist/lupdate/CMakeLists.txt10
-rw-r--r--tests/auto/qdoc/CMakeLists.txt4
-rw-r--r--tests/auto/qdoc/generatedoutput/CMakeLists.txt14
-rw-r--r--tests/auto/qdoc/qdoccommandlineparser/CMakeLists.txt14
-rw-r--r--tests/auto/qhelpcontentmodel/CMakeLists.txt16
-rw-r--r--tests/auto/qhelpenginecore/CMakeLists.txt17
-rw-r--r--tests/auto/qhelpgenerator/CMakeLists.txt22
-rw-r--r--tests/auto/qhelpindexmodel/CMakeLists.txt17
-rw-r--r--tests/auto/qhelpprojectdata/CMakeLists.txt20
-rw-r--r--tests/auto/qtattributionsscanner/CMakeLists.txt13
-rw-r--r--tests/auto/qtdiag/CMakeLists.txt12
-rw-r--r--tests/auto/windeployqt/CMakeLists.txt4
-rw-r--r--tests/auto/windeployqt/test/CMakeLists.txt11
-rw-r--r--tests/auto/windeployqt/testapp/CMakeLists.txt14
-rw-r--r--tests/manual/CMakeLists.txt3
-rw-r--r--tests/manual/qtattributionsscanner/CMakeLists.txt2
22 files changed, 271 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 000000000..221413713
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from tests.pro.
+
+if(QT_BUILD_STANDALONE_TESTS)
+ # Add qt_find_package calls for extra dependencies that need to be found when building
+ # the standalone tests here.
+endif()
+qt_build_tests()
diff --git a/tests/auto/.prev_CMakeLists.txt b/tests/auto/.prev_CMakeLists.txt
new file mode 100644
index 000000000..5eae3760b
--- /dev/null
+++ b/tests/auto/.prev_CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from auto.pro.
+
+if(QT_FEATURE_process AND NOT CMAKE_CROSS_COMPILING)
+ add_subdirectory(linguist)
+ add_subdirectory(qtattributionsscanner)
+ add_subdirectory(qtdiag)
+endif()
+if(NOT CMAKE_CROSS_COMPILING)
+ add_subdirectory(qdoc)
+endif()
+if(TARGET Qt::Help AND NOT CMAKE_CROSS_COMPILING)
+ add_subdirectory(qhelpcontentmodel)
+ add_subdirectory(qhelpenginecore)
+ add_subdirectory(qhelpgenerator)
+ add_subdirectory(qhelpindexmodel)
+ add_subdirectory(qhelpprojectdata)
+endif()
+add_subdirectory(cmake)
+add_subdirectory(installed_cmake)
+if(QT_FEATURE_process AND WIN32 AND NOT CMAKE_CROSS_COMPILING AND NOT WINRT)
+ add_subdirectory(windeployqt)
+endif()
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 000000000..4da71b9bf
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from auto.pro.
+
+if(QT_FEATURE_process AND NOT CMAKE_CROSS_COMPILING)
+ add_subdirectory(linguist)
+ add_subdirectory(qtattributionsscanner)
+ add_subdirectory(qtdiag)
+endif()
+if(NOT CMAKE_CROSS_COMPILING)
+ add_subdirectory(qdoc)
+endif()
+if(TARGET Qt::Help AND NOT CMAKE_CROSS_COMPILING)
+ add_subdirectory(qhelpcontentmodel)
+ add_subdirectory(qhelpenginecore)
+ add_subdirectory(qhelpgenerator)
+ add_subdirectory(qhelpindexmodel)
+ add_subdirectory(qhelpprojectdata)
+endif()
+# special case begin
+#add_subdirectory(cmake)
+#add_subdirectory(installed_cmake)
+# special case end
+if(QT_FEATURE_process AND WIN32 AND NOT CMAKE_CROSS_COMPILING AND NOT WINRT)
+ add_subdirectory(windeployqt)
+endif()
diff --git a/tests/auto/linguist/CMakeLists.txt b/tests/auto/linguist/CMakeLists.txt
new file mode 100644
index 000000000..a619324bd
--- /dev/null
+++ b/tests/auto/linguist/CMakeLists.txt
@@ -0,0 +1,5 @@
+# Generated from linguist.pro.
+
+add_subdirectory(lrelease)
+add_subdirectory(lconvert)
+add_subdirectory(lupdate)
diff --git a/tests/auto/linguist/lconvert/CMakeLists.txt b/tests/auto/linguist/lconvert/CMakeLists.txt
new file mode 100644
index 000000000..800dcb793
--- /dev/null
+++ b/tests/auto/linguist/lconvert/CMakeLists.txt
@@ -0,0 +1,10 @@
+# Generated from lconvert.pro.
+
+#####################################################################
+## tst_lconvert Test:
+#####################################################################
+
+qt_add_test(tst_lconvert
+ SOURCES
+ tst_lconvert.cpp
+)
diff --git a/tests/auto/linguist/lrelease/CMakeLists.txt b/tests/auto/linguist/lrelease/CMakeLists.txt
new file mode 100644
index 000000000..6de654340
--- /dev/null
+++ b/tests/auto/linguist/lrelease/CMakeLists.txt
@@ -0,0 +1,10 @@
+# Generated from lrelease.pro.
+
+#####################################################################
+## tst_lrelease Test:
+#####################################################################
+
+qt_add_test(tst_lrelease
+ SOURCES
+ tst_lrelease.cpp
+)
diff --git a/tests/auto/linguist/lupdate/CMakeLists.txt b/tests/auto/linguist/lupdate/CMakeLists.txt
new file mode 100644
index 000000000..405663002
--- /dev/null
+++ b/tests/auto/linguist/lupdate/CMakeLists.txt
@@ -0,0 +1,10 @@
+# Generated from lupdate.pro.
+
+#####################################################################
+## tst_lupdate Test:
+#####################################################################
+
+qt_add_test(tst_lupdate
+ SOURCES
+ tst_lupdate.cpp
+)
diff --git a/tests/auto/qdoc/CMakeLists.txt b/tests/auto/qdoc/CMakeLists.txt
new file mode 100644
index 000000000..e9a5da6eb
--- /dev/null
+++ b/tests/auto/qdoc/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from qdoc.pro.
+
+add_subdirectory(generatedoutput)
+add_subdirectory(qdoccommandlineparser)
diff --git a/tests/auto/qdoc/generatedoutput/CMakeLists.txt b/tests/auto/qdoc/generatedoutput/CMakeLists.txt
new file mode 100644
index 000000000..1d8da3313
--- /dev/null
+++ b/tests/auto/qdoc/generatedoutput/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from generatedoutput.pro.
+
+#####################################################################
+## tst_generatedOutput Test:
+#####################################################################
+
+qt_add_test(tst_generatedOutput
+ SOURCES
+ tst_generatedoutput.cpp
+)
+qt_add_docs(tst_generatedOutput
+ test.qdocconf
+)
+
diff --git a/tests/auto/qdoc/qdoccommandlineparser/CMakeLists.txt b/tests/auto/qdoc/qdoccommandlineparser/CMakeLists.txt
new file mode 100644
index 000000000..a1b102cb0
--- /dev/null
+++ b/tests/auto/qdoc/qdoccommandlineparser/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from qdoccommandlineparser.pro.
+
+#####################################################################
+## tst_qdoccommandlineparser Test:
+#####################################################################
+
+qt_add_test(tst_qdoccommandlineparser
+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" # special case
+ SOURCES
+ ../../../../src/qdoc/qdoccommandlineparser.cpp ../../../../src/qdoc/qdoccommandlineparser.h
+ tst_qdoccommandlineparser.cpp
+ INCLUDE_DIRECTORIES
+ ../../../../src/qdoc
+)
diff --git a/tests/auto/qhelpcontentmodel/CMakeLists.txt b/tests/auto/qhelpcontentmodel/CMakeLists.txt
new file mode 100644
index 000000000..daef8c0b8
--- /dev/null
+++ b/tests/auto/qhelpcontentmodel/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from qhelpcontentmodel.pro.
+
+#####################################################################
+## tst_qhelpcontentmodel Test:
+#####################################################################
+
+qt_add_test(tst_qhelpcontentmodel
+ SOURCES
+ tst_qhelpcontentmodel.cpp
+ DEFINES
+ QT_USE_USING_NAMESPACE
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Help
+)
diff --git a/tests/auto/qhelpenginecore/CMakeLists.txt b/tests/auto/qhelpenginecore/CMakeLists.txt
new file mode 100644
index 000000000..e31f8b10b
--- /dev/null
+++ b/tests/auto/qhelpenginecore/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from qhelpenginecore.pro.
+
+#####################################################################
+## tst_qhelpenginecore Test:
+#####################################################################
+
+qt_add_test(tst_qhelpenginecore
+ SOURCES
+ tst_qhelpenginecore.cpp
+ DEFINES
+ QT_USE_USING_NAMESPACE
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Help
+ Qt::Sql
+)
diff --git a/tests/auto/qhelpgenerator/CMakeLists.txt b/tests/auto/qhelpgenerator/CMakeLists.txt
new file mode 100644
index 000000000..02c6f6666
--- /dev/null
+++ b/tests/auto/qhelpgenerator/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from qhelpgenerator.pro.
+
+#####################################################################
+## tst_qhelpgenerator Test:
+#####################################################################
+
+qt_add_test(tst_qhelpgenerator
+ SOURCES
+ ../../../src/assistant/qhelpgenerator/helpgenerator.cpp ../../../src/assistant/qhelpgenerator/helpgenerator.h
+ ../../../src/assistant/qhelpgenerator/qhelpdatainterface.cpp ../../../src/assistant/qhelpgenerator/qhelpdatainterface_p.h
+ ../../../src/assistant/qhelpgenerator/qhelpprojectdata.cpp ../../../src/assistant/qhelpgenerator/qhelpprojectdata_p.h
+ tst_qhelpgenerator.cpp
+ DEFINES
+ QT_USE_USING_NAMESPACE
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
+ LIBRARIES
+ Qt::HelpPrivate
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Help
+ Qt::Sql
+)
diff --git a/tests/auto/qhelpindexmodel/CMakeLists.txt b/tests/auto/qhelpindexmodel/CMakeLists.txt
new file mode 100644
index 000000000..6357488a6
--- /dev/null
+++ b/tests/auto/qhelpindexmodel/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from qhelpindexmodel.pro.
+
+#####################################################################
+## tst_qhelpindexmodel Test:
+#####################################################################
+
+qt_add_test(tst_qhelpindexmodel
+ SOURCES
+ tst_qhelpindexmodel.cpp
+ DEFINES
+ QT_USE_USING_NAMESPACE
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Help
+ Qt::Sql
+)
diff --git a/tests/auto/qhelpprojectdata/CMakeLists.txt b/tests/auto/qhelpprojectdata/CMakeLists.txt
new file mode 100644
index 000000000..6d686128a
--- /dev/null
+++ b/tests/auto/qhelpprojectdata/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from qhelpprojectdata.pro.
+
+#####################################################################
+## tst_qhelpprojectdata Test:
+#####################################################################
+
+qt_add_test(tst_qhelpprojectdata
+ SOURCES
+ ../../../src/assistant/qhelpgenerator/qhelpdatainterface.cpp ../../../src/assistant/qhelpgenerator/qhelpdatainterface_p.h
+ ../../../src/assistant/qhelpgenerator/qhelpprojectdata.cpp ../../../src/assistant/qhelpgenerator/qhelpprojectdata_p.h
+ tst_qhelpprojectdata.cpp
+ DEFINES
+ QT_USE_USING_NAMESPACE
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
+ LIBRARIES
+ Qt::HelpPrivate
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Help
+)
diff --git a/tests/auto/qtattributionsscanner/CMakeLists.txt b/tests/auto/qtattributionsscanner/CMakeLists.txt
new file mode 100644
index 000000000..5d3ccf927
--- /dev/null
+++ b/tests/auto/qtattributionsscanner/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from qtattributionsscanner.pro.
+
+#####################################################################
+## tst_qtattributionsscanner Test:
+#####################################################################
+
+qt_add_test(tst_qtattributionsscanner
+ SOURCES
+ tst_qtattributionsscanner.cpp
+)
+
+#### Keys ignored in scope 1:.:.:qtattributionsscanner.pro:<TRUE>:
+# DISTFILES = "testdata/good/minimal/qt_attribution.json" "testdata/good/complete/qt_attribution.json" "testdata/good/expected.json" "testdata/good/expected.error" "testdata/warnings/incomplete/qt_attribution.json" "testdata/warnings/incomplete/expected.json" "testdata/warnings/incomplete/expected.error" "testdata/warnings/unknown/qt_attribution.json" "testdata/warnings/unknown/expected.json" "testdata/warnings/unknown/expected.error"
diff --git a/tests/auto/qtdiag/CMakeLists.txt b/tests/auto/qtdiag/CMakeLists.txt
new file mode 100644
index 000000000..0c6ce3698
--- /dev/null
+++ b/tests/auto/qtdiag/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from qtdiag.pro.
+
+#####################################################################
+## tst_tdiag Test:
+#####################################################################
+
+qt_add_test(tst_tdiag
+ SOURCES
+ tst_qtdiag.cpp
+ DEFINES
+ QT_USE_USING_NAMESPACE
+)
diff --git a/tests/auto/windeployqt/CMakeLists.txt b/tests/auto/windeployqt/CMakeLists.txt
new file mode 100644
index 000000000..5eae1ca16
--- /dev/null
+++ b/tests/auto/windeployqt/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from windeployqt.pro.
+
+add_subdirectory(testapp)
+add_subdirectory(test)
diff --git a/tests/auto/windeployqt/test/CMakeLists.txt b/tests/auto/windeployqt/test/CMakeLists.txt
new file mode 100644
index 000000000..53de8926d
--- /dev/null
+++ b/tests/auto/windeployqt/test/CMakeLists.txt
@@ -0,0 +1,11 @@
+# Generated from test.pro.
+
+#####################################################################
+## tst_windeployqt Test:
+#####################################################################
+
+qt_add_test(tst_windeployqt
+ OUTPUT_DIRECTORY ".."
+ SOURCES
+ ../tst_windeployqt.cpp
+)
diff --git a/tests/auto/windeployqt/testapp/CMakeLists.txt b/tests/auto/windeployqt/testapp/CMakeLists.txt
new file mode 100644
index 000000000..6c9b9c79b
--- /dev/null
+++ b/tests/auto/windeployqt/testapp/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from testapp.pro.
+
+#####################################################################
+## testapp Binary:
+#####################################################################
+
+qt_add_executable(testapp
+ GUI
+ OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
+ SOURCES
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+)
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt
new file mode 100644
index 000000000..f9eb933df
--- /dev/null
+++ b/tests/manual/CMakeLists.txt
@@ -0,0 +1,3 @@
+# Generated from manual.pro.
+
+add_subdirectory(qtattributionsscanner)
diff --git a/tests/manual/qtattributionsscanner/CMakeLists.txt b/tests/manual/qtattributionsscanner/CMakeLists.txt
new file mode 100644
index 000000000..878f96a6d
--- /dev/null
+++ b/tests/manual/qtattributionsscanner/CMakeLists.txt
@@ -0,0 +1,2 @@
+# Generated from qtattributionsscanner.pro.
+