1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5TESTSDIR= ${TESTSBASE}/lib/libc/stdlib 6 7# TODO: t_getenv_thread, t_mi_vector_hash 8NETBSD_ATF_TESTS_C= abs_test 9NETBSD_ATF_TESTS_C+= atoi_test 10NETBSD_ATF_TESTS_C+= div_test 11NETBSD_ATF_TESTS_C+= getenv_test 12NETBSD_ATF_TESTS_C+= exit_test 13NETBSD_ATF_TESTS_C+= hsearch_test 14NETBSD_ATF_TESTS_C+= posix_memalign_test 15NETBSD_ATF_TESTS_C+= random_test 16NETBSD_ATF_TESTS_C+= strtod_test 17NETBSD_ATF_TESTS_C+= strtol_test 18NETBSD_ATF_TESTS_C+= system_test 19 20# TODO: need to come up with a correct explanation of what the patch pho does 21# with h_atexit 22#ATF_TESTS_SH= atexit_test 23NETBSD_ATF_TESTS_SH= getopt_test 24 25.include "../Makefile.netbsd-tests" 26 27BINDIR= ${TESTSDIR} 28 29# TODO: see comment above 30#PROGS+= h_atexit 31PROGS+= h_getopt h_getopt_long 32 33.for t in h_getopt h_getopt_long 34CFLAGS.$t+= -I${LIBNETBSD_SRCDIR} -I${SRCTOP}/contrib/netbsd-tests 35LDFLAGS.$t+= -L${LIBNETBSD_OBJDIR} 36 37DPADD.$t+= ${LIBNETBSD} ${LIBUTIL} 38LDADD.$t+= -lnetbsd -lutil 39.endfor 40 41DPADD.strtod_test+= ${LIBM} 42LDADD.strtod_test+= -lm 43 44.include <bsd.test.mk> 45