[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] {yacc-work} tests init: better messages for 'yacc' and 'lex' req
From: |
Stefano Lattarini |
Subject: |
[PATCH] {yacc-work} tests init: better messages for 'yacc' and 'lex' requirements |
Date: |
Sat, 29 Jan 2011 13:16:59 +0100 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
defs.in: Give better diagnostic messages when a test must
be skipped to the unavailability of yacc or lex program. Also,
improve syncing between code for requiring yacc and lex.
---
ChangeLog | 8 ++++++++
tests/defs.in | 14 +++++---------
2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a372c6c..8b19683 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-01-29 Stefano Lattarini <address@hidden>
+ Ralf Wildenhues <address@hidden>
+
+ tests init: better messages for 'yacc' and 'lex' requirements
+ * tests/defs.in: Give better diagnostic messages when a test must
+ be skipped to the unavailability of yacc or lex program. Also,
+ improve syncing between code for requiring yacc and lex.
+
2011-01-28 Stefano Lattarini <address@hidden>
configure: look for a lex program to be used by the testsuite
diff --git a/tests/defs.in b/tests/defs.in
index d755c26..449e3e3 100644
--- a/tests/defs.in
+++ b/tests/defs.in
@@ -213,23 +213,19 @@ do
;;
lex)
if test x"$LEX" = x"false"; then
- # No lex program was found at configure time, or the user has
- # explicitly told he doesn't want a lex program to be used.
- echo "$me: \$LEX is \"false\", skipping test" >&2
+ echo "$me: no working \$LEX found at configure time," \
+ "or explicitly disabled" >&2
exit 77
fi
export LEX
;;
yacc)
if test x"$YACC" = x"false"; then
- # No yacc program was found at configure time, or the user has
- # explicitly told he doesn't want a yacc program to be used.
- echo "$me: \$YACC is \"false\", skipping test" >&2
+ echo "$me: no working \$YACC found at configure time," \
+ "or explicitly disabled" >&2
exit 77
- else
- # Make YACC available to configure by exporting it.
- export YACC
fi
+ export YACC
;;
# Generic case: the tool must support --version.
*)
--
1.7.2.3
- [PATCH] {yacc-work} tests init: better messages for 'yacc' and 'lex' requirements,
Stefano Lattarini <=