summaryrefslogtreecommitdiffstats
path: root/lib/libthr/tests/Makefile
blob: 50f07f07e00829406ae0f3f974d69f0f51de6d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $FreeBSD$

OBJTOP=		${.OBJDIR:H:H:H}
SRCTOP=		${.CURDIR:H:H:H}
TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libpthread

TESTSDIR=	${TESTSBASE}/lib/libthr

# TODO: t_name (missing pthread_getname_np support in FreeBSD)
NETBSD_ATF_TESTS_C=	barrier_test
NETBSD_ATF_TESTS_C+=	cond_test
NETBSD_ATF_TESTS_C+=	condwait_test
NETBSD_ATF_TESTS_C+=	detach_test
NETBSD_ATF_TESTS_C+=	equal_test
NETBSD_ATF_TESTS_C+=	fork_test
NETBSD_ATF_TESTS_C+=	fpu_test
NETBSD_ATF_TESTS_C+=	join_test
NETBSD_ATF_TESTS_C+=	kill_test
NETBSD_ATF_TESTS_C+=	mutex_test
NETBSD_ATF_TESTS_C+=	once_test
NETBSD_ATF_TESTS_C+=	preempt_test
NETBSD_ATF_TESTS_C+=	rwlock_test
NETBSD_ATF_TESTS_C+=	sem_test
NETBSD_ATF_TESTS_C+=	sigmask_test
NETBSD_ATF_TESTS_C+=	sigsuspend_test
NETBSD_ATF_TESTS_C+=	siglongjmp_test
NETBSD_ATF_TESTS_C+=	sleep_test
NETBSD_ATF_TESTS_C+=	swapcontext_test

NETBSD_ATF_TESTS_SH=	atexit_test
NETBSD_ATF_TESTS_SH+=	cancel_test
NETBSD_ATF_TESTS_SH+=	exit_test
NETBSD_ATF_TESTS_SH+=	resolv_test

DPADD+=		${LIBPTHREAD}
LDADD+=		-lpthread
DPADD.fpu_test+=	${LIBM}
LDADD.fpu_test+=	-lm
DPADD.sem_test+=	${LIBRT}
LDADD.sem_test+=	-lrt

BINDIR=		${TESTSDIR}

PROGS=		h_atexit
PROGS+=		h_cancel
PROGS+=		h_exit
PROGS+=		h_resolv

FILESDIR=	${TESTSDIR}
FILES=		d_mach

TESTS_SUBDIRS=		dlopen

.include <netbsd-tests.test.mk>

CFLAGS.condwait_test+=	-I${SRCTOP}/contrib/netbsd-tests/lib/libc/gen

.include <bsd.test.mk>
OpenPOWER on IntegriCloud