On 10/30/26 09:52, Philippe Mathieu-Daudé wrote:
Add a small header to report test results using the Test Anything Protocol, which meson parses when the test declares the 'tap' protocol:- TAP_START() prints the TAP version line. - tap_report() prints one numbered "ok" / "not ok" line, with a printf-style description. - TAP_CHECK() reports a condition, using its text as description. - tap_assert() is a non-fatal assert: it prints a '# FAIL' TAP diagnostic and counts the failure in tap_assert_failures, for tests grouping several asserts into a single reported result. - tap_done() prints the plan and returns the exit status for main(). The counters are static, so each test must be a single translation unit. Signed-off-by: Philippe Mathieu-Daudé<[email protected]> --- MAINTAINERS | 1 + tests/tcg/include/tap.h | 60 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 tests/tcg/include/tap.h
Reviewed-by: Richard Henderson <[email protected]> r~
