From 8a7d0e8ce3d2e756fbecc374b6379d0ce8458654 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sun, 20 Dec 2015 05:06:44 +0000 Subject: [PATCH] Integrate the remaining tools/regression/lib/msun testcases into the FreeBSD test suite under lib/msun/tests MFC after: 3 weeks X-MFC with: r292328 Sponsored by: EMC / Isilon Storage Division --- lib/msun/tests/Makefile | 8 +++++++- .../test-ctrig.c => lib/msun/tests/ctrig_test.c | 0 .../msun/tests/exponential_test.c | 0 .../msun/test-fma.c => lib/msun/tests/fma_test.c | 0 .../msun/tests/invtrig_test.c | 0 .../test-lround.c => lib/msun/tests/lround_test.c | 0 .../test-ctrig.t => lib/msun/tests/lround_test.t | 0 .../lib/msun => lib/msun/tests}/test-utils.h | 0 tools/regression/lib/msun/Makefile | 14 -------------- tools/regression/lib/msun/test-exponential.t | 10 ---------- tools/regression/lib/msun/test-fma.t | 10 ---------- tools/regression/lib/msun/test-invtrig.t | 10 ---------- tools/regression/lib/msun/test-lround.t | 10 ---------- 13 files changed, 7 insertions(+), 55 deletions(-) rename tools/regression/lib/msun/test-ctrig.c => lib/msun/tests/ctrig_test.c (100%) rename tools/regression/lib/msun/test-exponential.c => lib/msun/tests/exponential_test.c (100%) rename tools/regression/lib/msun/test-fma.c => lib/msun/tests/fma_test.c (100%) rename tools/regression/lib/msun/test-invtrig.c => lib/msun/tests/invtrig_test.c (100%) rename tools/regression/lib/msun/test-lround.c => lib/msun/tests/lround_test.c (100%) rename tools/regression/lib/msun/test-ctrig.t => lib/msun/tests/lround_test.t (100%) rename {tools/regression/lib/msun => lib/msun/tests}/test-utils.h (100%) delete mode 100644 tools/regression/lib/msun/Makefile delete mode 100644 tools/regression/lib/msun/test-exponential.t delete mode 100644 tools/regression/lib/msun/test-fma.t delete mode 100644 tools/regression/lib/msun/test-invtrig.t delete mode 100644 tools/regression/lib/msun/test-lround.t diff --git a/lib/msun/tests/Makefile b/lib/msun/tests/Makefile index dfac5a252f28..bbf0f01d7042 100644 --- a/lib/msun/tests/Makefile +++ b/lib/msun/tests/Makefile @@ -39,12 +39,19 @@ NETBSD_ATF_TESTS_C+= tanh_test TAP_TESTS_C+= cexp_test TAP_TESTS_C+= conj_test TAP_TESTS_C+= csqrt_test +TAP_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+= ilogb_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 @@ -53,7 +60,6 @@ TAP_TESTS_C+= trig_test .for t in ${TAP_TESTS_C} CFLAGS.$t+= -O0 -CFLAGS.$t+= -I${SRCTOP}/tools/regression/lib/msun .endfor CSTD= c99 diff --git a/tools/regression/lib/msun/test-ctrig.c b/lib/msun/tests/ctrig_test.c similarity index 100% rename from tools/regression/lib/msun/test-ctrig.c rename to lib/msun/tests/ctrig_test.c diff --git a/tools/regression/lib/msun/test-exponential.c b/lib/msun/tests/exponential_test.c similarity index 100% rename from tools/regression/lib/msun/test-exponential.c rename to lib/msun/tests/exponential_test.c diff --git a/tools/regression/lib/msun/test-fma.c b/lib/msun/tests/fma_test.c similarity index 100% rename from tools/regression/lib/msun/test-fma.c rename to lib/msun/tests/fma_test.c diff --git a/tools/regression/lib/msun/test-invtrig.c b/lib/msun/tests/invtrig_test.c similarity index 100% rename from tools/regression/lib/msun/test-invtrig.c rename to lib/msun/tests/invtrig_test.c diff --git a/tools/regression/lib/msun/test-lround.c b/lib/msun/tests/lround_test.c similarity index 100% rename from tools/regression/lib/msun/test-lround.c rename to lib/msun/tests/lround_test.c diff --git a/tools/regression/lib/msun/test-ctrig.t b/lib/msun/tests/lround_test.t similarity index 100% rename from tools/regression/lib/msun/test-ctrig.t rename to lib/msun/tests/lround_test.t diff --git a/tools/regression/lib/msun/test-utils.h b/lib/msun/tests/test-utils.h similarity index 100% rename from tools/regression/lib/msun/test-utils.h rename to lib/msun/tests/test-utils.h diff --git a/tools/regression/lib/msun/Makefile b/tools/regression/lib/msun/Makefile deleted file mode 100644 index 4f48e821e74f..000000000000 --- a/tools/regression/lib/msun/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $FreeBSD$ - -TESTS= test-ctrig \ - test-exponential test-fma test-invtrig \ - test-lround -CFLAGS+= -O0 -lm -Wno-unknown-pragmas - -.PHONY: tests -tests: ${TESTS} - for p in ${TESTS}; do ${.OBJDIR}/$$p; done - -.PHONY: clean -clean: - -rm -f ${TESTS} diff --git a/tools/regression/lib/msun/test-exponential.t b/tools/regression/lib/msun/test-exponential.t deleted file mode 100644 index 8bdfd03be81b..000000000000 --- a/tools/regression/lib/msun/test-exponential.t +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -cd `dirname $0` - -executable=`basename $0 .t` - -make $executable 2>&1 > /dev/null - -exec ./$executable diff --git a/tools/regression/lib/msun/test-fma.t b/tools/regression/lib/msun/test-fma.t deleted file mode 100644 index 8bdfd03be81b..000000000000 --- a/tools/regression/lib/msun/test-fma.t +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -cd `dirname $0` - -executable=`basename $0 .t` - -make $executable 2>&1 > /dev/null - -exec ./$executable diff --git a/tools/regression/lib/msun/test-invtrig.t b/tools/regression/lib/msun/test-invtrig.t deleted file mode 100644 index 8bdfd03be81b..000000000000 --- a/tools/regression/lib/msun/test-invtrig.t +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -cd `dirname $0` - -executable=`basename $0 .t` - -make $executable 2>&1 > /dev/null - -exec ./$executable diff --git a/tools/regression/lib/msun/test-lround.t b/tools/regression/lib/msun/test-lround.t deleted file mode 100644 index 8bdfd03be81b..000000000000 --- a/tools/regression/lib/msun/test-lround.t +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -cd `dirname $0` - -executable=`basename $0 .t` - -make $executable 2>&1 > /dev/null - -exec ./$executable