MFV r285191: tcpdump 4.7.4.
[freebsd.git] / lib / libthr / tests / Makefile
1 # $FreeBSD$
2
3 OBJTOP=         ${.OBJDIR:H:H:H}
4 SRCTOP=         ${.CURDIR:H:H:H}
5 TESTSRC=        ${SRCTOP}/contrib/netbsd-tests/lib/libpthread
6
7 TESTSDIR=       ${TESTSBASE}/lib/libthr
8
9 # TODO: t_name (missing pthread_getname_np support in FreeBSD)
10 NETBSD_ATF_TESTS_C=     barrier_test
11 NETBSD_ATF_TESTS_C+=    cond_test
12 NETBSD_ATF_TESTS_C+=    condwait_test
13 NETBSD_ATF_TESTS_C+=    detach_test
14 NETBSD_ATF_TESTS_C+=    equal_test
15 NETBSD_ATF_TESTS_C+=    fork_test
16 NETBSD_ATF_TESTS_C+=    fpu_test
17 NETBSD_ATF_TESTS_C+=    join_test
18 NETBSD_ATF_TESTS_C+=    kill_test
19 NETBSD_ATF_TESTS_C+=    mutex_test
20 NETBSD_ATF_TESTS_C+=    once_test
21 NETBSD_ATF_TESTS_C+=    preempt_test
22 NETBSD_ATF_TESTS_C+=    rwlock_test
23 NETBSD_ATF_TESTS_C+=    sem_test
24 NETBSD_ATF_TESTS_C+=    sigmask_test
25 NETBSD_ATF_TESTS_C+=    sigsuspend_test
26 NETBSD_ATF_TESTS_C+=    siglongjmp_test
27 NETBSD_ATF_TESTS_C+=    sleep_test
28 .if ${MACHINE} != "arm64" # ARM64TODO: Missing makecontext
29 NETBSD_ATF_TESTS_C+=    swapcontext_test
30 .endif
31
32 NETBSD_ATF_TESTS_SH=    atexit_test
33 NETBSD_ATF_TESTS_SH+=   cancel_test
34 NETBSD_ATF_TESTS_SH+=   exit_test
35 NETBSD_ATF_TESTS_SH+=   resolv_test
36
37 DPADD+=         ${LIBPTHREAD}
38 LDADD+=         -lpthread
39 DPADD.fpu_test+=        ${LIBM}
40 LDADD.fpu_test+=        -lm
41 DPADD.sem_test+=        ${LIBRT}
42 LDADD.sem_test+=        -lrt
43
44 BINDIR=         ${TESTSDIR}
45
46 PROGS=          h_atexit
47 PROGS+=         h_cancel
48 PROGS+=         h_exit
49 PROGS+=         h_resolv
50
51 FILESDIR=       ${TESTSDIR}
52 FILES=          d_mach
53
54 TESTS_SUBDIRS=          dlopen
55
56 .include <netbsd-tests.test.mk>
57
58 CFLAGS.condwait_test+=  -I${SRCTOP}/contrib/netbsd-tests/lib/libc/gen
59
60 .include <bsd.test.mk>