automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {yacc-work} tests defs: use `skip_' for skipping yacc/lex related


From: Stefano Lattarini
Subject: [FYI] {yacc-work} tests defs: use `skip_' for skipping yacc/lex related tests
Date: Wed, 4 May 2011 19:08:57 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

* tests/defs.in (lex, bison): Use `skip_' to signal test skipping.
---
 ChangeLog     |    5 +++++
 tests/defs.in |   12 ++----------
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fef3648..4769ca1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-05-04  Stefano Lattarini  <address@hidden>
 
+       tests defs: use `skip_' for skipping yacc/lex related tests
+       * tests/defs.in (lex, bison): Use `skip_' to signal test skipping.
+
+2011-05-04  Stefano Lattarini  <address@hidden>
+
        tests defs: merge cleanup
        (flex, bison): Requirements removed, we have real `lex' and `yacc'
        requirements now.
diff --git a/tests/defs.in b/tests/defs.in
index f65256c..654ac93 100644
--- a/tests/defs.in
+++ b/tests/defs.in
@@ -283,20 +283,12 @@ do
       ( texi2dvi -o /dev/null --version ) || exit 77
       ;;
     lex)
-      if test x"$LEX" = x"false"; then
-        echo "$me: no working \$LEX found at configure time," \
-                  "or explicitly disabled" >&2
-        exit 77
-      fi
       export LEX
+      test x"$LEX" = x"false" && skip_ "lex not found or disabled"
       ;;
     yacc)
-      if test x"$YACC" = x"false"; then
-        echo "$me: no working \$YACC found at configure time," \
-                  "or explicitly disabled" >&2
-        exit 77
-      fi
       export YACC
+      test x"$YACC" = x"false" && skip_ "yacc not found or disabled"
       ;;
     # Generic case: the tool must support --version.
     *)
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]