mirror of https://github.com/qt/qtbase.git
wasm: Switch to the new jspi browser
Change-Id: I10d1950f6532a01b7803944aa4383df4f974d996 Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
This commit is contained in:
parent
12779df281
commit
cc984a60fd
|
@ -721,26 +721,39 @@ function(qt_internal_add_test name)
|
||||||
list(APPEND extra_test_args "quseemrun")
|
list(APPEND extra_test_args "quseemrun")
|
||||||
list(APPEND extra_test_args "qtestname=${testname}")
|
list(APPEND extra_test_args "qtestname=${testname}")
|
||||||
list(APPEND extra_test_args "--silence_timeout=60")
|
list(APPEND extra_test_args "--silence_timeout=60")
|
||||||
|
|
||||||
|
|
||||||
# TODO: Add functionality to specify browser
|
# TODO: Add functionality to specify browser
|
||||||
if(DEFINED ENV{BROWSER_FOR_WASM})
|
set(browser "")
|
||||||
set(browser $ENV{BROWSER_FOR_WASM})
|
set(browser_args "")
|
||||||
|
if(DEFINED ENV{WASM_BROWSER_JSPI})
|
||||||
|
set(browser "$ENV{WASM_BROWSER_JSPI}")
|
||||||
|
set(browser_args "$ENV{WASM_BROWSER_JSPI_ARGS}")
|
||||||
else()
|
else()
|
||||||
set(browser "chrome")
|
if(DEFINED ENV{BROWSER_FOR_WASM})
|
||||||
|
set(browser "$ENV{BROWSER_FOR_WASM}")
|
||||||
|
else()
|
||||||
|
set(browser "chrome")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(DEFINED ENV{HEADLESS_CHROME_FOR_TESTING})
|
||||||
|
set(browser_args "${browser_args} --headless")
|
||||||
|
endif()
|
||||||
|
set(browser_args "${browser_args} --password-store=basic")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
list(APPEND extra_test_args "--browser=${browser}")
|
list(APPEND extra_test_args "--browser=${browser}")
|
||||||
if(DEFINED ENV{HEADLESS_CHROME_FOR_TESTING})
|
list(APPEND extra_test_args "--browser_args=\"${browser_args}\"")
|
||||||
list(APPEND extra_test_args "--browser_args=\"--password-store=basic --headless\"")
|
|
||||||
else()
|
|
||||||
list(APPEND extra_test_args "--browser_args=\"--password-store=basic\"")
|
|
||||||
endif()
|
|
||||||
list(APPEND extra_test_args "--kill_exit")
|
list(APPEND extra_test_args "--kill_exit")
|
||||||
|
|
||||||
# Tests may require asyncify if they use exec(). Enable asyncify for
|
if (NOT QT_FEATURE_wasm_jspi)
|
||||||
# batched tests since this is the configuration used on the CI system.
|
# Tests may require asyncify if they use exec(). Enable asyncify for
|
||||||
# Optimize for size (-Os), since asyncify tends to make the resulting
|
# batched tests since this is the configuration used on the CI system.
|
||||||
# binary very large
|
# Optimize for size (-Os), since asyncify tends to make the resulting
|
||||||
if(batch_current_test)
|
# 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()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# This tells cmake to run the tests with this script, since wasm files can't be
|
# This tells cmake to run the tests with this script, since wasm files can't be
|
||||||
|
|
Loading…
Reference in New Issue