diff options
author | David Leonard <d@cvs.openbsd.org> | 1998-09-03 11:04:48 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1998-09-03 11:04:48 +0000 |
commit | 19238dc05c5b501a685537b1fcb0b54f9d8bdf5a (patch) | |
tree | eae5c85762af12da5994ab4524ee73f6d6ba678e /lib/libc_r/TEST/Makefile | |
parent | 542ab5713f06e4f89b3d17d7a1458a4214fa1bb9 (diff) |
libpthread tests modified for uthreads
Diffstat (limited to 'lib/libc_r/TEST/Makefile')
-rw-r--r-- | lib/libc_r/TEST/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/libc_r/TEST/Makefile b/lib/libc_r/TEST/Makefile new file mode 100644 index 00000000000..d03d1c4ec61 --- /dev/null +++ b/lib/libc_r/TEST/Makefile @@ -0,0 +1,47 @@ +# Generated automatically from Makefile.in by configure. +# === GNUmakefile ============================================================ +# Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu +# +# Description: This file is for creating the test programs for libpthread.a +# +# 1.00 93/08/03 proven +# -Initial cut for pthreads. +# + +LIBC_R?= /usr/lib/libc_r.a + +CFLAGS += -pthread +CFLAGS += -ggdb -Wall # -Werror +CFLAGS += -DSRCDIR='"${.CURDIR}"' +LDLIBS += -lm +DPADD += ${LIBC_R} + +# This list used to include test_select, but that test doesn't terminate. +TESTS = test_create test_pthread_join test_switch test_sleep test_readdir \ + test_fork test_execve test_preemption test_preemption_float \ + test_sock_1 test_sock_2 test_stdio_1 test_pthread_mutex \ + test_pthread_cond_timedwait test_netdb test_pw test_cwd + +# This list used to include p_bench_semaphore, but the semaphore support isn't +# defined for all targets (or used for any). +BENCHMARKS = p_bench_read p_bench_mutex p_bench_yield \ + p_bench_getpid p_bench_pthread_create + +CLEANFILES += ${TESTS} ${BENCHMARKS} + +all : tests # benchmarks + +tests : ${TESTS} + @for i in ${.ALLSRC} ; do \ + echo ; echo "*** $$i ***"; \ + if ${.OBJDIR}/$$i; then \ + echo "-- $$i passed"; \ + else \ + echo "-- $$i FAILED (exit code $$?)"; \ + exit 1; \ + fi; \ + done; exit 0 + +benchmarks: ${BENCHMARKS} + +.include <bsd.prog.mk> |