1# $OpenBSD: Makefile,v 1.51 2019/05/16 05:24:13 otto Exp $ 2 3# disabled because it requires a buggy behavior that uthread had: 4# dup2_race 5 6# disabled because they relu on non-standard behaviour: 7# blocked_close blocked_dup2 8# blocked_join process_kill 9 10# disabled because it relies on non-standard behaviour and the diff to 11# fix it caused panics: 12# blocked_fifo 13 14SUBDIR+= barrier blocked_shutdown \ 15 cancel cancel2 cancel_wait close close_race closefrom cwd \ 16 dlopen \ 17 earlysig errno execve fork \ 18 group malloc_duel netdb pcap poll preemption preemption_float \ 19 pthread_atfork pthread_cond_timedwait pthread_create \ 20 pthread_join pthread_kill pthread_mutex \ 21 pthread_once pthread_rwlock pthread_rwlock2 pthread_specific \ 22 readdir restart \ 23 select semaphore setjmp sigdeliver siginfo \ 24 siginterrupt signal signals signodefer sigsuspend sigwait sleep \ 25 socket spinlock stack stdarg stdio switch system 26 27.if defined(REGRESS_FULL) || make(clean) || make(cleandir) || make(obj) 28SUBDIR+= setsockopt 29.endif 30 31# Not available or disabled: fcntl, getaddrinfo, pause, pw, sigmask, stdfiles 32 33install: 34 35.PHONY: testall 36testall: 37 rm -f /tmp/thread-{shared,static,debug} 38 make cleandir && make obj && \ 39 REGRESS_LOG=/tmp/thread-shared make 40 (export LDFLAGS="-static ${NOPIE_LDFLAGS}"; make clean && \ 41 REGRESS_LOG=/tmp/thread-static make) 42 (export DEBUG=-g; make clean && \ 43 REGRESS_LOG=/tmp/thread-debug make) 44 @echo "\n\nTest Results:" 45 @(shared=$$(grep FAIL /tmp/thread-shared) || true; \ 46 if [ "$$shared" ]; then \ 47 echo "** SHARED lib failures:"; echo "$$shared"; echo; \ 48 else \ 49 echo "No SHARED lib failures"; \ 50 fi) 51 @(static=$$(grep FAIL /tmp/thread-static) || true; \ 52 if [ "$$static" ]; then \ 53 echo "** STATIC lib failures:"; echo "$$static"; echo; \ 54 else \ 55 echo "No STATIC lib failures"; \ 56 fi) 57 @(debug=$$(grep FAIL /tmp/thread-debug) || true; \ 58 if [ "$$debug" ]; then \ 59 echo "** DEBUG lib failures:"; echo "$$debug"; echo; \ 60 else \ 61 echo "No DEBUG lib failures"; \ 62 fi) 63 64.include <bsd.own.mk> 65.include <bsd.subdir.mk> 66