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+= set_constraint_handler_s_test 9ATF_TESTS_C+= tsearch_test 10.if ${COMPILER_FEATURES:Mc++11} 11ATF_TESTS_CXX+= cxa_thread_atexit_test 12ATF_TESTS_CXX+= cxa_thread_atexit_nothr_test 13.endif 14 15# Not sure why this isn't defined for all architectures, since most 16# have long double. 17.if ${MACHINE_CPUARCH} == "aarch64" || \ 18 ${MACHINE_CPUARCH} == "amd64" || \ 19 ${MACHINE_CPUARCH} == "i386" 20CFLAGS+= -D__HAVE_LONG_DOUBLE 21.endif 22 23# TODO: t_getenv_thread, t_mi_vector_hash, t_strtoi 24NETBSD_ATF_TESTS_C+= abs_test 25NETBSD_ATF_TESTS_C+= atoi_test 26NETBSD_ATF_TESTS_C+= div_test 27NETBSD_ATF_TESTS_C+= getenv_test 28NETBSD_ATF_TESTS_C+= exit_test 29NETBSD_ATF_TESTS_C+= hsearch_test 30NETBSD_ATF_TESTS_C+= posix_memalign_test 31NETBSD_ATF_TESTS_C+= random_test 32NETBSD_ATF_TESTS_C+= strtod_test 33NETBSD_ATF_TESTS_C+= strtol_test 34NETBSD_ATF_TESTS_C+= system_test 35 36# TODO: need to come up with a correct explanation of what the patch pho does 37# with h_atexit 38#ATF_TESTS_SH= atexit_test 39NETBSD_ATF_TESTS_SH= getopt_test 40 41.include "../Makefile.netbsd-tests" 42 43BINDIR= ${TESTSDIR} 44 45# TODO: see comment above 46#PROGS+= h_atexit 47PROGS+= h_getopt h_getopt_long 48 49CFLAGS+= -I${.CURDIR} 50 51CXXFLAGS.cxa_thread_atexit_test+= -std=c++11 52CXXFLAGS.cxa_thread_atexit_nothr_test+= -std=c++11 53LIBADD.cxa_thread_atexit_test+= pthread 54 55.for t in h_getopt h_getopt_long 56CFLAGS.$t+= -I${LIBNETBSD_SRCDIR} -I${SRCTOP}/contrib/netbsd-tests 57LDFLAGS.$t+= -L${LIBNETBSD_OBJDIR} 58 59LIBADD.${t}+= netbsd util 60.endfor 61 62LIBADD.strtod_test+= m 63 64.include <bsd.test.mk> 65