xref: /freebsd-12.1/lib/libc/tests/stdlib/Makefile (revision f5e04876)
12f121787SEnji Cooper# $FreeBSD$
22f121787SEnji Cooper
3b585cd3eSKonstantin Belousov.include <src.opts.mk>
4b585cd3eSKonstantin Belousov
5280046b9SKyle EvansATF_TESTS_C+=		dynthr_test
698682851SEnji CooperATF_TESTS_C+=		heapsort_test
798682851SEnji CooperATF_TESTS_C+=		mergesort_test
898682851SEnji CooperATF_TESTS_C+=		qsort_test
99851b340SKonstantin BelousovATF_TESTS_C+=		set_constraint_handler_s_test
10459d04a5SEd SchoutenATF_TESTS_C+=		tsearch_test
11b585cd3eSKonstantin Belousov.if ${COMPILER_FEATURES:Mc++11}
12b585cd3eSKonstantin BelousovATF_TESTS_CXX+=		cxa_thread_atexit_test
13b585cd3eSKonstantin BelousovATF_TESTS_CXX+=		cxa_thread_atexit_nothr_test
14b585cd3eSKonstantin Belousov.endif
152f121787SEnji Cooper
169527fa4fSEnji Cooper# Not sure why this isn't defined for all architectures, since most
179527fa4fSEnji Cooper# have long double.
189527fa4fSEnji Cooper.if ${MACHINE_CPUARCH} == "aarch64" || \
199527fa4fSEnji Cooper    ${MACHINE_CPUARCH} == "amd64" || \
209527fa4fSEnji Cooper    ${MACHINE_CPUARCH} == "i386"
219527fa4fSEnji CooperCFLAGS+=	-D__HAVE_LONG_DOUBLE
229527fa4fSEnji Cooper.endif
239527fa4fSEnji Cooper
24640235e2SEnji Cooper# TODO: t_getenv_thread, t_mi_vector_hash, t_strtoi
2598682851SEnji CooperNETBSD_ATF_TESTS_C+=	abs_test
262f121787SEnji CooperNETBSD_ATF_TESTS_C+=	atoi_test
272f121787SEnji CooperNETBSD_ATF_TESTS_C+=	div_test
282f121787SEnji CooperNETBSD_ATF_TESTS_C+=	getenv_test
292f121787SEnji CooperNETBSD_ATF_TESTS_C+=	exit_test
302f121787SEnji CooperNETBSD_ATF_TESTS_C+=	hsearch_test
312f121787SEnji CooperNETBSD_ATF_TESTS_C+=	posix_memalign_test
322f121787SEnji CooperNETBSD_ATF_TESTS_C+=	random_test
332f121787SEnji CooperNETBSD_ATF_TESTS_C+=	strtod_test
342f121787SEnji CooperNETBSD_ATF_TESTS_C+=	strtol_test
352f121787SEnji CooperNETBSD_ATF_TESTS_C+=	system_test
362f121787SEnji Cooper
372f121787SEnji Cooper# TODO: need to come up with a correct explanation of what the patch pho does
382f121787SEnji Cooper# with h_atexit
392f121787SEnji Cooper#ATF_TESTS_SH=	atexit_test
402f121787SEnji CooperNETBSD_ATF_TESTS_SH=	getopt_test
412f121787SEnji Cooper
422f121787SEnji Cooper.include "../Makefile.netbsd-tests"
432f121787SEnji Cooper
442f121787SEnji CooperBINDIR=		${TESTSDIR}
452f121787SEnji Cooper
462f121787SEnji Cooper# TODO: see comment above
472f121787SEnji Cooper#PROGS+=		h_atexit
482f121787SEnji CooperPROGS+=		h_getopt h_getopt_long
492f121787SEnji Cooper
5098682851SEnji CooperCFLAGS+=	-I${.CURDIR}
5198682851SEnji Cooper
52*f5e04876SEnji CooperCXXSTD.cxa_thread_atexit_test=	c++11
53*f5e04876SEnji CooperCXXSTD.cxa_thread_atexit_nothr_test=	c++11
54b585cd3eSKonstantin BelousovLIBADD.cxa_thread_atexit_test+=		pthread
55b585cd3eSKonstantin Belousov
562f121787SEnji Cooper.for t in h_getopt h_getopt_long
572f121787SEnji CooperCFLAGS.$t+=	-I${LIBNETBSD_SRCDIR} -I${SRCTOP}/contrib/netbsd-tests
582f121787SEnji CooperLDFLAGS.$t+=	-L${LIBNETBSD_OBJDIR}
592f121787SEnji Cooper
60eacae6dcSBryan DreweryLIBADD.${t}+=	netbsd util
612f121787SEnji Cooper.endfor
622f121787SEnji Cooper
63eacae6dcSBryan DreweryLIBADD.strtod_test+=		m
642f121787SEnji Cooper
65280046b9SKyle EvansSUBDIR+=	dynthr_mod
66280046b9SKyle Evans
672f121787SEnji Cooper.include <bsd.test.mk>
68