Files
lix/tests/functional2/meson-tap-wrap.sh
T
eldritch horrors 46f99487de testing: use TAP for when running f2 from meson
this requires some hacks to make error reports visible, but hey. it's
better than no progress reports at all, and successful runs no longer
spew huge amounts of useless log output onto the developer's terminal

Change-Id: I9e4766b2f825a4ec451e117eb4609db65f328785
2026-02-21 16:36:44 +00:00

28 lines
790 B
Bash

set -euo pipefail
# our tap plugin can't print a version header because that'd end up duplicated on stdout
printf "TAP version 13\n"
$@ | while read line; do
case "$line" in
"TAP version"* | "1.."* | "ok "* | "not ok "*" # TODO expected failure")
printf "%s\n" "$line"
;;
"not ok "*)
printf "%s\n" "$line"
printf "\n\e[1;31m%s\e[0m\n" "$line" >&2
;;
# " " is yaml test info, we should probably pass that through even though we don't advertise it
"# "* | " "*)
printf "%s\n" "$line" >&2
;;
*)
# probably xdist garbage -sigh- keep it to at least make this obvious on inspection
printf "%s\n" "$line" >&2
;;
esac
done