diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-09-16 19:17:27 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-09-27 15:09:06 (GMT) |
commit | 374d82bbcd461a5ee8d1d9d3a94abd8a26759c37 (patch) | |
tree | d390a842e701ad29e157ee5d097902a6305ddd02 /Tests/RunCMake/CMakePresetsWorkflow/Good.json.in | |
parent | e3168128841485a0a579ad3b9125fdae5e12eec8 (diff) | |
download | CMake-374d82bbcd461a5ee8d1d9d3a94abd8a26759c37.zip CMake-374d82bbcd461a5ee8d1d9d3a94abd8a26759c37.tar.gz CMake-374d82bbcd461a5ee8d1d9d3a94abd8a26759c37.tar.bz2 |
cmake: Add --workflow mode
Fixes: #23118
Diffstat (limited to 'Tests/RunCMake/CMakePresetsWorkflow/Good.json.in')
-rw-r--r-- | Tests/RunCMake/CMakePresetsWorkflow/Good.json.in | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresetsWorkflow/Good.json.in b/Tests/RunCMake/CMakePresetsWorkflow/Good.json.in new file mode 100644 index 0000000..87e2936 --- /dev/null +++ b/Tests/RunCMake/CMakePresetsWorkflow/Good.json.in @@ -0,0 +1,87 @@ +{ + "version": 6, + "configurePresets": [ + { + "name": "default", + "binaryDir": "${sourceDir}/build", + "generator": "@RunCMake_GENERATOR@" + } + ], + "buildPresets": [ + { + "name": "default", + "configurePreset": "default", + "configuration": "Debug" + } + ], + "testPresets": [ + { + "name": "default", + "configurePreset": "default", + "output": { + "verbosity": "verbose" + }, + "configuration": "Debug" + } + ], + "packagePresets": [ + { + "name": "default", + "configurePreset": "default", + "generators": [ + "External" + ], + "variables": { + "CPACK_EXTERNAL_PACKAGE_SCRIPT": "${sourceDir}/cpack_staging.cmake" + }, + "configurations": ["Debug"] + } + ], + "workflowPresets": [ + { + "name": "Good", + "displayName": "Good Workflow Preset", + "description": "This workflow preset works properly.", + "vendor": {}, + "steps": [ + { + "type": "configure", + "name": "default" + }, + { + "type": "build", + "name": "default" + }, + { + "type": "test", + "name": "default" + }, + { + "type": "package", + "name": "default" + } + ] + }, + { + "name": "BadExitCode", + "steps": [ + { + "type": "configure", + "name": "default" + }, + { + "type": "build", + "name": "default" + }, + { + "type": "test", + "name": "default" + }, + { + "type": "package", + "name": "default" + } + ] + } + ] +} |