diff options
Diffstat (limited to 'tests/benchmarks')
26 files changed, 547 insertions, 0 deletions
diff --git a/tests/benchmarks/CMakeLists.txt b/tests/benchmarks/CMakeLists.txt new file mode 100644 index 0000000000..0cc44921f4 --- /dev/null +++ b/tests/benchmarks/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from benchmarks.pro. + +add_subdirectory(qml) +add_subdirectory(quick) +if(QT_FEATURE_opengles2 OR QT_FEATURE_opengles3 OR (QT_FEATURE_opengl AND QT_FEATURE_private_tests)) + add_subdirectory(particles) +endif() diff --git a/tests/benchmarks/particles/CMakeLists.txt b/tests/benchmarks/particles/CMakeLists.txt new file mode 100644 index 0000000000..8bfb0df4b6 --- /dev/null +++ b/tests/benchmarks/particles/CMakeLists.txt @@ -0,0 +1,4 @@ +# Generated from particles.pro. + +add_subdirectory(emission) +add_subdirectory(affectors) diff --git a/tests/benchmarks/particles/affectors/CMakeLists.txt b/tests/benchmarks/particles/affectors/CMakeLists.txt new file mode 100644 index 0000000000..7910d4256d --- /dev/null +++ b/tests/benchmarks/particles/affectors/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from affectors.pro. + +##################################################################### +## tst_affectors Binary: +##################################################################### + +qt_add_benchmark(tst_affectors + SOURCES + tst_affectors.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::Gui + Qt::QuickParticlesPrivate + Qt::Test +) + +#### Keys ignored in scope 1:.:.:affectors.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/particles/emission/CMakeLists.txt b/tests/benchmarks/particles/emission/CMakeLists.txt new file mode 100644 index 0000000000..831b42e7a9 --- /dev/null +++ b/tests/benchmarks/particles/emission/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from emission.pro. + +##################################################################### +## tst_emission Binary: +##################################################################### + +qt_add_benchmark(tst_emission + SOURCES + tst_emission.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::QuickParticlesPrivate + Qt::Test +) + +#### Keys ignored in scope 1:.:.:emission.pro:<TRUE>: +# DEPLOYMENT = "testDataFiles" +# testDataFiles.files = "data" +# testDataFiles.path = "." + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/CMakeLists.txt b/tests/benchmarks/qml/CMakeLists.txt new file mode 100644 index 0000000000..816ad1856e --- /dev/null +++ b/tests/benchmarks/qml/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qml.pro. + +add_subdirectory(binding) +add_subdirectory(compilation) +add_subdirectory(javascript) +add_subdirectory(holistic) +add_subdirectory(qqmlchangeset) +add_subdirectory(qqmlcomponent) +add_subdirectory(qqmlmetaproperty) +add_subdirectory(librarymetrics_performance) +add_subdirectory(script) +add_subdirectory(js) +add_subdirectory(creation) +if(TARGET Qt::OpenGL) + add_subdirectory(painting) + add_subdirectory(qquickwindow) +endif() diff --git a/tests/benchmarks/qml/animation/CMakeLists.txt b/tests/benchmarks/qml/animation/CMakeLists.txt new file mode 100644 index 0000000000..a3e2b5a46d --- /dev/null +++ b/tests/benchmarks/qml/animation/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from animation.pro. + +##################################################################### +## tst_animation Binary: +##################################################################### + +qt_add_benchmark(tst_animation + SOURCES + tst_animation.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::CorePrivate + Qt::Gui + Qt::GuiPrivate + Qt::Qml + Qt::QmlPrivate + Qt::QuickPrivate + Qt::Test +) + +#### Keys ignored in scope 1:.:.:animation.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/binding/CMakeLists.txt b/tests/benchmarks/qml/binding/CMakeLists.txt new file mode 100644 index 0000000000..60ebf582de --- /dev/null +++ b/tests/benchmarks/qml/binding/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from binding.pro. + +##################################################################### +## tst_binding Binary: +##################################################################### + +qt_add_benchmark(tst_binding + SOURCES + testtypes.cpp testtypes.h + tst_binding.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:binding.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/compilation/CMakeLists.txt b/tests/benchmarks/qml/compilation/CMakeLists.txt new file mode 100644 index 0000000000..a43c62863b --- /dev/null +++ b/tests/benchmarks/qml/compilation/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from compilation.pro. + +##################################################################### +## tst_compilation Binary: +##################################################################### + +qt_add_benchmark(tst_compilation + SOURCES + tst_compilation.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::CorePrivate + Qt::Gui + Qt::Qml + Qt::QmlPrivate + Qt::Test +) + +#### Keys ignored in scope 1:.:.:compilation.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/creation/CMakeLists.txt b/tests/benchmarks/qml/creation/CMakeLists.txt new file mode 100644 index 0000000000..2210f0a24a --- /dev/null +++ b/tests/benchmarks/qml/creation/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from creation.pro. + +##################################################################### +## tst_creation Binary: +##################################################################### + +qt_add_benchmark(tst_creation + SOURCES + tst_creation.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::CorePrivate + Qt::Gui + Qt::GuiPrivate + Qt::QmlPrivate + Qt::QuickPrivate + Qt::Test +) + +#### Keys ignored in scope 1:.:.:creation.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/holistic/CMakeLists.txt b/tests/benchmarks/qml/holistic/CMakeLists.txt new file mode 100644 index 0000000000..746254cbea --- /dev/null +++ b/tests/benchmarks/qml/holistic/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from holistic.pro. + +##################################################################### +## tst_holistic Binary: +##################################################################### + +qt_add_benchmark(tst_holistic + SOURCES + testtypes.cpp testtypes.h + tst_holistic.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::Gui + Qt::Network + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:holistic.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/javascript/CMakeLists.txt b/tests/benchmarks/qml/javascript/CMakeLists.txt new file mode 100644 index 0000000000..837d46df05 --- /dev/null +++ b/tests/benchmarks/qml/javascript/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from javascript.pro. + +##################################################################### +## tst_javascript Binary: +##################################################################### + +qt_add_benchmark(tst_javascript + SOURCES + testtypes.cpp testtypes.h + tst_javascript.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:javascript.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/js/CMakeLists.txt b/tests/benchmarks/qml/js/CMakeLists.txt new file mode 100644 index 0000000000..e503e28ebe --- /dev/null +++ b/tests/benchmarks/qml/js/CMakeLists.txt @@ -0,0 +1,5 @@ +# Generated from js.pro. + +add_subdirectory(qjsengine) +add_subdirectory(qjsvalue) +add_subdirectory(qjsvalueiterator) diff --git a/tests/benchmarks/qml/js/qjsengine/CMakeLists.txt b/tests/benchmarks/qml/js/qjsengine/CMakeLists.txt new file mode 100644 index 0000000000..577514e2ce --- /dev/null +++ b/tests/benchmarks/qml/js/qjsengine/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from qjsengine.pro. + +##################################################################### +## tst_bench_qjsengine Binary: +##################################################################### + +qt_add_benchmark(tst_bench_qjsengine + SOURCES + tst_qjsengine.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:qjsengine.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/js/qjsvalue/CMakeLists.txt b/tests/benchmarks/qml/js/qjsvalue/CMakeLists.txt new file mode 100644 index 0000000000..8c56fa1820 --- /dev/null +++ b/tests/benchmarks/qml/js/qjsvalue/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from qjsvalue.pro. + +##################################################################### +## tst_bench_qjsvalue Binary: +##################################################################### + +qt_add_benchmark(tst_bench_qjsvalue + SOURCES + tst_qjsvalue.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:qjsvalue.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/js/qjsvalueiterator/CMakeLists.txt b/tests/benchmarks/qml/js/qjsvalueiterator/CMakeLists.txt new file mode 100644 index 0000000000..99e19d45a4 --- /dev/null +++ b/tests/benchmarks/qml/js/qjsvalueiterator/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qjsvalueiterator.pro. + +##################################################################### +## tst_bench_qjsvalueiterator Binary: +##################################################################### + +qt_add_benchmark(tst_bench_qjsvalueiterator + SOURCES + tst_qjsvalueiterator.cpp + PUBLIC_LIBRARIES + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:qjsvalueiterator.pro:<TRUE>: +# TEMPLATE = "app" diff --git a/tests/benchmarks/qml/librarymetrics_performance/CMakeLists.txt b/tests/benchmarks/qml/librarymetrics_performance/CMakeLists.txt new file mode 100644 index 0000000000..e70db585a8 --- /dev/null +++ b/tests/benchmarks/qml/librarymetrics_performance/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from librarymetrics_performance.pro. + +##################################################################### +## tst_librarymetrics_performance Binary: +##################################################################### + +qt_add_benchmark(tst_librarymetrics_performance + SOURCES + tst_librarymetrics_performance.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Network + Qt::Qml + Qt::Quick + Qt::Test +) + +# Resources: +set(qmake_immediate_resource_files + "data" +) + +qt_add_resource(tst_librarymetrics_performance "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + + +#### Keys ignored in scope 1:.:.:librarymetrics_performance.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/painting/CMakeLists.txt b/tests/benchmarks/qml/painting/CMakeLists.txt new file mode 100644 index 0000000000..93ae5e9ef7 --- /dev/null +++ b/tests/benchmarks/qml/painting/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from painting.pro. + +##################################################################### +## painting Binary: +##################################################################### + +qt_add_benchmark(painting + SOURCES + paintbenchmark.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::OpenGL + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:painting.pro:<TRUE>: +# _REQUIREMENTS = "qtHaveModule(opengl)" "qtHaveModule(widgets)" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/qqmlchangeset/CMakeLists.txt b/tests/benchmarks/qml/qqmlchangeset/CMakeLists.txt new file mode 100644 index 0000000000..06a41df546 --- /dev/null +++ b/tests/benchmarks/qml/qqmlchangeset/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from qqmlchangeset.pro. + +##################################################################### +## tst_qqmlchangeset Binary: +##################################################################### + +qt_add_benchmark(tst_qqmlchangeset + SOURCES + tst_qqmlchangeset.cpp + DEFINES + QT_DISABLE_DEPRECATED_BEFORE=0 + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::QuickPrivate + Qt::Test +) + +#### Keys ignored in scope 1:.:.:qqmlchangeset.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/qqmlcomponent/.prev_CMakeLists.txt b/tests/benchmarks/qml/qqmlcomponent/.prev_CMakeLists.txt new file mode 100644 index 0000000000..d219c447d7 --- /dev/null +++ b/tests/benchmarks/qml/qqmlcomponent/.prev_CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from qqmlcomponent.pro. + +##################################################################### +## tst_qqmlcomponent Binary: +##################################################################### + +qt_add_benchmark(tst_qqmlcomponent + SOURCES + testtypes.cpp testtypes.h + tst_qqmlcomponent.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:qqmlcomponent.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/qqmlcomponent/CMakeLists.txt b/tests/benchmarks/qml/qqmlcomponent/CMakeLists.txt new file mode 100644 index 0000000000..faa9dac56f --- /dev/null +++ b/tests/benchmarks/qml/qqmlcomponent/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from qqmlcomponent.pro. + +##################################################################### +## tst_qqmlcomponent Binary: +##################################################################### + +qt_add_benchmark(tst_qqmlcomponent_benchmark # special case avoid collision with auto test + GUI + SOURCES + testtypes.cpp testtypes.h + tst_qqmlcomponent.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:qqmlcomponent.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/qqmlmetaproperty/CMakeLists.txt b/tests/benchmarks/qml/qqmlmetaproperty/CMakeLists.txt new file mode 100644 index 0000000000..e0a7db012a --- /dev/null +++ b/tests/benchmarks/qml/qqmlmetaproperty/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from qqmlmetaproperty.pro. + +##################################################################### +## tst_qqmlmetaproperty Binary: +##################################################################### + +qt_add_benchmark(tst_qqmlmetaproperty + SOURCES + tst_qqmlmetaproperty.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:qqmlmetaproperty.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/qquickwindow/CMakeLists.txt b/tests/benchmarks/qml/qquickwindow/CMakeLists.txt new file mode 100644 index 0000000000..a4895d8202 --- /dev/null +++ b/tests/benchmarks/qml/qquickwindow/CMakeLists.txt @@ -0,0 +1,28 @@ +# Generated from qquickwindow.pro. + +##################################################################### +## tst_qquickwindow Binary: +##################################################################### + +qt_add_benchmark(tst_qquickwindow + SOURCES + tst_qquickwindow.cpp + DEFINES + QT_DISABLE_DEPRECATED_BEFORE=0 + PUBLIC_LIBRARIES + Qt::CorePrivate + Qt::Gui + Qt::GuiPrivate + Qt::OpenGLPrivate + Qt::QmlPrivate + Qt::QuickPrivate + Qt::Test +) + +#### Keys ignored in scope 1:.:.:qquickwindow.pro:<TRUE>: +# DEPLOYMENT = "testDataFiles" +# testDataFiles.files = "data" +# testDataFiles.path = "." + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/script/CMakeLists.txt b/tests/benchmarks/qml/script/CMakeLists.txt new file mode 100644 index 0000000000..76362dc0d9 --- /dev/null +++ b/tests/benchmarks/qml/script/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from script.pro. + +##################################################################### +## tst_script Binary: +##################################################################### + +qt_add_benchmark(tst_script + SOURCES + tst_script.cpp + DEFINES + QT_DISABLE_DEPRECATED_BEFORE=0 + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::CorePrivate + Qt::Gui + Qt::GuiPrivate + Qt::QmlPrivate + Qt::QuickPrivate + Qt::Test +) + +#### Keys ignored in scope 1:.:.:script.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/qml/typeimports/CMakeLists.txt b/tests/benchmarks/qml/typeimports/CMakeLists.txt new file mode 100644 index 0000000000..93f1f7c73b --- /dev/null +++ b/tests/benchmarks/qml/typeimports/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from typeimports.pro. + +##################################################################### +## tst_typeimports Binary: +##################################################################### + +qt_add_benchmark(tst_typeimports + SOURCES + tst_typeimports.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Test +) + +#### Keys ignored in scope 1:.:.:typeimports.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### diff --git a/tests/benchmarks/quick/CMakeLists.txt b/tests/benchmarks/quick/CMakeLists.txt new file mode 100644 index 0000000000..533f382398 --- /dev/null +++ b/tests/benchmarks/quick/CMakeLists.txt @@ -0,0 +1,3 @@ +# Generated from quick.pro. + +add_subdirectory(events) diff --git a/tests/benchmarks/quick/events/CMakeLists.txt b/tests/benchmarks/quick/events/CMakeLists.txt new file mode 100644 index 0000000000..45300fdb5a --- /dev/null +++ b/tests/benchmarks/quick/events/CMakeLists.txt @@ -0,0 +1,43 @@ +# Generated from events.pro. + +##################################################################### +## tst_qevents Binary: +##################################################################### + +qt_add_benchmark(tst_qevents + SOURCES + ../../../auto/quick/shared/geometrytestutil.cpp ../../../auto/quick/shared/geometrytestutil.h + ../../../auto/quick/shared/viewtestutil.cpp ../../../auto/quick/shared/viewtestutil.h + ../../../auto/quick/shared/visualtestutil.cpp ../../../auto/quick/shared/visualtestutil.h + ../../../auto/shared/util.cpp ../../../auto/shared/util.h + tst_events.cpp + DEFINES + QT_QMLTEST_DATADIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/data\\\" + INCLUDE_DIRECTORIES + ../../../auto/shared + PUBLIC_LIBRARIES + Qt::CorePrivate + Qt::Gui + Qt::GuiPrivate + Qt::Qml + Qt::QmlPrivate + Qt::Quick + Qt::QuickPrivate + Qt::Test +) + +#### Keys ignored in scope 1:.:.:events.pro:<TRUE>: +# TEMPLATE = "app" + +## Scopes: +##################################################################### + +qt_extend_target(tst_qevents CONDITION ANDROID OR APPLE_IOS + DEFINES + QT_QMLTEST_DATADIR=\\\":/data\\\" +) + +qt_extend_target(tst_qevents CONDITION NOT ANDROID AND NOT APPLE_IOS + DEFINES + QT_QMLTEST_DATADIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/data\\\" +) |