Author: ngie
Date: Mon Nov 17 09:19:09 2014
New Revision: 274618
URL: https://svnweb.freebsd.org/changeset/base/274618

Log:
  Add reachover Makefiles for contrib/netbsd-tests/lib/librt
  
  A variant of this code has been tested on amd64/i386 for some time by
  EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the
  code will remain off until it's proven it works on virtual hardware or real
  hardware on other architectures
  
  Sponsored by: EMC / Isilon Storage Division

Added:
  head/lib/msun/Makefile.amd64   (contents, props changed)
  head/lib/msun/Makefile.i386   (contents, props changed)
  head/lib/msun/tests/
  head/lib/msun/tests/Makefile   (contents, props changed)
Modified:
  head/etc/mtree/BSD.tests.dist
  head/lib/msun/Makefile

Modified: head/etc/mtree/BSD.tests.dist
==============================================================================
--- head/etc/mtree/BSD.tests.dist       Mon Nov 17 07:38:23 2014        
(r274617)
+++ head/etc/mtree/BSD.tests.dist       Mon Nov 17 09:19:09 2014        
(r274618)
@@ -157,6 +157,8 @@
             ..
             libutil
             ..
+            msun
+            ..
         ..
         libexec
             atf

Modified: head/lib/msun/Makefile
==============================================================================
--- head/lib/msun/Makefile      Mon Nov 17 07:38:23 2014        (r274617)
+++ head/lib/msun/Makefile      Mon Nov 17 09:19:09 2014        (r274618)
@@ -219,4 +219,8 @@ MLINKS+=tan.3 tanf.3 tan.3 tanl.3
 MLINKS+=tanh.3 tanhf.3 tanh.3 tanhl.3
 MLINKS+=trunc.3 truncf.3 trunc.3 truncl.3
 
+.include <src.opts.mk>
+
+.include <bsd.arch.inc.mk>
+
 .include <bsd.lib.mk>

Added: head/lib/msun/Makefile.amd64
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/lib/msun/Makefile.amd64        Mon Nov 17 09:19:09 2014        
(r274618)
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+.if ${MK_TESTS} != "no"
+SUBDIR+=       tests
+.endif
+

Added: head/lib/msun/Makefile.i386
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/lib/msun/Makefile.i386 Mon Nov 17 09:19:09 2014        (r274618)
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+.if ${MK_TESTS} != "no"
+SUBDIR+=       tests
+.endif
+

Added: head/lib/msun/tests/Makefile
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/lib/msun/tests/Makefile        Mon Nov 17 09:19:09 2014        
(r274618)
@@ -0,0 +1,63 @@
+# $FreeBSD$
+
+OBJTOP=                ${.OBJDIR:H:H:H}
+SRCTOP=                ${.CURDIR:H:H:H}
+TESTSRC=       ${SRCTOP}/contrib/netbsd-tests/lib/libm
+
+TESTSDIR=      ${TESTSBASE}/lib/msun
+
+.if ${MACHINE} == "sparc" || ${MACHINE} == "i386" \
+       || ${MACHINE} == "amd64" || ${MACHINE_CPU} == "arm"     \
+       || ${MACHINE} == "sparc64"
+CFLAGS+=       -DHAVE_FENV_H
+.endif
+
+.if ${MACHINE} == "amd64" || ${MACHINE} == "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+=   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+=   infinity_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
+
+CSTD=          c99
+
+LDADD+=                -lm
+DPADD+=                ${LIBM}
+#COPTS+=       -Wfloat-equal
+
+# 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}
+
+.include <netbsd-tests.test.mk>
+
+.include <bsd.test.mk>
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to