1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5ATF_TESTS_C+= clearenv_test 6ATF_TESTS_C+= dynthr_test 7ATF_TESTS_C+= heapsort_test 8ATF_TESTS_C+= mergesort_test 9ATF_TESTS_C+= qsort_test 10ATF_TESTS_C+= qsort_b_test 11ATF_TESTS_C+= qsort_r_test 12ATF_TESTS_C+= qsort_s_test 13ATF_TESTS_C+= set_constraint_handler_s_test 14ATF_TESTS_C+= strfmon_test 15ATF_TESTS_C+= tsearch_test 16ATF_TESTS_CXX+= cxa_thread_atexit_test 17ATF_TESTS_CXX+= cxa_thread_atexit_nothr_test 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# Tests that requires Blocks feature 64.for t in qsort_b_test 65CFLAGS.${t}.c+= -fblocks 66LIBADD.${t}+= BlocksRuntime 67.endfor 68 69.for t in h_getopt h_getopt_long 70CFLAGS.$t+= -I${LIBNETBSD_SRCDIR} -I${SRCTOP}/contrib/netbsd-tests 71LDFLAGS.$t+= -L${LIBNETBSD_OBJDIR} 72 73LIBADD.${t}+= netbsd util 74.endfor 75 76LIBADD.strtod_test+= m 77 78SUBDIR+= dynthr_mod 79 80.include <bsd.test.mk> 81