wasm: enable asyncify for batched tests only
It should be possible to build a test in any configuration by building Qt in that configuration, and then building the test with qt-standalone-test. Not all Qt configurations will be able to run all tests, (due to exec() calls and similar) but that's OK - some tests don't have exec() calls, and we want to be able to run tests for a given configuration to figure out how well it works. On CI we want to use batching and asyncify, so it makes sense to tie usage of asyncify to batching. Pick-to: 6.6 Change-Id: I05553d250a45c1831f43dc71a43ef02d01d70535 Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
This commit is contained in:
parent
bf67518b53
commit
70f5d396be
@ -612,10 +612,13 @@ function(qt_internal_add_test name)
|
||||
list(APPEND extra_test_args "--browser_args=\"--password-store=basic\"")
|
||||
list(APPEND extra_test_args "--kill_exit")
|
||||
|
||||
# We always want to enable asyncify for tests, as some of them use exec
|
||||
# Tests may require asyncify if they use exec(). Enable asyncify for
|
||||
# batched tests since this is the configuration used on the CI system.
|
||||
# Optimize for size (-Os), since asyncify tends to make the resulting
|
||||
# binary very large
|
||||
target_link_options("${name}" PRIVATE "SHELL:-s ASYNCIFY" "-Os")
|
||||
if(batch_current_test)
|
||||
target_link_options("${name}" PRIVATE "SHELL:-s ASYNCIFY" "-Os")
|
||||
endif()
|
||||
|
||||
# This tells cmake to run the tests with this script, since wasm files can't be
|
||||
# executed directly
|
||||
|
Loading…
Reference in New Issue
Block a user