1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5ATF_TESTS_C+= heapsort_test 6ATF_TESTS_C+= mergesort_test 7ATF_TESTS_C+= qsort_test 8ATF_TESTS_C+= tsearch_test 9.if ${COMPILER_FEATURES:Mc++11} 10ATF_TESTS_CXX+= cxa_thread_atexit_test 11ATF_TESTS_CXX+= cxa_thread_atexit_nothr_test 12.endif 13 14# TODO: t_getenv_thread, t_mi_vector_hash, t_strtoi 15NETBSD_ATF_TESTS_C+= abs_test 16NETBSD_ATF_TESTS_C+= atoi_test 17NETBSD_ATF_TESTS_C+= div_test 18NETBSD_ATF_TESTS_C+= getenv_test 19NETBSD_ATF_TESTS_C+= exit_test 20NETBSD_ATF_TESTS_C+= hsearch_test 21NETBSD_ATF_TESTS_C+= posix_memalign_test 22NETBSD_ATF_TESTS_C+= random_test 23NETBSD_ATF_TESTS_C+= strtod_test 24NETBSD_ATF_TESTS_C+= strtol_test 25NETBSD_ATF_TESTS_C+= system_test 26 27# TODO: need to come up with a correct explanation of what the patch pho does 28# with h_atexit 29#ATF_TESTS_SH= atexit_test 30NETBSD_ATF_TESTS_SH= getopt_test 31 32.include "../Makefile.netbsd-tests" 33 34BINDIR= ${TESTSDIR} 35 36# TODO: see comment above 37#PROGS+= h_atexit 38PROGS+= h_getopt h_getopt_long 39 40CFLAGS+= -I${.CURDIR} 41 42CXXFLAGS.cxa_thread_atexit_test+= -std=c++11 43CXXFLAGS.cxa_thread_atexit_nothr_test+= -std=c++11 44LIBADD.cxa_thread_atexit_test+= pthread 45 46.for t in h_getopt h_getopt_long 47CFLAGS.$t+= -I${LIBNETBSD_SRCDIR} -I${SRCTOP}/contrib/netbsd-tests 48LDFLAGS.$t+= -L${LIBNETBSD_OBJDIR} 49 50LIBADD.${t}+= netbsd util 51.endfor 52 53LIBADD.strtod_test+= m 54 55.include <bsd.test.mk> 56