3 .if !target(__netbsd_tests.test.mk__)
4 __netbsd_tests.test.mk__:
7 .error "Please define OBJTOP to the absolute path of the top of the object tree"
11 .error "Please define SRCTOP to the absolute path of the top of the source tree"
15 .error "Please define TESTSRC to the absolute path of the test sources, e.g. contrib/netbsd-tests/lib/libc/stdio"
20 LIBNETBSD_SRCDIR= ${SRCTOP}/lib/libnetbsd
21 LIBNETBSD_OBJDIR= ${OBJTOP}/lib/libnetbsd
23 .for t in ${NETBSD_ATF_TESTS_C}
24 CFLAGS.$t+= -I${LIBNETBSD_SRCDIR} -I${SRCTOP}/contrib/netbsd-tests
25 LDFLAGS.$t+= -L${LIBNETBSD_OBJDIR}
27 DPADD.$t+= ${LIBNETBSD}
30 SRCS.$t?= ${t:C/^/t_/:C/_test$//g}.c
33 ATF_TESTS_C+= ${NETBSD_ATF_TESTS_C}
35 # A C++ analog isn't provided because there aren't any C++ testcases in
36 # contrib/netbsd-tests
38 .for t in ${NETBSD_ATF_TESTS_SH}
39 ATF_TESTS_SH_SRC_$t?= ${t:C/^/t_/:C/_test$//g}.sh
42 ATF_TESTS_SH+= ${NETBSD_ATF_TESTS_SH}