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