[PATCH] Format test results closer to what DejaGnu does

Florian Weimer fweimer@redhat.com
Mon Jun 5 13:35:35 GMT 2023


* Maxim Kuvyrkov via Libc-alpha:

> +# Print test summary for tests in $1 .sum file;
> +# $2 is optional test identifier.
> +# Fail if there are unexpected failures in the test results.
>  define summarize-tests
> +@echo "		=== glibc failures ==="
> +@grep -E '^[A-Z]+:' $(objpfx)$1 | grep -E -v '^(PASS|XFAIL):' || true
> +@echo "		=== Summary of results$2 ==="
> +@sed -e '/:.*/!d' -e 's/:.*//' < $(objpfx)$1 | sort | uniq -c
> +@! grep -E '^[A-Z]+:' $(objpfx)$1 | grep -E -q -v '^(X?PASS|XFAIL|UNSUPPORTED):'
>  endef

Doesn't this print “=== glibc failures ===” unconditionally even if
there are no failures?  Is this really what DejaGnu does?

Thanks,
Florian



More information about the Libc-alpha mailing list