| 1 |
type: Group |
| 2 |
instructions: |
| 3 |
- type: ScheduleUploadTestResults |
| 4 |
- type: PrependToEnvironmentVariable |
| 5 |
variableName: PATH |
| 6 |
variableValue: "{{.Env.PYTHON3_PATH}}:" |
| 7 |
disable_if: |
| 8 |
condition: property |
| 9 |
property: host.os |
| 10 |
equals_value: Windows |
| 11 |
- type: EnvironmentVariable |
| 12 |
variableName: TESTRUNNER |
| 13 |
variableValue: "{{.Env.LIBEXEC_INSTALL_DIR}}qt-testrunner.py --" |
| 14 |
# Running wasm tests with the coin testrunner is not yet implemented |
| 15 |
disable_if: |
| 16 |
condition: property |
| 17 |
property: target.osVersion |
| 18 |
in_values: [WebAssembly] |
| 19 |
- type: AppendToEnvironmentVariable |
| 20 |
variableName: TESTRUNNER |
| 21 |
variableValue: " {{.SourceDir}}/coin_qnx_qemu_runner.sh" |
| 22 |
enable_if: |
| 23 |
condition: property |
| 24 |
property: target.os |
| 25 |
equals_value: QNX |
| 26 |
- type: AppendToEnvironmentVariable |
| 27 |
variableName: TESTRUNNER |
| 28 |
variableValue: " {{.AgentWorkingDir}}/coin_vxworks_qemu_runner.sh" |
| 29 |
enable_if: |
| 30 |
condition: property |
| 31 |
property: target.osVersion |
| 32 |
in_values: [VxWorks] |
| 33 |
- type: Group |
| 34 |
enable_if: |
| 35 |
condition: property |
| 36 |
property: features |
| 37 |
contains_value: UseAddressSanitizer |
| 38 |
instructions: |
| 39 |
- type: EnvironmentVariable |
| 40 |
variableName: ASAN_OPTIONS |
| 41 |
variableValue: "malloc_context_size=100:detect_leaks=0" |
| 42 |
- type: EnvironmentVariable |
| 43 |
# Override qt-testrunner as we don't want to gather test statistics |
| 44 |
# because many tests FAIL when built with ASAN. |
| 45 |
variableName: TESTRUNNER |
| 46 |
variableValue: "{{.Env.LIBEXEC_INSTALL_DIR}}sanitizer-testrunner.py" |
| 47 |
- type: EnvironmentVariable |
| 48 |
variableName: COIN_CTEST_RESULTSDIR |
| 49 |
variableValue: "{{.AgentWorkingDir}}\\testresults" |
| 50 |
enable_if: |
| 51 |
condition: property |
| 52 |
property: host.os |
| 53 |
equals_value: Windows |
| 54 |
- type: EnvironmentVariable |
| 55 |
variableName: COIN_CTEST_RESULTSDIR |
| 56 |
variableValue: "{{.AgentWorkingDir}}/testresults" |
| 57 |
disable_if: |
| 58 |
condition: property |
| 59 |
property: host.os |
| 60 |
equals_value: Windows |
| 61 |
|
| 62 |
- !include "{{qt/qtbase}}/vxworks_test_env_setup.yaml" |
| 63 |
|
| 64 |
# Only output verbose test output for failures, unless |
| 65 |
# the VerboseCTestOutput feature is enabled. The full |
| 66 |
# test output for all tests are still stored and uploaded |
| 67 |
# to coin for deeper investigations (see LastTest.log below) |
| 68 |
- type: AppendToEnvironmentVariable |
| 69 |
variableName: CTEST_ARGS |
| 70 |
variableValue: " --output-on-failure" |
| 71 |
disable_if: |
| 72 |
condition: property |
| 73 |
property: features |
| 74 |
contains_value: VerboseCTestOutput |
| 75 |
- type: AppendToEnvironmentVariable |
| 76 |
variableName: CTEST_ARGS |
| 77 |
variableValue: " -V" |
| 78 |
enable_if: |
| 79 |
condition: property |
| 80 |
property: features |
| 81 |
contains_value: VerboseCTestOutput |
| 82 |
|
| 83 |
- type: AppendToEnvironmentVariable |
| 84 |
variableName: CTEST_ARGS |
| 85 |
variableValue: " --stop-on-failure" |
| 86 |
enable_if: |
| 87 |
condition: property |
| 88 |
property: features |
| 89 |
contains_value: AbortTestingOnFirstFailure |
| 90 |
|
| 91 |
- type: AppendToEnvironmentVariable |
| 92 |
variableName: CTEST_ARGS |
| 93 |
variableValue: " --no-label-summary" |
| 94 |
|
| 95 |
# Enable CTest's JUnit XML summary, supported in CMake >= v3.21 |
| 96 |
- type: AppendToEnvironmentVariable |
| 97 |
variableName: CTEST_ARGS |
| 98 |
variableValue: " --output-junit {{.Env.COIN_CTEST_RESULTSDIR}}{{.Env.CI_PATH_SEP}}test_summary.ctest_junit_xml" |
| 99 |
|
| 100 |
- !include "{{qt/qtbase}}/coin_module_test_android_start_emulator.yaml" |
| 101 |
|
| 102 |
- type: EnvironmentVariable |
| 103 |
variableName: COIN_CROSS_PLATFORM_VERSION_TEST |
| 104 |
variableValue: "TRUE" |
| 105 |
enable_if: |
| 106 |
condition: and |
| 107 |
conditions: |
| 108 |
- condition: property |
| 109 |
property: platformDependency |
| 110 |
not_equals_value: null |
| 111 |
- condition: property |
| 112 |
property: platformDependency.target.osVersion |
| 113 |
not_equals_property: target.osVersion |
| 114 |
- condition: property |
| 115 |
property: features |
| 116 |
contains_value: TestOnly |
| 117 |
|
| 118 |
# Run CTest, with or without ignoring exit code |
| 119 |
# FIXME: De-duplicate the CTest instruction when |
| 120 |
# ignoreExitCode expands environment variables. |
| 121 |
- type: Group |
| 122 |
enable_if: |
| 123 |
condition: runtime |
| 124 |
env_var: COIN_CTEST_IGNORE_EXIT_CODE |
| 125 |
not_equals_value: "1" |
| 126 |
instructions: |
| 127 |
- type: ExecuteCommand |
| 128 |
command: "{{.Env.TESTS_ENV_PREFIX}} ctest {{.Env.CTEST_ARGS}}" |
| 129 |
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution |
| 130 |
ignoreExitCode: false |
| 131 |
maxTimeInSeconds: 14400 |
| 132 |
maxTimeBetweenOutput: 14400 |
| 133 |
userMessageOnFailure: > |
| 134 |
Failed to run tests. |
| 135 |
- type: ExecuteCommand |
| 136 |
command: > |
| 137 |
cmake -E copy |
| 138 |
Testing{{.Env.CI_PATH_SEP}}Temporary{{.Env.CI_PATH_SEP}}LastTest.log |
| 139 |
{{.Env.COIN_CTEST_RESULTSDIR}}{{.Env.CI_PATH_SEP}}CTest.log |
| 140 |
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution |
| 141 |
ignoreExitCode: false |
| 142 |
userMessageOnFailure: > |
| 143 |
Failed to copy LastTest.log to testresults directory. |
| 144 |
executeOn: always |
| 145 |
maxTimeInSeconds: 20 |
| 146 |
maxTimeBetweenOutput: 20 |
| 147 |
- type: Group |
| 148 |
enable_if: |
| 149 |
condition: runtime |
| 150 |
env_var: COIN_CTEST_IGNORE_EXIT_CODE |
| 151 |
equals_value: "1" |
| 152 |
instructions: |
| 153 |
- type: ExecuteCommand |
| 154 |
command: "{{.Env.TESTS_ENV_PREFIX}} ctest {{.Env.CTEST_ARGS}}" |
| 155 |
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution |
| 156 |
ignoreExitCode: true |
| 157 |
maxTimeInSeconds: 14400 |
| 158 |
maxTimeBetweenOutput: 14400 |
| 159 |
userMessageOnFailure: > |
| 160 |
Failed to run tests. |
| 161 |
- type: ExecuteCommand |
| 162 |
command: > |
| 163 |
cmake -E copy |
| 164 |
Testing{{.Env.CI_PATH_SEP}}Temporary{{.Env.CI_PATH_SEP}}LastTest.log |
| 165 |
{{.Env.COIN_CTEST_RESULTSDIR}}{{.Env.CI_PATH_SEP}}CTest.log |
| 166 |
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution |
| 167 |
ignoreExitCode: true |
| 168 |
userMessageOnFailure: > |
| 169 |
Failed to copy LastTest.log to testresults directory. |
| 170 |
executeOn: always |
| 171 |
|
| 172 |
- type: Group |
| 173 |
instructions: |
| 174 |
# Qttestrunner does not work with bic tests. |
| 175 |
- type: EnvironmentVariable |
| 176 |
variableName: TESTRUNNER |
| 177 |
variableValue: "" |
| 178 |
- type: EnvironmentVariable |
| 179 |
variableName: QT_MODULE_TO_TEST |
| 180 |
variableValue: "{{.SourceDir}}" |
| 181 |
- type: PrependToEnvironmentVariable |
| 182 |
variableName: PATH |
| 183 |
variableValue: "{{.InstallDir}}/bin:" |
| 184 |
- type: InstallSourceArchive |
| 185 |
maxTimeInSeconds: 600 |
| 186 |
maxTimeBetweenOutput: 600 |
| 187 |
project: qt/qtqa |
| 188 |
ref: dev |
| 189 |
directory: qt/qtqa |
| 190 |
userMessageOnFailure: "Could not install qt/qtqa source archive. Please investigate why." |
| 191 |
- type: ChangeDirectory |
| 192 |
directory: "{{.AgentWorkingDir}}/qt/qtqa/tests/postbuild/bic" |
| 193 |
- type: ExecuteCommand |
| 194 |
command: ["{{.InstallDir}}/bin/qmake"] |
| 195 |
maxTimeInSeconds: 7200 |
| 196 |
maxTimeBetweenOutput: 300 |
| 197 |
userMessageOnFailure: "Failed to execute qmake for bic tests" |
| 198 |
- type: RunQtUnitTest |
| 199 |
runTestCommand: ["make", "check", "-j1"] |
| 200 |
directory: "{{.AgentWorkingDir}}/qt/qtqa/tests/postbuild/bic" |
| 201 |
testRepetitionAllowance: 0 |
| 202 |
maxTimeInSeconds: 7200 |
| 203 |
maxTimeBetweenOutput: 300 |
| 204 |
userMessageOnFailure: "Running bic tests failed." |
| 205 |
enable_if: |
| 206 |
condition: and |
| 207 |
conditions: |
| 208 |
- condition: property |
| 209 |
property: features |
| 210 |
contains_value: Packaging |
| 211 |
- condition: property |
| 212 |
property: target.os |
| 213 |
equals_value: Linux |
| 214 |
- condition: property |
| 215 |
property: features |
| 216 |
contains_value: EnableBicTests |