summaryrefslogtreecommitdiffstats
path: root/cmake/QtResourceHelpers.cmake
diff options
context:
space:
mode:
authorMikolaj Boc <mikolaj.boc@qt.io>2023-01-03 14:42:33 +0100
committerMikolaj Boc <mikolaj.boc@qt.io>2023-01-23 15:23:10 +0100
commit11891ae9c9fcf7cb911648675eca83f3189ccbed (patch)
treebacdebb4d98ac5289527beb98ce57349a5c1a4f3 /cmake/QtResourceHelpers.cmake
parent69e478480a782a663b8dd176ca4d917a09c91341 (diff)
Skip tests outside of qtbase on batching+superbuild
The batcher does not currently work properly with non-qtbase submodules. Disable them temporarily so that at least the tests in qtbase are batched. Do this from qtbase so that changes to each and every submodule are not necessary. Also, maintain a list of tests that were thus skipped. On any qt cmake internal function call that refers to such a target, identify the target as skipped and make the call a no-op. Fixes: QTBUG-109785 Change-Id: Ib0aa5d39eee8315ffd4ac62f6d1f44fe9bbf7a2f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtResourceHelpers.cmake')
-rw-r--r--cmake/QtResourceHelpers.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtResourceHelpers.cmake b/cmake/QtResourceHelpers.cmake
index 3dcad1f5d8..2df1fed50f 100644
--- a/cmake/QtResourceHelpers.cmake
+++ b/cmake/QtResourceHelpers.cmake
@@ -5,6 +5,10 @@ function(qt_internal_add_resource target resourceName)
if(NOT TARGET "${target}")
message(FATAL_ERROR "${target} is not a target.")
endif()
+ qt_internal_is_skipped_test(skipped ${target})
+ if(skipped)
+ return()
+ endif()
qt_internal_is_in_test_batch(in_batch ${target})
if(in_batch)
_qt_internal_test_batch_target_name(target)