+# Give detailed report +awk_program=$(cat <<'EOF' +BEGIN { + FS = ":" +} + +/: Compiling \S+ shaders with \S+ and executing with \S+/ { + n = split($3, arr, " ") + str = "(" arr[2] ")"arr[n] + printf("# ^[[0;2m%-20s ^[[m\n", str) +} + +/: Test failed:/ { + print $4 "^[[1;31m[F]^[[m" +} + +/: Todo:/ { + print $4 "^[[2;32m[XF]^[[m" +} + +/: Todo succeeded:/ { + print $4 "^[[1;31m[XF]^[[m" +} + +/: Assertion .* failed\./ { + print "^[[1;31m[AF]^[[m" $0 +} + +END { + printf("#") +} + +EOF +)
It seems somewhat unfortunate to always output colour; ideally we'd use $red, $green, and so on. The distinction between "Todo" and "Todo succeeded" seems a bit too subtle.