mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
24612bfd1f
This unskips: - lib.libc.stdlib.strtod_test.strtod_round - lib.msun.fe_round_test.t_nofe_round In lib/msun/tests/Makefile only define on fe_round_test.c because lib.msun.ilogb_test.ilogb will get wrong results and needs more examination. MFC after: 1 week Sponsored by: The FreeBSD Foundation
107 lines
2.4 KiB
Makefile
107 lines
2.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
TESTSRC= ${SRCTOP}/contrib/netbsd-tests/lib/libm
|
|
|
|
# All architectures on FreeBSD have fenv.h
|
|
CFLAGS+= -DHAVE_FENV_H
|
|
|
|
# For isqemu.h
|
|
CFLAGS+= -I${TESTSRC:H}/libc/gen
|
|
|
|
# Not sure why this isn't defined for all architectures, since most
|
|
# have long double.
|
|
.if ${MACHINE_CPUARCH} == "aarch64" || \
|
|
${MACHINE_CPUARCH} == "amd64" || \
|
|
${MACHINE_CPUARCH} == "i386"
|
|
CFLAGS+= -D__HAVE_LONG_DOUBLE
|
|
.endif
|
|
|
|
NETBSD_ATF_TESTS_C= acos_test
|
|
NETBSD_ATF_TESTS_C+= asin_test
|
|
NETBSD_ATF_TESTS_C+= atan_test
|
|
NETBSD_ATF_TESTS_C+= cbrt_test
|
|
NETBSD_ATF_TESTS_C+= ceil_test
|
|
NETBSD_ATF_TESTS_C+= casinh_test
|
|
NETBSD_ATF_TESTS_C+= cos_test
|
|
NETBSD_ATF_TESTS_C+= cosh_test
|
|
NETBSD_ATF_TESTS_C+= erf_test
|
|
NETBSD_ATF_TESTS_C+= exp_test
|
|
NETBSD_ATF_TESTS_C+= fmod_test
|
|
NETBSD_ATF_TESTS_C+= fe_round_test
|
|
NETBSD_ATF_TESTS_C+= infinity_test
|
|
NETBSD_ATF_TESTS_C+= ilogb_test
|
|
NETBSD_ATF_TESTS_C+= ldexp_test
|
|
NETBSD_ATF_TESTS_C+= log_test
|
|
NETBSD_ATF_TESTS_C+= pow_test
|
|
NETBSD_ATF_TESTS_C+= precision_test
|
|
NETBSD_ATF_TESTS_C+= round_test
|
|
NETBSD_ATF_TESTS_C+= scalbn_test
|
|
NETBSD_ATF_TESTS_C+= sin_test
|
|
NETBSD_ATF_TESTS_C+= sinh_test
|
|
NETBSD_ATF_TESTS_C+= sqrt_test
|
|
NETBSD_ATF_TESTS_C+= tan_test
|
|
NETBSD_ATF_TESTS_C+= tanh_test
|
|
|
|
TAP_TESTS_C+= cexp_test
|
|
TAP_TESTS_C+= conj_test
|
|
.if ${MACHINE_CPUARCH} != "aarch64"
|
|
# Hits an assert in llvm when building for arm64:
|
|
# https://llvm.org/bugs/show_bug.cgi?id=26081
|
|
TAP_TESTS_C+= csqrt_test
|
|
.endif
|
|
ATF_TESTS_C+= ctrig_test
|
|
TAP_TESTS_C+= exponential_test
|
|
TAP_TESTS_C+= fenv_test
|
|
TAP_TESTS_C+= fma_test
|
|
TAP_TESTS_C+= fmaxmin_test
|
|
TAP_TESTS_C+= ilogb2_test
|
|
TAP_TESTS_C+= invtrig_test
|
|
TAP_TESTS_C+= invctrig_test
|
|
TAP_TESTS_C+= logarithm_test
|
|
TAP_TESTS_C+= lrint_test
|
|
# XXX: the testcase crashes on all platforms, but only on head
|
|
# (bug 205451)
|
|
#TAP_TESTS_C+= lround_test
|
|
TAP_TESTS_C+= nan_test
|
|
TAP_TESTS_C+= nearbyint_test
|
|
TAP_TESTS_C+= next_test
|
|
TAP_TESTS_C+= rem_test
|
|
ATF_TESTS_C+= trig_test
|
|
|
|
.if !empty(PROG) && !empty(TAP_TESTS_C:M${PROG})
|
|
CFLAGS+= -O0
|
|
.endif
|
|
|
|
CSTD= c99
|
|
|
|
#COPTS+= -Wfloat-equal
|
|
|
|
IGNORE_PRAGMA=
|
|
|
|
SRCS.ilogb2_test= ilogb_test.c
|
|
|
|
LIBADD+= m
|
|
|
|
WARNS?= 1
|
|
|
|
# Copied from lib/msun/Makefile
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
|
ARCH_SUBDIR= i387
|
|
.else
|
|
ARCH_SUBDIR= ${MACHINE_CPUARCH}
|
|
.endif
|
|
|
|
.include "../${ARCH_SUBDIR}/Makefile.inc"
|
|
|
|
# XXX: for some odd reason float.h doesn't tell the full story about what the
|
|
# precision is.
|
|
CFLAGS+= -DLDBL_PREC=${LDBL_PREC}
|
|
|
|
CFLAGS.fe_round_test+= -D__HAVE_FENV
|
|
|
|
.include <netbsd-tests.test.mk>
|
|
|
|
.include <bsd.test.mk>
|