qt5base-lts/tests/auto/corelib/io
Alexandru Croitor a285bcba26 Ugly fix for handling QT_SOURCE_TREE
QT_SOURCE_TREE is a variable that is set in qtbase/.qmake.conf.
In qtbase, it's used throughout various
projects to find cpp sources when building standalone tests (among
other things).
Everything works fine with qmake, because even if qmake is invoked
on the tests subfolder, qmake searches up the source directory tree
until it finds a .qmake.conf file, and uses that.

When building qttools with qmake, the qdoc project expects
to have a QT_SOURCE_TREE value, but it's not actually set in the
qttools/.qmake.conf file, so the generated include paths that use
that value are incorrect. Curiously the build still succeeds.

Now in CMake land we replaced QT_SOURCE_TREE with
CMAKE_SOURCE_DIR, but that does not work properly when doing a
standalone tests build, because the project in that case is the
tests one, and not the qtbase one, so configuration fails in a
developer build when trying to configure some private tests.

So far I've found that only qtbase actively uses this value.
A temporary fix is to save the qtbase source directory into a
QT_SOURCE_TREE variable inside the generated
BuildInternalsExtra.cmake file.

The pro2cmake script is changed to handle presence of QT_SOURCE_TREE
in a qrc file path. This is handled by finding the location of a
.qmake.conf file starting from the project file absolute path.
This is needed to stop the script from crashing when handling
the mimedatabase test projects for example.

The change also regenerates the relevant failing test projects, and
thus standalone tests (when doing developer builds aka private_tests
enabled) now configure and build successfully.

Change-Id: I15adc6f4ab6e3056c43ed850196204e2229c4d98
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-07-29 13:16:14 +00:00
..
largefile Merge remote-tracking branch 'origin/wip/qt6' into wip/cmake 2019-07-11 17:17:51 +02:00
qabstractfileengine CMake: Add tests/auto/corelib/io/qabstractfileengine 2019-04-29 12:02:22 +00:00
qbuffer Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
qdataurl Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
qdebug Prefix QTextStream operators with Qt:: in tests 2019-05-03 09:36:36 +00:00
qdir Merge remote-tracking branch 'origin/5.13' into dev 2019-03-09 01:00:55 +01:00
qdiriterator Android: fix qdiriterator test 2018-06-21 14:14:45 +00:00
qfile Migrate Windows system libs to external dependencies 2019-05-08 08:30:02 +00:00
qfileinfo Merge remote-tracking branch 'origin/dev' into wip/qt6 2019-07-08 13:20:48 +02:00
qfileselector Merge remote-tracking branch 'origin/dev' into wip/qt6 2019-06-26 11:33:19 +02:00
qfilesystementry Ugly fix for handling QT_SOURCE_TREE 2019-07-29 13:16:14 +00:00
qfilesystemmetadata Filesystem: Use "birth time" to avoid confusion with Unix ctime 2017-08-05 16:41:38 +00:00
qfilesystemwatcher Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
qiodevice Remove QSKIP and bring the test back to business 2018-10-25 11:51:42 +00:00
qipaddress Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
qlockfile Remove usages of QSysInfo's deprecated APIs 2019-07-05 09:26:17 +00:00
qloggingcategory Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
qloggingregistry Logging: Accept .ini files written by QSettings 2018-07-28 14:43:40 +00:00
qnodebug Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
qprocess Remove usages of deprecated APIs of corelib 2019-07-05 11:25:46 +02:00
qprocess-noapplication macOS: Don't build auto-tests as application bundles unless explicitly requested 2016-10-23 10:39:56 +00:00
qprocessenvironment Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
qresourceengine Remove usages of deprecated APIs of corelib 2019-07-05 11:25:46 +02:00
qsavefile Support Alternate Data Streams in QSaveFile 2017-08-04 17:30:13 +00:00
qsettings Remove usages of deprecated APIs of corelib 2019-07-05 11:25:46 +02:00
qstandardpaths test: migrate QStandardPaths tests to QRegularExpression 2019-06-10 21:34:38 +02:00
qstorageinfo Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
qtemporarydir Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qtemporaryfile Merge remote-tracking branch 'origin/5.13' into dev 2019-06-27 14:38:03 +02:00
qurl Brush up tst_QUrl 2019-06-11 09:16:31 +02:00
qurlinternal QUrl: fix IDN conversion when the ACE form is invalid 2017-04-25 00:51:43 +00:00
qurlquery Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
CMakeLists.txt CMake: Add tests/auto/corelib/io/qabstractfileengine 2019-04-29 12:02:22 +00:00
io.pro Modernize the "settings" feature 2018-11-15 17:20:15 +00:00