-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakePresets.json
More file actions
143 lines (130 loc) · 4.18 KB
/
CMakePresets.json
File metadata and controls
143 lines (130 loc) · 4.18 KB
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
{
"version": 3,
"cmakeMinimumRequired": { "major": 3, "minor": 24, "patch": 0 },
"configurePresets": [
{
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "release",
"inherits": "base",
"displayName": "Release",
"description": "Optimized build, no sanitizers. Default for running tests.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "debug",
"inherits": "base",
"displayName": "Debug",
"description": "Debug build with -Wall, no optimizations.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "asan",
"inherits": "base",
"displayName": "ASan + UBSan",
"description": "Debug build with AddressSanitizer and UndefinedBehaviorSanitizer compiled in.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"USE_SANITIZER": "ASanUbsan"
}
},
{
"name": "compute-san",
"inherits": "base",
"displayName": "Compute Sanitizer",
"description": "Release build with -lineinfo; ctest wraps every test executable with compute-sanitizer --tool memcheck.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"USE_SANITIZER": "Compute",
"FZGMOD_COMPUTE_SANITIZER_WRAPPER": "ON"
}
}
],
"buildPresets": [
{
"name": "release",
"configurePreset": "release",
"displayName": "Build Release"
},
{
"name": "debug",
"configurePreset": "debug",
"displayName": "Build Debug"
},
{
"name": "asan",
"configurePreset": "asan",
"displayName": "Build ASan + UBSan"
},
{
"name": "compute-san",
"configurePreset": "compute-san",
"displayName": "Build Compute Sanitizer"
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "release",
"displayName": "All tests (Release)",
"description": "Run the full test suite against the Release build.",
"output": { "outputOnFailure": true }
},
{
"name": "stages",
"configurePreset": "release",
"displayName": "Stage unit tests",
"description": "Run only tests labelled 'stages'.",
"output": { "outputOnFailure": true },
"filter": { "include": { "label": "stages" } }
},
{
"name": "pipeline",
"configurePreset": "release",
"displayName": "Pipeline integration tests",
"description": "Run only tests labelled 'pipeline'.",
"output": { "outputOnFailure": true },
"filter": { "include": { "label": "pipeline" } }
},
{
"name": "asan",
"configurePreset": "asan",
"displayName": "All tests (ASan + UBSan)",
"description": "Run the full test suite against the ASan+UBSan build. Requires LD_PRELOAD=$(gcc -print-file-name=libasan.so) and ASAN_OPTIONS=protect_shadow_gap=0:detect_leaks=0 to run correctly with CUDA without false positives.",
"output": { "outputOnFailure": true }
},
{
"name": "compute-san",
"configurePreset": "compute-san",
"displayName": "All tests (Compute Sanitizer)",
"description": "Run the full test suite under 'compute-sanitizer --tool memcheck'. Requires compute-sanitizer on PATH. Each test executable is prefixed via CROSSCOMPILING_EMULATOR.",
"output": { "outputOnFailure": true }
},
{
"name": "compute-san-stages",
"configurePreset": "compute-san",
"displayName": "Stage tests (Compute Sanitizer)",
"description": "Stage unit tests only, under compute-sanitizer memcheck.",
"output": { "outputOnFailure": true },
"filter": { "include": { "label": "stages" } }
},
{
"name": "compute-san-pipeline",
"configurePreset": "compute-san",
"displayName": "Pipeline tests (Compute Sanitizer)",
"description": "Pipeline integration tests only, under compute-sanitizer memcheck.",
"output": { "outputOnFailure": true },
"filter": { "include": { "label": "pipeline" } }
}
]
}