aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-01-27 09:11:04 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-01-27 09:11:04 +0200
commitc6a3eff6ca876919dbc4d5221e8c7640ed7b3e43 (patch)
tree6a2714c61176d29cdae28371806221df758584ca /test
parentf87bfec818319e65540ed08837d8fe85bd29174a (diff)
downloadegawk-c6a3eff6ca876919dbc4d5221e8c7640ed7b3e43.tar.gz
egawk-c6a3eff6ca876919dbc4d5221e8c7640ed7b3e43.tar.bz2
egawk-c6a3eff6ca876919dbc4d5221e8c7640ed7b3e43.zip
Run MPFR tests is MPFR is available.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog4
-rw-r--r--test/Makefile.am15
-rw-r--r--test/Makefile.in11
3 files changed, 28 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 47329fdf..3486817e 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,7 @@
+2013-01-27 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * Makefile.am: Add mpfr tests if MPFR is available.
+
2013-01-20 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (reginttrad): New test.
diff --git a/test/Makefile.am b/test/Makefile.am
index 98d82e7b..69bbfbf1 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1011,6 +1011,12 @@ VALGRIND =
# And we set AWKLIBPATH to find the extension libraries we built.
AWK = LC_ALL=$${GAWKLOCALE:-C} LANG=$${GAWKLOCALE:-C} AWKLIBPATH=../extension/.libs $(VALGRIND) $(AWKPROG)
+if TEST_MPFR
+CHECKMPFR = mpfr-msg-start mpfr-tests mpfr-msg-end
+else
+CHECKMPFR =
+endif
+
# Message stuff is to make it a little easier to follow.
# Make the pass-fail last and dependent on others to avoid
# spurious errors if `make -j' in effect.
@@ -1021,7 +1027,8 @@ check: msg \
extend-msg-start gawk-extensions extend-msg-end \
machine-msg-start machine-tests machine-msg-end \
charset-msg-start charset-tests charset-msg-end \
- shlib-msg-start shlib-tests shlib-msg-end
+ shlib-msg-start shlib-tests shlib-msg-end \
+ $(CHECKMPFR)
@$(MAKE) pass-fail
basic: $(BASIC_TESTS)
@@ -1094,6 +1101,12 @@ shlib-msg-start:
shlib-msg-end:
@echo "======== Done with shared library tests ========"
+mpfr-msg-start:
+ @echo "======== Starting MPFR tests ========"
+
+mpfr-msg-end:
+ @echo "======== Done with MPFR tests ========"
+
lc_num1:
@echo $@
diff --git a/test/Makefile.in b/test/Makefile.in
index 1b986df2..2b154743 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1210,6 +1210,8 @@ AWKPROG = ../gawk$(EXEEXT)
# Default for VALGRIND is empty unless overridden by a command-line argument.
# This protects against cruft in the environment.
VALGRIND =
+@TEST_MPFR_FALSE@CHECKMPFR =
+@TEST_MPFR_TRUE@CHECKMPFR = mpfr-msg-start mpfr-tests mpfr-msg-end
all: all-am
.SUFFIXES:
@@ -1404,7 +1406,8 @@ check: msg \
extend-msg-start gawk-extensions extend-msg-end \
machine-msg-start machine-tests machine-msg-end \
charset-msg-start charset-tests charset-msg-end \
- shlib-msg-start shlib-tests shlib-msg-end
+ shlib-msg-start shlib-tests shlib-msg-end \
+ $(CHECKMPFR)
@$(MAKE) pass-fail
basic: $(BASIC_TESTS)
@@ -1477,6 +1480,12 @@ shlib-msg-start:
shlib-msg-end:
@echo "======== Done with shared library tests ========"
+mpfr-msg-start:
+ @echo "======== Starting MPFR tests ========"
+
+mpfr-msg-end:
+ @echo "======== Done with MPFR tests ========"
+
lc_num1:
@echo $@
@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; \