summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorToni Saario <toni.saario@qt.io>2021-04-29 11:04:13 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-11-15 07:19:15 +0000
commit60cfceea2516f94ca6a96c8cc93190ed550a60fb (patch)
treed0daf215a74a7cab287ba254be3990cf2dd78dd0 /coin
parentd6847cf414d0007bb2fcbf037ae879845caee27e (diff)
Run bic tests on linux packaging target
Task-number: QTQAINFRA-4338 Change-Id: Ie2682839139cc48887ee43b75a0dffe26805ad60 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Milla Pohjanheimo <milla.pohjanheimo@qt.io> Reviewed-by: Simo Fält <simo.falt@qt.io> (cherry picked from commit 0b70d698c8ad314f5bbf4a13914293aefe7d200f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'coin')
-rw-r--r--coin/instructions/cmake_run_ctest_enforce_exit_code.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
index 0d99faddcd..a7628fbae9 100644
--- a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
+++ b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
@@ -18,3 +18,42 @@ instructions:
maxTimeBetweenOutput: 900
userMessageOnFailure: >
Failed to run tests.
+
+ - type: Group
+ instructions:
+ - type: EnvironmentVariable
+ variableName: QT_MODULE_TO_TEST
+ variableValue: "{{.SourceDir}}"
+ - type: PrependToEnvironmentVariable
+ variableName: PATH
+ variableValue: "{{.InstallDir}}/bin:"
+ - type: InstallSourceArchive
+ maxTimeInSeconds: 600
+ maxTimeBetweenOutput: 600
+ project: qt/qtqa
+ ref: dev
+ directory: qt/qtqa
+ userMessageOnFailure: "Could not install qt/qtqa source archive. Please investigate why."
+ - type: ChangeDirectory
+ directory: "{{.AgentWorkingDir}}/qt/qtqa/tests/postbuild/bic"
+ - type: ExecuteCommand
+ command: ["{{.InstallDir}}/bin/qmake"]
+ maxTimeInSeconds: 7200
+ maxTimeBetweenOutput: 300
+ userMessageOnFailure: "Failed to execute qmake for bic tests"
+ - type: RunQtUnitTest
+ runTestCommand: ["make", "check", "-j1"]
+ directory: "{{.AgentWorkingDir}}/qt/qtqa/tests/postbuild/bic"
+ testRepetitionAllowance: 0
+ maxTimeInSeconds: 7200
+ maxTimeBetweenOutput: 300
+ userMessageOnFailure: "Running bic tests failed."
+ enable_if:
+ condition: and
+ conditions:
+ - condition: property
+ property: features
+ contains_value: Packaging
+ - condition: property
+ property: target.os
+ equals_value: Linux