diff options
author | David Leonard <d@cvs.openbsd.org> | 1998-12-23 06:50:22 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1998-12-23 06:50:22 +0000 |
commit | 6c43447da4577cfed3ac090ea2ee6777d6c03a5b (patch) | |
tree | 6ad21c233cfdd07ca371ab084ad5bf7fc4de9736 | |
parent | 1333d8c0e4d42164709074d92a2a35c0bdd2c2be (diff) |
nicer tests
-rw-r--r-- | lib/libc_r/TEST/Makefile | 29 |
1 files 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} |