mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-30 12:04:07 +00:00
3eee258dfb
lib/libthr/tests A variant of this code has been tested on amd64/i386 for some time by EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the code will remain off until it's proven it works on virtual hardware or real hardware on other architectures Original work by: pho Sponsored by: EMC / Isilon Storage Division
31 lines
650 B
Makefile
31 lines
650 B
Makefile
# $FreeBSD$
|
|
|
|
OBJTOP= ${.OBJDIR:H:H:H:H}
|
|
SRCTOP= ${.CURDIR:H:H:H:H}
|
|
TESTSRC= ${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
TESTSDIR= ${TESTSBASE}/lib/libthr/dlopen
|
|
|
|
CFLAGS+= -DTESTDIR=\"${TESTSDIR:Q}/\"
|
|
LDFLAGS+= -L${.OBJDIR}/dso -Wl,-rpath=${TESTDIR}
|
|
|
|
.if !defined(NO_PIC)
|
|
SUBDIR+= dso
|
|
|
|
NETBSD_ATF_TESTS_C= dlopen_test
|
|
NETBSD_ATF_TESTS_C+= main_pthread_create_test
|
|
# XXX: this blocks running the testcase
|
|
#NETBSD_ATF_TESTS_C+= dso_pthread_create_test
|
|
|
|
.for t in dlopen_test main_pthread_create_test
|
|
DPADD.$t+= ${LIBPTHREAD}
|
|
LDADD.$t+= -lpthread
|
|
.endfor
|
|
.endif
|
|
|
|
.include <netbsd-tests.test.mk>
|
|
|
|
.include <bsd.test.mk>
|