Skip to content

WIP: Assert failure tests output with RegEx

Nick Schrader requested to merge nschrader/vala:wip/issue/1078 into wip/meson

Suggestion for #1078 using Meson. I added a new failure test harness that could either replace the existing Invalid Code-and-.test-file one, or coexist with it.

Instead of a list of source files in meson.build, the new harness requires to declare a dict of source files and RegEx'es to assert the compiler output. Existing failure tests can simply be migrated by renaming the .test-file to a .vala-file, removing the Invalid Code line and using the .* RegEx (or a more sophisticated one of course).

Merge request reports