summaryrefslogtreecommitdiffstats
path: root/coin/instructions/make_test_plan.yaml
blob: cbc57b5651cd5e3116df008960a0648ab8437066 (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
type: Group
disable_if:
  condition: property
  property: features
  contains_value: DisableTests
instructions:
  - type: EnvironmentVariable
    variableName: QMAKEFEATURES
    variableValue: "{{.AgentWorkingDir}}/test_plan_hook"
  - type: WriteFile
    fileContents: "load(default_post)
testcase|qmltestcase { !build_pass:contains(TEMPLATE, \".*(lib|app)\"):!insignificant_test:write_file($$PWD/TestLibTestPlan, OUT_PWD, append) }
else:if(ctest_testcase) { !insignificant_test:write_file($$PWD/GeneralTestPlan, OUT_PWD, append) }"
    filename: "{{.AgentWorkingDir}}/test_plan_hook/default_post.prf"
    fileMode: 420
  - type: ChangeDirectory
    directory: "{{.SourceDir}}/tests"
  - type: ExecuteCommand
    command: "c:{{.BuildDir}}\\bin\\qmake.exe -r {{.SourceDir}}\\tests"
    maxTimeInSeconds: 6000
    maxTimeBetweenOutput: 600
    userMessageOnFailure: "Failed running qmake, check logs."
    enable_if:
      condition: property
      property: target.compiler
      in_values: [MSVC2013, MSVC2015, MSVC2017, MSVC2019]
  - type: ExecuteCommand
    command: "{{.BuildDir}}/bin/qmake -r {{.SourceDir}}/tests"
    maxTimeInSeconds: 6000
    maxTimeBetweenOutput: 600
    userMessageOnFailure: "Failed running qmake, check logs."
    enable_if:
      condition: property
      property: target.compiler
      not_in_values: [MSVC2013, MSVC2015, MSVC2017, MSVC2019]
  - type: UploadTestPlan
    qtestlibTestPlanPath: "{{.AgentWorkingDir}}/test_plan_hook/TestLibTestPlan"