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