From 522b123c778dd8ce1485e62b38001ddefca4cd7c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 09 Sep 2012 20:55:45 -0400 Subject: Highlight test results banner. --- diff --git a/tests/Makefile.in b/tests/Makefile.in index 71c077d..c3040ff 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -39,5 +39,16 @@ test: fi; \ all=$$(($$all + 1)); \ done; \ - printf '%d out of %d tests failed\n' $${failed} $${all}; \ + banner="$$(printf '%d out of %d tests failed' $${failed} $${all})"; \ + l=$$(echo "$${banner}" | wc -c); \ + i=1; while [ "$${i}" -lt "$${l}" ]; do \ + printf '='; \ + i=$$(($$i + 1)); \ + done; \ + printf '\n%s\n' "$${banner}"; \ + i=1; while [ $${i} -lt $${l} ]; do \ + printf '='; \ + i=$$(($$i + 1)); \ + done; \ + printf '\n'; \ exit $${failed} -- cgit v0.9.1