Skip to content

Commit 03ab358

Browse files
remove some code duplication
1 parent 7ef0146 commit 03ab358

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

tests/CMakePresets.json

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@
1010
],
1111
"configurePresets": [
1212
{
13-
"name": "coverage",
14-
"inherits": "debug",
15-
"displayName": "Coverage",
13+
"name": "linux",
14+
"hidden": true,
1615
"description": "This is only available on Linux",
1716
"condition": {
1817
"type": "equals",
1918
"lhs": "${hostSystemName}",
2019
"rhs": "Linux"
21-
},
20+
}
21+
},
22+
{
23+
"name": "coverage",
24+
"inherits": ["debug", "linux"],
25+
"displayName": "Coverage",
26+
"description": "This is only available on Linux",
2227
"cacheVariables": {
2328
"JWT_BUILD_TESTS": "ON",
2429
"JWT_ENABLE_COVERAGE": "ON"
2530
}
2631
},
2732
{
2833
"name": "ci-fuzzing",
29-
"inherits": "debug",
34+
"inherits": ["debug", "linux"],
3035
"displayName": "Fuzz Testing",
3136
"description": "This is only available on Linux with Clang",
32-
"condition": {
33-
"type": "equals",
34-
"lhs": "${hostSystemName}",
35-
"rhs": "Linux"
36-
},
3737
"cacheVariables": {
3838
"JWT_ENABLE_FUZZING": "ON",
3939
"CMAKE_C_COMPILER": "clang",
@@ -42,14 +42,9 @@
4242
},
4343
{
4444
"name": "ci-asan",
45-
"inherits": "debug",
45+
"inherits": ["debug", "linux"],
4646
"displayName": "Address/Leak Sanitizer",
4747
"description": "This is only available on Linux",
48-
"condition": {
49-
"type": "equals",
50-
"lhs": "${hostSystemName}",
51-
"rhs": "Linux"
52-
},
5348
"environment": {
5449
"ASAN_FLAGS": "-fsanitize=address -fsanitize=leak",
5550
"ASAN_OPTIONS": "check_initialization_order=true:detect_stack_use_after_return=true:fast_unwind_on_malloc=0"
@@ -65,14 +60,9 @@
6560
},
6661
{
6762
"name": "ci-ubsan",
68-
"inherits": "debug",
63+
"inherits": ["debug", "linux"],
6964
"displayName": "Undefined Behavior Sanitizer",
7065
"description": "This is only available on Linux",
71-
"condition": {
72-
"type": "equals",
73-
"lhs": "${hostSystemName}",
74-
"rhs": "Linux"
75-
},
7666
"environment": {
7767
"UBSAN_FLAGS": "-fsanitize=undefined -fsanitize=return -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize-recover=all",
7868
"UBSAN_OPTIONS": "print_stacktrace=1"

0 commit comments

Comments
 (0)