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 ],
# Errors
[ "CMake Error", "red" ],
[ "CMake Warning", "yellow" ],
[ "CMake Warning", "magenta" ],
[ "CMake Deprecation Warning", "magenta" ],
# Scan
[ "^(Scanning dependencies of target)(.*)$",
performing, "normal,bold" ],

View file

@ -2,6 +2,7 @@
def theme(context):
# CTest theme:
passed="green"
notrun="yellow"
notpassed="red"
# If the user do not ask for his own colormap
@ -13,5 +14,6 @@ def theme(context):
return context,[
# 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],
]