summaryrefslogtreecommitdiffstats
path: root/coin/instructions/execute_bic_tests.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'coin/instructions/execute_bic_tests.yaml')
-rw-r--r--coin/instructions/execute_bic_tests.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/coin/instructions/execute_bic_tests.yaml b/coin/instructions/execute_bic_tests.yaml
new file mode 100644
index 000000000..9e476d309
--- /dev/null
+++ b/coin/instructions/execute_bic_tests.yaml
@@ -0,0 +1,40 @@
+type: Group
+enable_if:
+ condition: and
+ conditions:
+ - condition: property
+ property: host.os
+ equals_value: Linux
+ - condition: property
+ property: target.os
+ equals_property: host.os
+ - condition: property
+ property: configureArgs
+ not_contains_value: "-no-widgets"
+instructions:
+ - type: InstallSourceArchive
+ maxTimeInSeconds: 600
+ maxTimeBetweenOutput: 600
+ project: qt/qtqa
+ ref: master
+ directory: qt/qtqa
+ userMessageOnFailure: "Could not install qt/qtqa source archive. Please investigate why."
+ - type: EnvironmentVariable
+ variableName: QT_MODULE_TO_TEST
+ variableValue: "{{.SourceDir}}"
+ - type: ChangeDirectory
+ directory: "{{.AgentWorkingDir}}/qt/qtqa/tests/postbuild/bic"
+ - type: ExecuteCommand
+ command: ['{{.InstallDir}}/bin/qmake']
+ maxTimeInSeconds: 1800
+ maxTimeBetweenOutput: 1800
+ userMessageOnFailure: "Failed to run qmake, check logs."
+ - type: SetExecutionPhaseName
+ executionPhaseName: "testing {{.AgentWorkingDir}}/qt/qtqa/tests/postbuild/bic"
+ - type: RunQtUnitTest
+ directory: "{{.AgentWorkingDir}}/qt/qtqa/tests/postbuild/bic"
+ runTestCommand: ['make', 'check', '-j1']
+ maxTimeInSeconds: 1800
+ maxTimeBetweenOutput: 600
+ testRepetitionAllowance: 1
+ userMessageOnFailure: "Failed to execute bic tests."