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