From 8e07d5095b3493c4d938991cc219ed73f5a8185f Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 11 May 2022 19:20:30 +0200 Subject: [PATCH] Only configure one test for wasm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tor Arne Vestbø --- tests/auto/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt index 10b6e4f7b86..16ea50bf638 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)