diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2003-01-30 04:36:28 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2003-01-30 04:36:28 +0000 |
commit | 5fd70e10aa1a0acd1689da708b214aa741b0fe7f (patch) | |
tree | d827682f857bd06165580614354caa3bcf38e5a3 | |
parent | 0dfe583a33cbd584479c6b978a64a644d2d3d050 (diff) |
add "testall" target for development testing
-rw-r--r-- | regress/lib/libpthread/Makefile | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/regress/lib/libpthread/Makefile b/regress/lib/libpthread/Makefile index 6165d505244..f4b0e9a9ae0 100644 --- a/regress/lib/libpthread/Makefile +++ b/regress/lib/libpthread/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.15 2003/01/19 21:23:45 marc Exp $ +# $OpenBSD: Makefile,v 1.16 2003/01/30 04:36:27 marc Exp $ SUBDIR= cancel cancel2 close cwd execve fork group malloc_duel netdb pcap poll \ preemption preemption_float pthread_cond_timedwait pthread_create \ @@ -6,8 +6,37 @@ SUBDIR= cancel cancel2 close cwd execve fork group malloc_duel netdb pcap poll \ select setjmp signal sigdeliver siginfo signodefer sigsuspend \ sigwait sleep socket stdarg stdio switch system -# Not available or disabled: fcntl, pause, preemption_float and pw +# Not available or disabled: fcntl, pause, and pw install: +.PHONY: testall +testall: + rm -f /tmp/thread-{shared,static,debug} + make clean && make obj && make depend && \ + REGRESS_LOG=/tmp/thread-shared make + (export COPTS=-static; make clean && make obj && make depend && \ + REGRESS_LOG=/tmp/thread-static make) + (export DEBUG=-g; make clean && make obj && make depend && \ + REGRESS_LOG=/tmp/thread-debug make) + @echo "\n\nTest Results:" + @(shared=$$(grep FAIL /tmp/thread-shared) || true; \ + if [ "$$shared" ]; then \ + echo "** SHARED lib failures:"; echo "$$shared"; echo; \ + else \ + echo "No SHARED lib failures"; \ + fi) + @(static=$$(grep FAIL /tmp/thread-static) || true; \ + if [ "$$static" ]; then \ + echo "** STATIC lib failures:"; echo "$$static"; echo; \ + else \ + echo "No STATIC lib failures"; \ + fi) + @(debug=$$(grep FAIL /tmp/thread-debug) || true; \ + if [ "$$debug" ]; then \ + echo "** DEBUG lib failures:"; echo "$$debug"; echo; \ + else \ + echo "No DEBUG lib failures"; \ + fi) + .include <bsd.subdir.mk> |