diff options
author | 1998-12-23 06:50:21 +0000 | |
---|---|---|
committer | 1998-12-23 06:50:21 +0000 | |
commit | c8be383174b1660ca467e28ae4c75aa4c8bbebe7 (patch) | |
tree | 86631e7d0b98b79bda54e2274f006cb32d250df9 /lib | |
parent | a better fix; deraadt@ (diff) | |
download | wireguard-openbsd-c8be383174b1660ca467e28ae4c75aa4c8bbebe7.tar.xz wireguard-openbsd-c8be383174b1660ca467e28ae4c75aa4c8bbebe7.zip |
nicer tests
Diffstat (limited to 'lib')
-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} |