xref: /freebsd/lib/libthr/tests/Makefile (revision fb2ab7ce52d3f1e9d0998f3e5c12c3468ce4563a)
1
2PACKAGE=	tests
3
4WARNS?=		3
5
6TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libpthread
7
8# TODO: t_name (missing pthread_getname_np support in FreeBSD)
9NETBSD_ATF_TESTS_C=	barrier_test
10NETBSD_ATF_TESTS_C+=	cond_test
11NETBSD_ATF_TESTS_C+=	condwait_test
12NETBSD_ATF_TESTS_C+=	detach_test
13NETBSD_ATF_TESTS_C+=	equal_test
14NETBSD_ATF_TESTS_C+=	fork_test
15NETBSD_ATF_TESTS_C+=	fpu_test
16NETBSD_ATF_TESTS_C+=	join_test
17NETBSD_ATF_TESTS_C+=	kill_test
18NETBSD_ATF_TESTS_C+=	mutex_test
19NETBSD_ATF_TESTS_C+=	once_test
20NETBSD_ATF_TESTS_C+=	preempt_test
21NETBSD_ATF_TESTS_C+=	rwlock_test
22NETBSD_ATF_TESTS_C+=	sem_test
23NETBSD_ATF_TESTS_C+=	sigmask_test
24NETBSD_ATF_TESTS_C+=	sigsuspend_test
25NETBSD_ATF_TESTS_C+=	siglongjmp_test
26NETBSD_ATF_TESTS_C+=	sleep_test
27.if ${MACHINE_CPUARCH} != "aarch64" # ARM64TODO: Missing makecontext
28NETBSD_ATF_TESTS_C+=	swapcontext_test
29.endif
30NETBSD_ATF_TESTS_C+=	timedmutex_test
31
32NETBSD_ATF_TESTS_SH=	atexit_test
33NETBSD_ATF_TESTS_SH+=	cancel_test
34NETBSD_ATF_TESTS_SH+=	exit_test
35NETBSD_ATF_TESTS_SH+=	resolv_test
36
37ATF_TESTS_C+=		umtx_op_test
38ATF_TESTS_C+=		pthread_sigqueue_test
39
40LIBADD+=		pthread
41LIBADD.fpu_test+=	m
42LIBADD.sem_test+=	rt
43
44BINDIR=		${TESTSDIR}
45
46PROGS=		h_atexit
47PROGS+=		h_cancel
48PROGS+=		h_exit
49PROGS+=		h_resolv
50
51${PACKAGE}FILES+=		d_mach
52
53TESTS_SUBDIRS=		dlopen
54
55.include <netbsd-tests.test.mk>
56
57CFLAGS.condwait_test+=	-I${SRCTOP}/contrib/netbsd-tests/lib/libc/gen
58
59.include <bsd.test.mk>
60