* test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data, compile--test-error-line) (compile-test-functions): Check the types (error, warning or info) for most patterns. Use names instead of numbers in the reference.