From 6c43447da4577cfed3ac090ea2ee6777d6c03a5b Mon Sep 17 00:00:00 2001 From: David Leonard Date: Wed, 23 Dec 1998 06:50:22 +0000 Subject: nicer tests --- lib/libc_r/TEST/Makefile | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/lib/libc_r/TEST/Makefile b/lib/libc_r/TEST/Makefile index 89772bed08a..5b47a0121d8 100644 --- a/lib/libc_r/TEST/Makefile +++ b/lib/libc_r/TEST/Makefile @@ -35,19 +35,26 @@ SKIP_TESTS = test_sock_2a all : tests # benchmarks tests : ${TESTS} - @for i in ${.ALLSRC} ; do \ - echo ; echo "*** $$i ***"; \ - case " ${SKIP_TESTS} " in *" $$i "*) \ - echo "-- $$i skipped";; \ + @faillist= ; ulimit -t 600; \ + for i in ${.ALLSRC} ; do \ + case " ${SKIP_TESTS} " in \ + *" $$i "*) \ + : skip ;; \ *) \ - if ${.OBJDIR}/$$i; then \ - echo "-- $$i passed"; \ - else \ - echo "-- $$i FAILED (exit code $$?)"; \ - : exit 1; \ - fi;; \ + echo ; echo "*** $$i ***"; \ + if ${.OBJDIR}/$$i; then \ + echo "-- $$i passed"; \ + else \ + echo "-- $$i FAILED (exit code $$?)"; \ + faillist="$$faillist $$i"; \ + fi;; \ esac; \ - done; exit 0 + done; \ + if test -n "$$faillist"; then \ + echo; echo "*** FAILED TESTS:$$faillist"; exit 1; \ + else \ + exit 0; \ + fi benchmarks: ${BENCHMARKS} -- cgit v1.2.3