diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-06-24 09:57:23 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2022-07-05 10:13:18 +0000 |
commit | d059a610b1243f99984a15fdda38a8e3db048708 (patch) | |
tree | b46c5358a9762b8fb82623a1a0a1450cc27c7675 /tests | |
parent | 26f135f2438b55e299406743cf714206fb2ada98 (diff) | |
download | qt-creator-d059a610b1243f99984a15fdda38a8e3db048708.tar.gz |
COIN: Arm auto tests
Some of our auto tests fail, so add an EXCLUDE_FROM_PRECHECK option for
add_qtc_test, which sets a corresponding label on the ctest, and exclude
these when running ctest on COIN.
Disable the Googletest based unittests for now, they are inconsistently
failing on CI, e.g. sometimes timing out after 60 seconds for tests that
usually take only a fraction of a second.
tst_perfdata from the perfparser submodule also fails. Temporarily
disable it explicitly, until the EXCLUDE_FROM_PRECHECK change can be
merged there.
Change-Id: I7e9d7aded75bbe8800f82f7aa125c181271a2a1f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/debugger/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/auto/qml/codemodel/check/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/auto/qml/codemodel/dependencies/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/auto/qml/codemodel/importscheck/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/auto/qml/qmldesigner/coretests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/auto/tracing/flamegraphview/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/auto/tracing/timelinerenderer/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/auto/utils/qtcprocess/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/unit/unittest/CMakeLists.txt | 4 |
9 files changed, 12 insertions, 1 deletions
diff --git a/tests/auto/debugger/CMakeLists.txt b/tests/auto/debugger/CMakeLists.txt index 5ab4c63f24..8dbf475ca6 100644 --- a/tests/auto/debugger/CMakeLists.txt +++ b/tests/auto/debugger/CMakeLists.txt @@ -51,6 +51,7 @@ if (WITH_DEBUGGER_DUMPERS) get_target_property(qmake_binary Qt5::qmake IMPORTED_LOCATION) add_qtc_test(tst_debugger_dumpers + EXCLUDE_FROM_PRECHECK TIMEOUT 0 DEPENDS Qt5::Network Utils DEFINES diff --git a/tests/auto/qml/codemodel/check/CMakeLists.txt b/tests/auto/qml/codemodel/check/CMakeLists.txt index 462c276517..ad78f01f5b 100644 --- a/tests/auto/qml/codemodel/check/CMakeLists.txt +++ b/tests/auto/qml/codemodel/check/CMakeLists.txt @@ -1,4 +1,5 @@ add_qtc_test(tst_qml_check + EXCLUDE_FROM_PRECHECK DEPENDS QmlJS QmlJSTools ExtensionSystem Utils DEFINES QT_CREATOR diff --git a/tests/auto/qml/codemodel/dependencies/CMakeLists.txt b/tests/auto/qml/codemodel/dependencies/CMakeLists.txt index 43e915176a..606663fb2c 100644 --- a/tests/auto/qml/codemodel/dependencies/CMakeLists.txt +++ b/tests/auto/qml/codemodel/dependencies/CMakeLists.txt @@ -1,4 +1,5 @@ add_qtc_test(tst_qml_dependencies + EXCLUDE_FROM_PRECHECK DEPENDS QmlJS QmlJSTools ExtensionSystem Utils INCLUDES "${PROJECT_SOURCE_DIR}/src/plugins" DEFINES diff --git a/tests/auto/qml/codemodel/importscheck/CMakeLists.txt b/tests/auto/qml/codemodel/importscheck/CMakeLists.txt index a7c10f9d5e..60a22d7769 100644 --- a/tests/auto/qml/codemodel/importscheck/CMakeLists.txt +++ b/tests/auto/qml/codemodel/importscheck/CMakeLists.txt @@ -1,4 +1,5 @@ add_qtc_test(tst_qml_importscheck + EXCLUDE_FROM_PRECHECK DEPENDS QmlJS QmlJSTools Utils CPlusPlus INCLUDES "${PROJECT_SOURCE_DIR}/src/plugins" DEFINES diff --git a/tests/auto/qml/qmldesigner/coretests/CMakeLists.txt b/tests/auto/qml/qmldesigner/coretests/CMakeLists.txt index 253c91e4b7..349a721d9e 100644 --- a/tests/auto/qml/qmldesigner/coretests/CMakeLists.txt +++ b/tests/auto/qml/qmldesigner/coretests/CMakeLists.txt @@ -1,4 +1,5 @@ add_qtc_test(tst_qml_testcore + EXCLUDE_FROM_PRECHECK CONDITION TARGET QmlProjectManager DEFINES QT_CREATOR diff --git a/tests/auto/tracing/flamegraphview/CMakeLists.txt b/tests/auto/tracing/flamegraphview/CMakeLists.txt index 23f73fde89..e34941bd63 100644 --- a/tests/auto/tracing/flamegraphview/CMakeLists.txt +++ b/tests/auto/tracing/flamegraphview/CMakeLists.txt @@ -5,6 +5,7 @@ set(TSTFLAMEGRAPHVIEW_CPP_SOURCES if(${Qt5_VERSION} VERSION_LESS "6.2.0") add_qtc_test(tst_tracing_flamegraphview + EXCLUDE_FROM_PRECHECK DEPENDS Tracing Qt5::QuickWidgets Qt5::Quick Utils SOURCES ${TSTFLAMEGRAPHVIEW_CPP_SOURCES} @@ -12,6 +13,7 @@ if(${Qt5_VERSION} VERSION_LESS "6.2.0") ) else() # < Qt 6.2 add_qtc_test(tst_tracing_flamegraphview + EXCLUDE_FROM_PRECHECK DEPENDS Tracing Qt5::QuickWidgets Qt5::Quick Utils ) diff --git a/tests/auto/tracing/timelinerenderer/CMakeLists.txt b/tests/auto/tracing/timelinerenderer/CMakeLists.txt index 30e44a5cd2..db71a10c4a 100644 --- a/tests/auto/tracing/timelinerenderer/CMakeLists.txt +++ b/tests/auto/tracing/timelinerenderer/CMakeLists.txt @@ -1,4 +1,5 @@ add_qtc_test(tst_tracing_timelinerenderer + EXCLUDE_FROM_PRECHECK DEPENDS Tracing Qt5::Gui Qt5::Quick SOURCES tst_timelinerenderer.cpp ) diff --git a/tests/auto/utils/qtcprocess/CMakeLists.txt b/tests/auto/utils/qtcprocess/CMakeLists.txt index c03eee4945..4040548b33 100644 --- a/tests/auto/utils/qtcprocess/CMakeLists.txt +++ b/tests/auto/utils/qtcprocess/CMakeLists.txt @@ -4,6 +4,7 @@ file(RELATIVE_PATH RELATIVE_TEST_PATH "${PROJECT_BINARY_DIR}" "${CMAKE_CURRENT_B file(RELATIVE_PATH TEST_RELATIVE_LIBEXEC_PATH "/${RELATIVE_TEST_PATH}" "/${IDE_LIBEXEC_PATH}") add_qtc_test(tst_qtcprocess + CONDITION Qt5_VERSION VERSION_GREATER_EQUAL 6.2.0 TIMEOUT 30 DEFINES "TEST_RELATIVE_LIBEXEC_PATH=\"${TEST_RELATIVE_LIBEXEC_PATH}\"" "PROCESS_TESTAPP=\"${CMAKE_CURRENT_BINARY_DIR}/processtestapp\"" diff --git a/tests/unit/unittest/CMakeLists.txt b/tests/unit/unittest/CMakeLists.txt index a0b39262ef..70cff54788 100644 --- a/tests/unit/unittest/CMakeLists.txt +++ b/tests/unit/unittest/CMakeLists.txt @@ -147,7 +147,9 @@ extend_qtc_test(unittest smallstring-benchmark.cpp ) -finalize_qtc_gtest(unittest ".c$") +finalize_qtc_gtest(unittest + EXCLUDE_SOURCES_REGEX ".c$" + EXCLUDE_ALL_FROM_PRECHECK) # Path needs to be before CppEditor target_include_directories(unittest |