wasm: introduce QT_BUILD_WASM_BATCHED_TESTS
We are selecting a subset of the tests for batching/CI, however this is done for the WASM configuration which interferes with non-batched tests. - we can only build and run tests which are in the batching subset - we are enabling threading tests which breaks the no-thread configuration. Add QT_BUILD_WASM_BATCHED_TESTS and enable for WASM and batching. There's then no restrictions on which tests can be selected for CI. Change-Id: I59a67b63e80cd00676cb28f916951d2a52b0ee2c Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
0f5f1bfeff
commit
b4090305d0
@ -262,14 +262,16 @@ macro(qt_internal_setup_build_tests)
|
|||||||
|
|
||||||
option(QT_BUILD_MANUAL_TESTS "Build Qt manual tests" OFF)
|
option(QT_BUILD_MANUAL_TESTS "Build Qt manual tests" OFF)
|
||||||
|
|
||||||
if(WASM)
|
if(WASM AND _qt_batch_tests)
|
||||||
option(QT_BUILD_MINIMAL_STATIC_TESTS "Build minimal subset of tests for static Qt builds"
|
set(_qt_wasm_and_batch_tests ON)
|
||||||
ON)
|
|
||||||
else()
|
else()
|
||||||
option(QT_BUILD_MINIMAL_STATIC_TESTS "Build minimal subset of tests for static Qt builds"
|
set(_qt_wasm_and_batch_tests OFF)
|
||||||
OFF)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option(QT_BUILD_MINIMAL_STATIC_TESTS "Build minimal subset of tests for static Qt builds" ${_qt_wasm_and_batch_tests})
|
||||||
|
|
||||||
|
option(QT_BUILD_WASM_BATCHED_TESTS "Build subset of tests for wasm batched tests" ${_qt_wasm_and_batch_tests})
|
||||||
|
|
||||||
option(QT_BUILD_MINIMAL_ANDROID_MULTI_ABI_TESTS
|
option(QT_BUILD_MINIMAL_ANDROID_MULTI_ABI_TESTS
|
||||||
"Build minimal subset of tests for Android multi-ABI Qt builds" OFF)
|
"Build minimal subset of tests for Android multi-ABI Qt builds" OFF)
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ if(QT_BUILD_MINIMAL_ANDROID_MULTI_ABI_TESTS)
|
|||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WASM)
|
if(QT_BUILD_WASM_BATCHED_TESTS)
|
||||||
add_subdirectory(corelib/io/qdiriterator)
|
add_subdirectory(corelib/io/qdiriterator)
|
||||||
add_subdirectory(corelib/io/largefile)
|
add_subdirectory(corelib/io/largefile)
|
||||||
add_subdirectory(corelib/io/qdataurl)
|
add_subdirectory(corelib/io/qdataurl)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
if(WASM) # not all tests currently work in WebAssembly
|
if(QT_BUILD_WASM_BATCHED_TESTS) # not all tests currently work in WebAssembly
|
||||||
add_subdirectory(qatomicint)
|
add_subdirectory(qatomicint)
|
||||||
add_subdirectory(qatomicinteger)
|
add_subdirectory(qatomicinteger)
|
||||||
add_subdirectory(qatomicpointer)
|
add_subdirectory(qatomicpointer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user