diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-16 14:25:14 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-21 11:17:20 +0000 |
commit | f8c1909320313c8a9c03661d8fe77728bde6556a (patch) | |
tree | d3f9d392a264448d8a00c358490cad2718c49709 /tests/auto/corelib/plugin/qplugin | |
parent | 51979657a128c19ff8ce52eda345b256ba62de80 (diff) |
Convert corelib plugin tests
Change-Id: Ia98f7945a2c5b09a9b4d59e430cf05a7fecb7d55
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/corelib/plugin/qplugin')
5 files changed, 79 insertions, 0 deletions
diff --git a/tests/auto/corelib/plugin/qplugin/.prev_CMakeLists.txt b/tests/auto/corelib/plugin/qplugin/.prev_CMakeLists.txt new file mode 100644 index 0000000000..7e6ccc966d --- /dev/null +++ b/tests/auto/corelib/plugin/qplugin/.prev_CMakeLists.txt @@ -0,0 +1,3 @@ +# Generated from qplugin.pro. + +add_subdirectory(invalidplugin) diff --git a/tests/auto/corelib/plugin/qplugin/CMakeLists.txt b/tests/auto/corelib/plugin/qplugin/CMakeLists.txt new file mode 100644 index 0000000000..efc810075a --- /dev/null +++ b/tests/auto/corelib/plugin/qplugin/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from qplugin.pro. + +add_subdirectory(invalidplugin) + +# special case begin +add_subdirectory(debugplugin) +add_subdirectory(releaseplugin) + +# The contents below are generated from ./tst_qplugin.pro +# Collect test data +file(GLOB_RECURSE test_data_glob + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + plugins/*) +list(APPEND test_data ${test_data_glob}) + +add_qt_test(tst_qplugin + SOURCES + tst_qplugin.cpp + LIBRARIES + Qt::CorePrivate + TESTDATA ${test_data} +) + +add_dependencies(tst_qplugin invalidplugin debugplugin releaseplugin) +# special case end diff --git a/tests/auto/corelib/plugin/qplugin/debugplugin/CMakeLists.txt b/tests/auto/corelib/plugin/qplugin/debugplugin/CMakeLists.txt new file mode 100644 index 0000000000..5b9a21cb3b --- /dev/null +++ b/tests/auto/corelib/plugin/qplugin/debugplugin/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from debugplugin.pro. + +##################################################################### +## debugplugin Plugin: +##################################################################### + +add_qt_plugin(debugplugin + SKIP_INSTALL + OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../plugins" + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Core +) + +#### Keys ignored in scope 1:.:.:debugplugin.pro:<TRUE>: +# TEMPLATE = "lib" diff --git a/tests/auto/corelib/plugin/qplugin/invalidplugin/CMakeLists.txt b/tests/auto/corelib/plugin/qplugin/invalidplugin/CMakeLists.txt new file mode 100644 index 0000000000..e053008d54 --- /dev/null +++ b/tests/auto/corelib/plugin/qplugin/invalidplugin/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from invalidplugin.pro. + +##################################################################### +## invalidplugin Plugin: +##################################################################### + +add_qt_plugin(invalidplugin + SKIP_INSTALL + OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../plugins" + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Core +) + +#### Keys ignored in scope 1:.:.:invalidplugin.pro:<TRUE>: +# TEMPLATE = "lib" diff --git a/tests/auto/corelib/plugin/qplugin/releaseplugin/CMakeLists.txt b/tests/auto/corelib/plugin/qplugin/releaseplugin/CMakeLists.txt new file mode 100644 index 0000000000..cb09cb4207 --- /dev/null +++ b/tests/auto/corelib/plugin/qplugin/releaseplugin/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from releaseplugin.pro. + +##################################################################### +## releaseplugin Plugin: +##################################################################### + +add_qt_plugin(releaseplugin + SKIP_INSTALL + OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../plugins" + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Core +) + +#### Keys ignored in scope 1:.:.:releaseplugin.pro:<TRUE>: +# TEMPLATE = "lib" |