Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115221

Add support for WebAssembly in the autotests

    XMLWordPrintable

Details

    • 684521d35 (dev), 69889c755 (6.6), b7c9c6576 (dev), c9f17017c (6.7)

    Description

      There are currently multiple problems:

      Batched autotests don't work together with autogenerated code:

      agent:2023/07/13 09:53:09 build.go:402: /home/qt/work/qt/qtinterfaceframework_standalone_tests/tests/auto/core/ifcodegen/flat-cmake-hierarchy-test/test/tst_echozoned.cpp:14:10: fatal error: 'echozoned.h' file not found
      agent:2023/07/13 09:53:09 build.go:402: #include "echozoned.h"
      agent:2023/07/13 09:53:09 build.go:402:          ^~~~~~~~~~~~~
      agent:2023/07/13 09:53:09 build.go:402: 1 error generated.
      agent:2023/07/13 09:53:09 build.go:402: em++: error: '/opt/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_SHARED_MEMORY__=1 -DEMSCRIPTEN --sysroot=/opt/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -x c++ -E -P -I/home/qt/work/qt/qtinterfaceframework_standalone_tests/tests/auto/core/ifcodegen/flat-cmake-hierarchy-test -I/home/qt/work/qt/qtinterfaceframework/tests/auto/core/ifcodegen/flat-cmake-hierarchy-test -I/home/qt/work/qt/qtinterfaceframework_standalone_tests/tests/auto/core/ifcodegen/flat-cmake-hierarchy-test/tst_flat-cmake-hierarchy_autogen/include -I/home/qt/work/qt/qtinterfaceframework_standalone_tests/tests/auto/core/ifcodegen/flat-cmake-hierarchy-test/test -isystem /home/qt/work/install/target/mkspecs/wasm-emscripten -isystem /home/qt/work/install/target/include -isystem /home/qt/work/install/target/include/QtCore -isystem /home/qt/work/install/target/include/QtInterfaceFramework -isystem /home/qt/work/install/target/include/QtQml -isystem /home/qt/work/install/target/include/QtQmlIntegration -isystem /home/qt/work/install/target/include/QtNetwork -isystem /home/qt/work/install/target/include/QtTest -MD -MF tests/auto/core/ifcodegen/flat-cmake-hierarchy-test/CMakeFiles/tst_flat-cmake-hierarchy.dir/test/tst_echozoned.cpp.o.d -MT tests/auto/core/ifcodegen/flat-cmake-hierarchy-test/CMakeFiles/tst_flat-cmake-hierarchy.dir/test/tst_echozoned.cpp.o -DQT_CORE_LIB -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_INTERFACEFRAMEWORK_LIB -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_QMAKE_DEVICE_OPTIONS=QT_EMSCRIPTEN_ASYNCIFY=1 -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_TESTCASE_BUILDDIR="/home/qt/work/qt/qtinterfaceframework_standalone_tests/tests/auto/core/ifcodegen/flat-cmake-hierarchy-test" -DQT_TESTCASE_SOURCEDIR="/home/qt/work/qt/qtinterfaceframework/tests/auto/core/ifcodegen/flat-cmake-hierarchy-test" -DQT_TESTLIB_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DNDEBUG -O2 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -pthread -std=gnu++17 -matomics -mbulk-memory /home/qt/work/qt/qtinterfaceframework_standalone_tests/tests/auto/core/ifcodegen/flat-cmake-hierarchy-test/test/tst_echozoned.cpp' failed (returned 1)
      

      In addition a lot of tests use the same class names for test backends and APIs. Those produce duplicate symbols.

      All tests need to be adapted to also support static linking and loading static backends.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            gagi Dominik Holland
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes