aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-08-25 21:51:10 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-08-25 21:51:10 +0200
commit8bfa94753af48dd5232a405b7377c47a152b5475 (patch)
tree1ed1b69e721d3b59f584144f094b873fa88fdc3d
parent67ece9d9f34fea995753e4729ebf98ffe250f8b0 (diff)
downloadkernel-8bfa94753af48dd5232a405b7377c47a152b5475.tar.xz
kernel-8bfa94753af48dd5232a405b7377c47a152b5475.zip
build: improve presets
-rw-r--r--CMakePresets.json77
1 files changed, 69 insertions, 8 deletions
diff --git a/CMakePresets.json b/CMakePresets.json
index dd85260c..2c723a13 100644
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -14,7 +14,8 @@
},
{
"name": "x86_64",
- "description": "Target x86-64",
+ "displayName": "x86-64 kernel image",
+ "description": "Bootable image for x86-64 systems",
"inherits": "base",
"toolchainFile": "cmake/Platforms/x86_64.cmake",
"cacheVariables": {
@@ -23,13 +24,19 @@
},
{
"name": "bht",
+ "displayName": "Build-host Testing",
"inherits": "base",
- "description": "Build-host Testing"
+ "description": "Unit and integration tests w/ UB Sanitizer, Memory Sanitizer, and Leak Sanitizer",
+ "cacheVariables": {
+ "TEACHOS_ENABLE_TEST_SANITIZERS": true,
+ "TEACHOS_ENABLE_TEST_COVERAGE": true,
+ "TEACHOS_ENABLE_TEST_TSAN": false
+ }
},
{
- "name": "bht-tsan",
+ "name": "bht-stress",
"inherits": "bht",
- "description": "Build-host Testing with ThreadSanitizer",
+ "description": "Stress tests w/ Thread Sanitizer",
"cacheVariables": {
"TEACHOS_ENABLE_TEST_SANITIZERS": false,
"TEACHOS_ENABLE_TEST_COVERAGE": false,
@@ -40,29 +47,40 @@
"buildPresets": [
{
"name": "x86_64-dbg",
+ "displayName": "x86-64 kernel image (Debug)",
+ "description": "Bootable debug image for x86-64 systems",
"configurePreset": "x86_64",
"configuration": "Debug"
},
{
"name": "x86_64-rel",
+ "displayName": "x86-64 kernel image (Release)",
+ "description": "Bootable release image for x86-64 systems",
"configurePreset": "x86_64",
"configuration": "MinSizeRel"
},
{
"name": "bht-dbg",
+ "displayName": "Build-host tests (Debug)",
+ "description": "Unit and integration tests",
"configurePreset": "bht",
"configuration": "Debug"
},
{
- "name": "bht-tsan-dbg",
- "configurePreset": "bht-tsan",
+ "name": "bht-stress-dbg",
+ "displayName": "Build-host stress tests (Debug)",
+ "description": "Stress tests",
+ "configurePreset": "bht-stress",
"configuration": "Debug"
}
],
"testPresets": [
{
"name": "bht-dbg",
+ "displayName": "Build-host tests (Debug)",
+ "description": "Unit and integration tests",
"configurePreset": "bht",
+ "configuration": "Debug",
"output": {
"outputOnFailure": true
},
@@ -71,8 +89,11 @@
}
},
{
- "name": "bht-tsan-dbg",
- "configurePreset": "bht-tsan",
+ "name": "bht-stress-dbg",
+ "displayName": "Build-host stress tests (Debug)",
+ "description": "Stress tests",
+ "configurePreset": "bht-stress",
+ "configuration": "Debug",
"output": {
"outputOnFailure": true
},
@@ -80,5 +101,45 @@
"jobs": 0
}
}
+ ],
+ "workflowPresets": [
+ {
+ "name": "x86_64-dbg",
+ "displayName": "x86-64 kernel (Debug)",
+ "description": "TeachOS on x86-64",
+ "steps": [
+ { "type": "configure", "name": "x86_64" },
+ { "type": "build", "name": "x86_64-dbg" }
+ ]
+ },
+ {
+ "name": "x86_64-rel",
+ "displayName": "x86-64 kernel (Release)",
+ "description": "TeachOS on x86-64",
+ "steps": [
+ { "type": "configure", "name": "x86_64" },
+ { "type": "build", "name": "x86_64-rel" }
+ ]
+ },
+ {
+ "name": "bht-dbg",
+ "displayName": "Build-host tests (Debug)",
+ "description": "Unit and integration tests",
+ "steps": [
+ { "type": "configure", "name": "bht" },
+ { "type": "build", "name": "bht-dbg" },
+ { "type": "test", "name": "bht-dbg" }
+ ]
+ },
+ {
+ "name": "bht-stress-dbg",
+ "displayName": "Build-host stress tests (Debug)",
+ "description": "Stress tests",
+ "steps": [
+ { "type": "configure", "name": "bht-stress" },
+ { "type": "build", "name": "bht-stress-dbg" },
+ { "type": "test", "name": "bht-stress-dbg" }
+ ]
+ }
]
} \ No newline at end of file