summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresets/CommentValidFull.json.in
blob: 40bab97c92f258adf2f4e57cdeba59b6dd010d49 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
  "$comment": [
    "example comment",
    "with an array of strings"
  ],
  "version": 10,
  "cmakeMinimumRequired": {
    "$comment": "We can add comments in version"
  },
  "configurePresets": [
    {
      "name": "CommentValidFull",
      "$comment": "example comment",
      "generator": "@RunCMake_GENERATOR@",
      "binaryDir": "${sourceDir}/build",
      "architecture": {
        "$comment": "We can add comments in architecture",
        "value": "v143",
        "strategy": "external"
      },
      "toolset": {
        "$comment": "We can add comments in toolset",
        "value": "x64",
        "strategy": "external"
      },
      "cacheVariables": {
        "SOME_VARIABLE": {
          "$comment": "We can add comments in every cacheVariable, that we created",
          "value": "SOME_VALUE"
        }
      },
      "warnings": {
        "$comment": "We can add comments in warnings",
        "dev": false
      },
      "errors": {
        "$comment": "We can add comments in errors",
        "dev": false
      },
      "debug": {
        "$comment": "We can add comments in debug",
        "find": false
      },
      "trace": {
        "$comment": "We can add comments in trace",
        "mode": "off"
      }
    }
  ],
  "buildPresets": [
    {
      "$comment": "example comment",
      "name": "default",
      "condition": {
        "$comment": "We can add comments in condition",
        "type": "const",
        "value": false
      },
      "configurePreset": "CommentValidFull"
    }
  ],
  "testPresets": [
    {
      "name": "default",
      "configurePreset": "CommentValidFull",
      "filter": {
        "$comment": "We can add comments in filter",
        "include": {
          "$comment": ["example comment", "with an array of strings", "inside include"],
          "index": {
            "$comment": ["example comment", "with an array of strings"],
            "start": 0
          }
        },
        "exclude": {
          "$comment": ["example comment", "with an array of strings", "inside exclude"],
          "fixtures": {
            "$comment": ["example comment", "with an array of strings"],
            "any": ".*full.*"
          }
        }
      },
      "execution": {
        "$comment": ["example comment", "with an array of strings"],
        "repeat": {
          "$comment": "Some comments here",
          "mode": "until-fail",
          "count": 1
        }
      },
      "condition": {
        "$comment": "We can add comments in equal & non-equal conditions",
        "type": "equals",
        "lhs": "test1",
        "rhs": "test2"
      },
      "$comment": ["example comment", "with an array of strings"]
    }
  ],
  "packagePresets": [
    {
      "name": "CommentValidFull",
      "$comment": ["example comment", "with an array of strings"],
      "configurePreset": "CommentValidFull",
      "condition": {
        "$comment": "We can add comments in list check conditions",
        "type": "notInList",
        "list": [
          "test1",
          "test2"
        ],
        "string": "test1"
      },
      "output": {
        "$comment": "Hello, World!",
        "debug": false
      }
    },
    {
      "name": "CommentValidFull1",
      "configurePreset": "CommentValidFull",
      "condition": {
        "$comment": "We can add comments in aggregation conditions",
        "type": "allOf",
        "conditions": [
          {
            "$comment": "We can add comments in regex match conditions",
            "type": "matches",
            "regex": ".*tests.*",
            "string": "test1"
          },
          {
            "type": "matches",
            "regex": ".*tests.*",
            "string": "test2"
          },
          {
            "type": "not",
            "$comment": "We can add comments in not conditions",
            "condition": {
              "type": "matches",
              "regex": ".*tests.*",
              "string": "test3"
            }
          }
        ]
      },
      "output": {
        "$comment": "Hello, World 123!",
        "verbose": false
      }
    }
  ],
  "workflowPresets": [
    {
      "name": "CommentValidFull",
      "$comment": ["example comment", "with an array of strings"],
      "steps": [
        {
          "type": "configure",
          "name": "CommentValidFull"
        },
        {
          "type": "build",
          "name": "default"
        },
        {
          "$comment": "We must test it before we can package it",
          "type": "test",
          "name": "default"
        },
        {
          "type": "package",
          "name": "CommentValidFull"
        }
      ]
    }
  ]
}