qt5base-lts/tests/auto/cmake
Alexandru Croitor 96e3ee0659 CMake: Get tests/auto/cmake tests working
The tests/auto/cmake project can be configured separately as a
standalone project with qt-cmake, or as part of the overall qtbase
standalone tests.

To do that a bunch of things were done
- Ported all Qt5 strings to Qt6
- Replaced in all projects the use of add_definitions and
  include_directories with a target based approach, except for 2 tests
  where we check that the old-style approach works, otherwise the
  tests would file
- Removed some (possibly unneeded) EGL / OpenGL tests
- Fixed some C++ code
- Added setup code to tests/auto/cmake/CMakeLists.txt to figure out
  which modules are available and should be tested
- Fixed Qt6CTestMacros.cmake to be loaded by Qt6Core
- Removed the CMake tests to not be run in qmake builds of Qt because
  they would fail anyway
- Enabled the CMake tests to be part of standalone tests
- Disabled auto-passing of the C and CXX compiler cache vars when
  cross-compiling so that the tests can somewhat pass on boot2qt.
  This is the issue we encountered in
  e2b2cd9397
- Ultimately disabled tests for boot2qt, because the -rpath-link
  flag is not generated by CMake for some reason.
- Added code to setup the environment when running an executable that
  was built as part of the test, so that the proper Qt libraries are
  found. This handles both the standalone tests case and separate
  project case.

The remaining unported tests are test_import_plugins which requires
quite a bit of work to get some modules and plugins built that were
done as part of the qmake .pro files, test_plugins that checks
some Network plugins which I'm not sure about, and
test_add_big_resource which doesn't work with namespaced builds
and there's no good way of detecting those at the moment either.

Change-Id: Ic8809c72817d1db81af6c6014c11df6473ad8c75
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-07-17 09:43:04 +02:00
..
mockplugins CMake: Add support for auto-importing plugins in CMake 2019-08-12 18:23:58 +02:00
test_add_big_resource CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_add_binary_resources_delayed_file CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_add_resource_options CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_add_resources_delayed_file CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_concurrent_module CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_dbus_module CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_dependent_modules CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_egl_lib CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_import_plugins Use QList instead of QVector in other qtbase tests 2020-07-07 11:48:45 +02:00
test_interface CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_interface_link_libraries CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_json_plugin_includes CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_moc_macro_target CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_multiple_find_package CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_opengl_lib CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_platform_defs_include CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_plugins CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_private_includes CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_private_targets CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_QFINDTESTDATA CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_QTBUG-63422 CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_qtmainwin_library CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_testlib_definitions CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_testlib_no_link_gui CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_testlib_no_link_widgets CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_umbrella_config CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_versionless_targets CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_wrap_cpp_and_resources CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test_wrap_cpp_options CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
test(needsquoting)dirname CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
cmake.pro Remove the openglextensions module 2020-06-10 09:35:04 +02:00
CMakeLists.txt CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00