diff options
Diffstat (limited to 'coin/instructions/make_test_plan.yaml')
-rw-r--r-- | coin/instructions/make_test_plan.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/coin/instructions/make_test_plan.yaml b/coin/instructions/make_test_plan.yaml new file mode 100644 index 000000000..cbc57b565 --- /dev/null +++ b/coin/instructions/make_test_plan.yaml @@ -0,0 +1,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" |