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

Unify target finalizer execution (e.g. auto-linking plugins) for tests across platforms

    XMLWordPrintable

Details

    • efc852b0e (dev), 8296557d8 (6.5.0), 58213e56d (6.5), 6ffb1c3bf (dev), fbe1a265a (dev), 4680317ca (dev), df040fb11 (dev), 412e08106 (dev), a72dacce2 (dev), 2bbc0bda3 (dev), 45c8ab114 (6.8), 25f575e85 (dev), 79507816f (6.8), e4549375c (6.8), c53a9d9ff (6.8)

    Description

      Currently tests added by functions like qt_internal_add_test / manual_test, etc don't have finalizers executed for them in most cases.

      That is not the case for projects that use the public qt_add_executable function.

      This causes issues for tests that depend on plugins being auto-linked, or any other finalizer behavior.

      Currently, the qt_add_executable finalizers are executed for internal tests on iOS only, which was implemented for QTBUG-104754.

      It wasn't enabled for all platforms because webassembly has some custom finalizers running for tests, and there might be duplicate executions if we just enabled the regular finalizers too.

      There might also be issues with qml auto-linking on non-cross compile targets, due to qmlimportscanner not being available.

      All of these concerns need to be reconciled and unified.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-112212
          # Subject Branch Project Status CR V

          Activity

            People

              qtbuildsystem Qt Build System Team
              alexandru.croitor Alexandru Croitor
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes