summaryrefslogtreecommitdiffstats
path: root/coin/instructions/execute_bic_tests.yaml
blob: 9e476d3097937aa14fd02c33579d2f4905771333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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."