5 ATF_TESTS_C+= heapsort_test
6 ATF_TESTS_C+= mergesort_test
7 ATF_TESTS_C+= qsort_test
8 ATF_TESTS_C+= tsearch_test
9 .if ${COMPILER_FEATURES:Mc++11}
10 ATF_TESTS_CXX+= cxa_thread_atexit_test
11 ATF_TESTS_CXX+= cxa_thread_atexit_nothr_test
14 # Not sure why this isn't defined for all architectures, since most
16 .if ${MACHINE_CPUARCH} == "aarch64" || \
17 ${MACHINE_CPUARCH} == "amd64" || \
18 ${MACHINE_CPUARCH} == "i386"
19 CFLAGS+= -D__HAVE_LONG_DOUBLE
22 # TODO: t_getenv_thread, t_mi_vector_hash, t_strtoi
23 NETBSD_ATF_TESTS_C+= abs_test
24 NETBSD_ATF_TESTS_C+= atoi_test
25 NETBSD_ATF_TESTS_C+= div_test
26 NETBSD_ATF_TESTS_C+= getenv_test
27 NETBSD_ATF_TESTS_C+= exit_test
28 NETBSD_ATF_TESTS_C+= hsearch_test
29 NETBSD_ATF_TESTS_C+= posix_memalign_test
30 NETBSD_ATF_TESTS_C+= random_test
31 NETBSD_ATF_TESTS_C+= strtod_test
32 NETBSD_ATF_TESTS_C+= strtol_test
33 NETBSD_ATF_TESTS_C+= system_test
35 # TODO: need to come up with a correct explanation of what the patch pho does
37 #ATF_TESTS_SH= atexit_test
38 NETBSD_ATF_TESTS_SH= getopt_test
40 .include "../Makefile.netbsd-tests"
44 # TODO: see comment above
46 PROGS+= h_getopt h_getopt_long
50 CXXFLAGS.cxa_thread_atexit_test+= -std=c++11
51 CXXFLAGS.cxa_thread_atexit_nothr_test+= -std=c++11
52 LIBADD.cxa_thread_atexit_test+= pthread
54 .for t in h_getopt h_getopt_long
55 CFLAGS.$t+= -I${LIBNETBSD_SRCDIR} -I${SRCTOP}/contrib/netbsd-tests
56 LDFLAGS.$t+= -L${LIBNETBSD_OBJDIR}
58 LIBADD.${t}+= netbsd util
61 LIBADD.strtod_test+= m
63 .include <bsd.test.mk>