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