summaryrefslogtreecommitdiffstats
path: root/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml
blob: b94717730bd84838b8828b5c2280fa79cb97630e (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"
  - 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: true
    maxTimeInSeconds: 10800
    maxTimeBetweenOutput: 900
    userMessageOnFailure: >
      Failed to run tests.