From 8bfa94753af48dd5232a405b7377c47a152b5475 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 25 Aug 2026 21:51:10 +0200 Subject: build: improve presets --- CMakePresets.json | 77 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file 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 -- cgit v1.2.3