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