Commit Graph

3 Commits

Author SHA1 Message Date
Alexandru Croitor
a848d20880 CMake: Adjust to new location of RunCMakeTestHelpers in qtbase
Adjust the path to where expect to find the QtRunCMakeTestHelpers
module in qtbase.

Replace the usage of 'QtIRRunCMake' with 'RunCMake' in the root test
CMakeLists.txt.

Pass the current source dir as an extra module path to the RunCMake
test, so it can find the Common module without relying on relative
paths, so that any build dir works.

Remove the unnecessary forwarding of CMAKE_SYSTEM_NAME.

Amends e552513c9f

Change-Id: If804bcb36a0bd3df6e4617e56c146094793138c4
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
2025-04-02 18:02:06 +01:00
Cristian Le
e552513c9f Remove RunCMake helpers from top-level repo
These test helpers are moved to qtbase submodule.

Change-Id: If8aa31fe1d9a93f2667249abd90ae9b8cb81d07a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2025-02-12 11:10:52 +01:00
Alexandru Croitor
915b8d2f54 CMake: Add a test for init-repository
The new test uses the recently introduced upstream cmake test
infrastructure module, to ensure the execution log output is identical
between the old perl script and new the cmake script for a few basic
use cases. It is not an exhaustive test of all features. It should
work on Windows, macOS, Linux (assuming perl is installed).

There are also a few tests that only apply to the cmake-script
version for features that exist only in the latter (like the 'existing'
module-subset key).

The test is a 'manual' test instead of an 'auto' test because we don't
really want to clone so many submodules as part of every qt5.git
integration in Coin.
In the future, we could potentially add a nightly Jenkins job to run
the tests.

Task-number: QTBUG-120030
Change-Id: I4201d734c2877109102518b073dec24bb63edc24
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
2024-02-28 06:23:50 +01:00