summaryrefslogtreecommitdiffstats
path: root/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
blob: 9913bb483219aa5e8954f470b363b834bf212b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
type: Group
instructions:
  - type: EnvironmentVariable
    variableName: CTEST_ARGS
    variableValue: "-V --rerun-failed --force-new-ctest-process --repeat until-pass:5"
  - type: AppendToEnvironmentVariable
    variableName: CTEST_ARGS
    variableValue: " --stop-on-failure"
    enable_if:
      condition: property
      property: features
      contains_value: AbortTestingOnFirstFailure
  - type: ExecuteCommand
    command: "{{.Env.TESTS_ENV_PREFIX}} ctest {{.Env.CTEST_ARGS}}"
    executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
    ignoreExitCode: false
    maxTimeInSeconds: 7200
    maxTimeBetweenOutput: 900
    userMessageOnFailure: >
      Failed to run tests.