summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Skoland <david.skoland@qt.io>2022-05-11 19:20:30 +0200
committerDavid Skoland <david.skoland@qt.io>2022-05-12 18:55:04 +0200
commit8e07d5095b3493c4d938991cc219ed73f5a8185f (patch)
tree4a1ddf9fd1aac637b679f094ee5f7e648ee498fb /tests
parentb98706f12207112645cc02a6df4868ebda2db8be (diff)
Only configure one test for wasm
Since we still don't support dynamic linking in wasm, we can't use it for tests, which forces us to use static linking, which is very slow (up to 30 seconds in some cases). The idea is to at least have one test run for wasm before expanding it later. Note that even with this change, QT_BUILD_MINIMAL_STATIC_TESTS=ON needs to be defined to skip the baseline test directory. Change-Id: I39aea22087211fb39f03dfb0b39c55f63a26d2a7 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
index 10b6e4f7b8..16ea50bf63 100644
--- a/tests/auto/CMakeLists.txt
+++ b/tests/auto/CMakeLists.txt
@@ -22,6 +22,13 @@ if(UIKIT)
return()
endif()
+# Only configure a single auto test for wasm for now
+# Since the linking step at this point is prohibitively long (static linking)
+if(WASM)
+ add_subdirectory(corelib/text/qchar)
+ return()
+endif()
+
add_subdirectory(testlib)
if(NOT CMAKE_CROSSCOMPILING AND QT_FEATURE_process)
add_subdirectory(tools)