0e6c4224f0
Add new configure option -make minimal-static-tests and CMake option QT_BUILD_MINIMAL_STATIC_TESTS. In conjunction with QT_BUILD_TESTS it will enable building a minimal subset of tests when targeting a static desktop Qt build. In qtbase the minimal subset includes all the auto tests of testlib, tools, corelib and cmake. In particular this will also do cmake build tests and qmake build tests (tst_qmake) Adjust CI instructions to enable building a minimal subset of static tests when a platform configuration is tagged with the MinimalStaticTests feature. Fix and skip a few tests that were failing. Pick-to: 6.1 Task-number: QTBUG-87580 Task-number: QTBUG-91869 Change-Id: I1fc311b8d5e743ccf05047fb9a7fdb813a645206 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
type: Group
|
|
instructions:
|
|
- type: ChangeDirectory
|
|
directory: "{{.SourceDir}}"
|
|
- type: MakeDirectory
|
|
directory: "{{.SourceDir}}_standalone_tests"
|
|
- type: SetBuildDirectory
|
|
directory: "{{.SourceDir}}_standalone_tests"
|
|
- type: ChangeDirectory
|
|
directory: "{{.BuildDir}}"
|
|
- type: AppendToEnvironmentVariable
|
|
variableName: COIN_CMAKE_ARGS
|
|
variableValue: " -DCMAKE_AUTOGEN_VERBOSE=ON -S {{.SourceDir}} -B ."
|
|
disable_if:
|
|
condition: runtime
|
|
env_var: COIN_CMAKE_ARGS
|
|
equals_value: null
|
|
- type: EnvironmentVariable
|
|
variableName: COIN_CMAKE_ARGS
|
|
variableValue: "-DCMAKE_AUTOGEN_VERBOSE=ON -S {{.SourceDir}} -B ."
|
|
enable_if:
|
|
condition: runtime
|
|
env_var: COIN_CMAKE_ARGS
|
|
equals_value: null
|
|
|
|
# Inform CMake to build just a minimal set of tests for static Qt builds.
|
|
- type: AppendToEnvironmentVariable
|
|
variableName: COIN_CMAKE_ARGS
|
|
variableValue: " -DQT_BUILD_MINIMAL_STATIC_TESTS=ON"
|
|
enable_if:
|
|
condition: property
|
|
property: features
|
|
contains_value: "MinimalStaticTests"
|
|
|
|
- !include "{{qt/qtbase}}/call_cmake_for_standalone_tests.yaml"
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.TESTS_ENV_PREFIX}} cmake --build . --parallel -v"
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 1200
|
|
userMessageOnFailure: >
|
|
Failed to build sources. In the current state bug can be everywhere.
|
|
- type: UploadTestArtifact
|
|
transferType: UploadModuleTestsArtifact
|
|
archiveDirectory: "{{.BuildDir}}"
|
|
maxTimeInSeconds: 1200
|
|
maxTimeBetweenOutput: 1200
|