feat(cmake): improve cmake and ctest themes

This commit is contained in:
Johann Dreo 2023-01-20 09:24:14 +01:00
commit 4ca6429485
2 changed files with 5 additions and 2 deletions

View file

@ -26,7 +26,8 @@ def theme(context):
[ "^--.*", performing ], [ "^--.*", performing ],
# Errors # Errors
[ "CMake Error", "red" ], [ "CMake Error", "red" ],
[ "CMake Warning", "yellow" ], [ "CMake Warning", "magenta" ],
[ "CMake Deprecation Warning", "magenta" ],
# Scan # Scan
[ "^(Scanning dependencies of target)(.*)$", [ "^(Scanning dependencies of target)(.*)$",
performing, "normal,bold" ], performing, "normal,bold" ],

View file

@ -2,6 +2,7 @@
def theme(context): def theme(context):
# CTest theme: # CTest theme:
passed="green" passed="green"
notrun="yellow"
notpassed="red" notpassed="red"
# If the user do not ask for his own colormap # If the user do not ask for his own colormap
@ -13,5 +14,6 @@ def theme(context):
return context,[ return context,[
# Passed # Passed
[ "^\s*[0-9]+/[0-9]+ Test\s+#[0-9]+: (.*)\s+\.+\s+(Passed)", "blue,"+passed], [ "^\s*[0-9]+/[0-9]+ Test\s+#[0-9]+: (.*)\s+\.+\s+(Passed)", "blue,"+passed],
[ "^\s*[0-9]+/[0-9]+ Test\s+#[0-9]+: (.*)\s+\.+(\*{3}.*)\s+.*", "blue,"+notpassed] [ "^\s*[0-9]+/[0-9]+ Test\s+#[0-9]+: (.*)\s+\.+(\*{3}Not Run.*)\s+.*", "blue,"+notrun],
[ "^\s*[0-9]+/[0-9]+ Test\s+#[0-9]+: (.*)\s+\.+(.*\*{3}.*)\s+.*", "blue,"+notpassed],
] ]