When using the Xcode generator, the custom command created by qt_add_lrelease needs to be driven by exactly one custom target. We have code that attempts to do that by assigning the driver target name to the _qt_resource_target_dependency property, which is then processed by _qt_internal_process_resource. It's not sufficient to set the property in the directory scope of the legacy_target, it needs to be set in two places: - in the (non-legacy) lrelease_target directory scope - and also in the directory scopes of the targets processed by qt_add_translations The latter is needed because qt_add_translations is usually deferr called in the root directory scope, but each processed target might be creating the resource in a different directory scope, where the property would not be available. Extract the common code into a function, and use it for both mentioned cases. Piggy-back on the test_i18n_subdir tests and rerun them with the Xcode generator, to verify that the fix works. Amends5b0e765ab0Amends94bb328a17Augmentsc700597cfeFixes: QTBUG-136736 Task-number: QTBUG-103470 Task-number: QTBUG-117406 Change-Id: I6c7fac4f988dbd8289ac47c50912b4733559fbdb Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 353716dfad147c014c31fdc9f10759f599a7ec09) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit b27c7440ebb5acd1fea797955d2545a51fbf080d)
This directory contains autotests and benchmarks based on QTestlib. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.
Linux X11:
* The user must be logged in to an active desktop; you can't run the
autotests without a valid DISPLAY that allows X11 connections.
* The tests are run against a KDE3 or KDE4 desktop.
* Window manager uses "click to focus", and not "focus follows mouse". Many
tests move the mouse cursor around and expect this to not affect focus
and activation.
* Disable "click to activate", i.e., when a window is opened, the window
manager should automatically activate it (give it input focus) and not
wait for the user to click the window.