aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-02-25 09:50:23 +0100
committerMitch Curtis <mitch.curtis@qt.io>2021-02-25 11:14:11 +0100
commit31f73a9c6bd11f43d2155f367cc8cb9c2511515b (patch)
tree83718bf8dda9c1a172c5adf926747ee621ac454a
parent1cedab5239887750e12222c888bba8bbdbda14c2 (diff)
Convert manual tests to CMake
Pick-to: 6.1 6.0 Change-Id: Ia974de4a852b70a9b9fdc79a819229393758c9d7 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r--tests/manual/CMakeLists.txt15
-rw-r--r--tests/manual/buttons/CMakeLists.txt36
-rw-r--r--tests/manual/dialogs/CMakeLists.txt35
-rw-r--r--tests/manual/fonts/CMakeLists.txt44
-rw-r--r--tests/manual/gifs/CMakeLists.txt29
-rw-r--r--tests/manual/headerview/CMakeLists.txt48
-rw-r--r--tests/manual/screenshots/CMakeLists.txt34
-rw-r--r--tests/manual/styles-cover-flow/CMakeLists.txt38
-rw-r--r--tests/manual/styles/CMakeLists.txt31
-rw-r--r--tests/manual/systemtrayicon/CMakeLists.txt32
-rw-r--r--tests/manual/testbench/CMakeLists.txt109
-rw-r--r--tests/manual/viewinqwidget/CMakeLists.txt35
12 files changed, 486 insertions, 0 deletions
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt
new file mode 100644
index 00000000..79d19753
--- /dev/null
+++ b/tests/manual/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from manual.pro.
+
+add_subdirectory(buttons)
+add_subdirectory(gifs)
+add_subdirectory(fonts)
+add_subdirectory(headerview)
+add_subdirectory(screenshots)
+add_subdirectory(styles)
+add_subdirectory(testbench)
+if(QT_FEATURE_systemtrayicon)
+ add_subdirectory(systemtrayicon)
+endif()
+if(TARGET Qt::Widgets)
+ add_subdirectory(viewinqwidget)
+endif()
diff --git a/tests/manual/buttons/CMakeLists.txt b/tests/manual/buttons/CMakeLists.txt
new file mode 100644
index 00000000..e57611a5
--- /dev/null
+++ b/tests/manual/buttons/CMakeLists.txt
@@ -0,0 +1,36 @@
+# Generated from buttons.pro.
+
+#####################################################################
+## buttons Binary:
+#####################################################################
+
+qt_internal_add_manual_test(buttons
+ GUI
+ SOURCES
+ buttons.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Qml
+ Qt::QuickControls2
+)
+
+file(GLOB resource_glob_0 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.qml")
+foreach(file IN LISTS resource_glob_0)
+ set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/${file}" PROPERTIES QT_RESOURCE_ALIAS "${file}")
+endforeach()
+
+# Resources:
+set(qmake_immediate_resource_files
+ ${resource_glob_0}
+)
+
+qt_internal_add_resource(buttons "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:buttons.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/manual/dialogs/CMakeLists.txt b/tests/manual/dialogs/CMakeLists.txt
new file mode 100644
index 00000000..b0fe5dd5
--- /dev/null
+++ b/tests/manual/dialogs/CMakeLists.txt
@@ -0,0 +1,35 @@
+# Generated from dialogs.pro.
+
+#####################################################################
+## dialogs Binary:
+#####################################################################
+
+qt_internal_add_manual_test(dialogs
+ GUI
+ SOURCES
+ dialogs.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Qml
+ Qt::QuickControls2
+)
+
+# Resources:
+set(qmake_immediate_resource_files
+ "CustomDialog.qml"
+ "DialogLabel.qml"
+ "Marker.qml"
+ "dialogs.qml"
+ "qtquickcontrols2.conf"
+)
+
+qt_internal_add_resource(dialogs "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:dialogs.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/manual/fonts/CMakeLists.txt b/tests/manual/fonts/CMakeLists.txt
new file mode 100644
index 00000000..b0670fe2
--- /dev/null
+++ b/tests/manual/fonts/CMakeLists.txt
@@ -0,0 +1,44 @@
+# Generated from fonts.pro.
+
+#####################################################################
+## fonts Binary:
+#####################################################################
+
+qt_internal_add_manual_test(fonts
+ GUI
+ SOURCES
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+# Resources:
+set(qml_resource_files
+ "main.qml"
+)
+
+qt_internal_add_resource(fonts "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:fonts.pro:<TRUE>:
+# QML_IMPORT_PATH = <EMPTY>
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 3:.:.:deployment.pri:UNIX AND NOT ANDROID:
+# INSTALLS = "target"
+
+#### Keys ignored in scope 5:.:.:deployment.pri:QNX:
+# target.path = "/tmp/$${TARGET}/bin"
+
+#### Keys ignored in scope 6:.:.:deployment.pri:else:
+# target.path = "/opt/$${TARGET}/bin"
diff --git a/tests/manual/gifs/CMakeLists.txt b/tests/manual/gifs/CMakeLists.txt
new file mode 100644
index 00000000..8bbec940
--- /dev/null
+++ b/tests/manual/gifs/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from gifs.pro.
+
+#####################################################################
+## tst_gifs Test:
+#####################################################################
+
+# Collect test data
+file(GLOB_RECURSE test_data_glob
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/data/*)
+list(APPEND test_data ${test_data_glob})
+
+qt_add_test(tst_gifs
+ SOURCES
+ capturedevent.cpp capturedevent.h
+ eventcapturer.cpp eventcapturer.h
+ gifrecorder.cpp gifrecorder.h
+ tst_gifs.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Quick
+ TESTDATA ${test_data}
+)
+
+#### Keys ignored in scope 1:.:.:gifs.pro:<TRUE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
diff --git a/tests/manual/headerview/CMakeLists.txt b/tests/manual/headerview/CMakeLists.txt
new file mode 100644
index 00000000..035082d1
--- /dev/null
+++ b/tests/manual/headerview/CMakeLists.txt
@@ -0,0 +1,48 @@
+# Generated from headerview.pro.
+
+#####################################################################
+## headerview Binary:
+#####################################################################
+
+qt_internal_add_manual_test(headerview
+ GUI
+ SOURCES
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ Qt::QuickControls2
+ Qt::QuickControls2Private
+ Qt::QuickPrivate
+ Qt::QuickTemplates2
+ Qt::QuickTemplates2Private
+)
+
+# Resources:
+set(qmake_immediate_resource_files
+ "main.qml"
+)
+
+qt_internal_add_resource(headerview "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:headerview.pro:<TRUE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:headerview.pro:QNX:
+# target.path = "/tmp/$${TARGET}/bin"
+
+#### Keys ignored in scope 4:.:.:headerview.pro:UNIX AND NOT ANDROID:
+# target.path = "/opt/$${TARGET}/bin"
+
+#### Keys ignored in scope 5:.:.:headerview.pro:NOT target.path_ISEMPTY:
+# INSTALLS = "target"
diff --git a/tests/manual/screenshots/CMakeLists.txt b/tests/manual/screenshots/CMakeLists.txt
new file mode 100644
index 00000000..c01418ef
--- /dev/null
+++ b/tests/manual/screenshots/CMakeLists.txt
@@ -0,0 +1,34 @@
+# Generated from screenshots.pro.
+
+#####################################################################
+## screenshots Binary:
+#####################################################################
+
+qt_internal_add_manual_test(screenshots
+ GUI
+ SOURCES
+ screenshots.cpp
+ DEFINES
+ SNIPPETS_DIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/imports/controls/doc/snippets\\\"
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Quick
+ Qt::Widgets
+)
+
+# Resources:
+set(qmake_immediate_resource_files
+ "qtquickcontrols2.conf"
+ "screenshots.qml"
+)
+
+qt_internal_add_resource(screenshots "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:screenshots.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/manual/styles-cover-flow/CMakeLists.txt b/tests/manual/styles-cover-flow/CMakeLists.txt
new file mode 100644
index 00000000..4c9fd13b
--- /dev/null
+++ b/tests/manual/styles-cover-flow/CMakeLists.txt
@@ -0,0 +1,38 @@
+# Generated from styles-cover-flow.pro.
+
+#####################################################################
+## stylescoverflow Binary:
+#####################################################################
+
+qt_internal_add_manual_test(stylescoverflow
+ GUI
+ SOURCES
+ styles-cover-flow.cpp
+ DEFINES
+ DOC_IMAGES_DIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/imports/controls/doc/images/\\\"
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Quick
+ Qt::QuickControls2
+)
+
+file(GLOB resource_glob_0 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.qml,")
+foreach(file IN LISTS resource_glob_0)
+ set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/${file}" PROPERTIES QT_RESOURCE_ALIAS "${file}")
+endforeach()
+
+# Resources:
+set(qmake_immediate_resource_files
+ ${resource_glob_0}
+)
+
+qt_internal_add_resource(stylescoverflow "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:styles-cover-flow.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/manual/styles/CMakeLists.txt b/tests/manual/styles/CMakeLists.txt
new file mode 100644
index 00000000..b900da1b
--- /dev/null
+++ b/tests/manual/styles/CMakeLists.txt
@@ -0,0 +1,31 @@
+# Generated from styles.pro.
+
+#####################################################################
+## styles Binary:
+#####################################################################
+
+qt_internal_add_manual_test(styles
+ GUI
+ SOURCES
+ styles.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Quick
+ Qt::QuickControls2
+)
+
+# Resources:
+set(qmake_immediate_resource_files
+ "styles.qml"
+)
+
+qt_internal_add_resource(styles "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:styles.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/manual/systemtrayicon/CMakeLists.txt b/tests/manual/systemtrayicon/CMakeLists.txt
new file mode 100644
index 00000000..667fc7f7
--- /dev/null
+++ b/tests/manual/systemtrayicon/CMakeLists.txt
@@ -0,0 +1,32 @@
+# Generated from systemtrayicon.pro.
+
+#####################################################################
+## systemtrayicon Binary:
+#####################################################################
+
+qt_internal_add_manual_test(systemtrayicon
+ GUI
+ SOURCES
+ systemtrayicon.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Quick
+ Qt::QuickControls2
+)
+
+# Resources:
+set(systemtrayicon_resource_files
+ "images/qt_logo_green_256.png"
+ "systemtrayicon.qml"
+)
+
+qt_internal_add_resource(systemtrayicon "systemtrayicon"
+ PREFIX
+ "/files"
+ FILES
+ ${systemtrayicon_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:systemtrayicon.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/manual/testbench/CMakeLists.txt b/tests/manual/testbench/CMakeLists.txt
new file mode 100644
index 00000000..2fe24d60
--- /dev/null
+++ b/tests/manual/testbench/CMakeLists.txt
@@ -0,0 +1,109 @@
+# Generated from testbench.pro.
+
+#####################################################################
+## testbench Binary:
+#####################################################################
+
+qt_internal_add_manual_test(testbench
+ GUI
+ SOURCES
+ assetfixer.cpp assetfixer.h
+ clipboard.cpp clipboard.h
+ directoryvalidator.cpp directoryvalidator.h
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ Qt::QuickControls2
+ Qt::QuickControls2Private
+)
+
+# Resources:
+set(qml_resource_files
+ "+Imagine/ApplicationWindow.qml"
+ "+Imagine/ContentPane.qml"
+ "+Imagine/Dialog.qml"
+ "+Imagine/Menu.qml"
+ "+Imagine/ToolBar.qml"
+ "ApplicationWindow.qml"
+ "ColorEditor.qml"
+ "ContentPane.qml"
+ "ControlContainer.qml"
+ "Dialog.qml"
+ "ExampleContainer.qml"
+ "Menu.qml"
+ "SettingsDialog.qml"
+ "ToolBar.qml"
+ "controls/BusyIndicator.qml"
+ "controls/Button.qml"
+ "controls/CheckBox.qml"
+ "controls/CheckDelegate.qml"
+ "controls/ComboBox.qml"
+ "controls/DelayButton.qml"
+ "controls/Dial.qml"
+ "controls/Dialog.qml"
+ "controls/Frame.qml"
+ "controls/GroupBox.qml"
+ "controls/ItemDelegate.qml"
+ "controls/Label.qml"
+ "controls/Menu.qml"
+ "controls/MenuBar.qml"
+ "controls/Page.qml"
+ "controls/PageIndicator.qml"
+ "controls/Pane.qml"
+ "controls/ProgressBar.qml"
+ "controls/RadioButton.qml"
+ "controls/RadioDelegate.qml"
+ "controls/RangeSlider.qml"
+ "controls/RoundButton.qml"
+ "controls/ScrollBar.qml"
+ "controls/ScrollIndicator.qml"
+ "controls/Slider.qml"
+ "controls/SpinBox.qml"
+ "controls/SplitView.qml"
+ "controls/SwipeDelegate.qml"
+ "controls/Switch.qml"
+ "controls/SwitchDelegate.qml"
+ "controls/TabBar.qml"
+ "controls/TextArea.qml"
+ "controls/TextField.qml"
+ "controls/ToolBar.qml"
+ "controls/ToolTip.qml"
+ "controls/Tumbler.qml"
+ "testbench.qml"
+)
+
+qt_internal_add_resource(testbench "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+set(fonts_resource_files
+ "fonts/fontawesome.ttf"
+)
+
+qt_internal_add_resource(testbench "fonts"
+ PREFIX
+ "/"
+ FILES
+ ${fonts_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:testbench.pro:<TRUE>:
+# QML_IMPORT_PATH = <EMPTY>
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 3:.:.:deployment.pri:UNIX AND NOT ANDROID:
+# INSTALLS = "target"
+
+#### Keys ignored in scope 5:.:.:deployment.pri:QNX:
+# target.path = "/tmp/$${TARGET}/bin"
+
+#### Keys ignored in scope 6:.:.:deployment.pri:else:
+# target.path = "/opt/$${TARGET}/bin"
diff --git a/tests/manual/viewinqwidget/CMakeLists.txt b/tests/manual/viewinqwidget/CMakeLists.txt
new file mode 100644
index 00000000..9a5021fa
--- /dev/null
+++ b/tests/manual/viewinqwidget/CMakeLists.txt
@@ -0,0 +1,35 @@
+# Generated from viewinqwidget.pro.
+
+#####################################################################
+## viewinqwidget Binary:
+#####################################################################
+
+qt_internal_add_manual_test(viewinqwidget
+ GUI
+ SOURCES
+ main.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ Qt::QuickWidgets
+ Qt::Widgets
+)
+
+# Resources:
+set(viewinqwidget_resource_files
+ "main.qml"
+)
+
+qt_internal_add_resource(viewinqwidget "viewinqwidget"
+ PREFIX
+ "/"
+ FILES
+ ${viewinqwidget_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:viewinqwidget.pro:<TRUE>:
+# OTHER_FILES = "main.qml"