[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: several messages
From: |
Joel E. Denny |
Subject: |
Re: several messages |
Date: |
Sun, 27 Sep 2009 14:49:46 -0400 (EDT) |
User-agent: |
Alpine 1.00 (DEB 882 2007-12-20) |
On Sat, 26 Sep 2009, Joel E. Denny wrote:
> Subject: [PATCH] tests: check that parse-gram.y's IELR and LALR are identical.
>
> * tests/atlocal.in (abs_top_srcdir): New shell variable.
> * tests/regression.at (parse-gram.y: LALR = IELR): New test
> group.
To clean that up, I pushed the following patch to master and branch-2.5.
>From d8f68fc29536fa1c1e7b1b200b1e8088762c3e93 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <address@hidden>
Date: Sun, 27 Sep 2009 14:37:00 -0400
Subject: [PATCH] tests: don't abuse AT_BISON_CHECK.
* tests/regression.at (parse-gram.y: LALR = IELR): Move
additional shell commands outside of AT_BISON_CHECK.
---
ChangeLog | 6 ++++++
tests/regression.at | 8 +++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f24be8a..a0b4314 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-27 Joel E. Denny <address@hidden>
+
+ tests: don't abuse AT_BISON_CHECK.
+ * tests/regression.at (parse-gram.y: LALR = IELR): Move
+ additional shell commands outside of AT_BISON_CHECK.
+
2009-09-26 Joel E. Denny <address@hidden>
tests: check that parse-gram.y's IELR and LALR are identical.
diff --git a/tests/regression.at b/tests/regression.at
index 2482189..cfc071e 100644
--- a/tests/regression.at
+++ b/tests/regression.at
@@ -1252,9 +1252,11 @@ AT_SETUP([[parse-gram.y: LALR = IELR]])
# Avoid tests/bison's dark magic by processing a local copy of the
# grammar. Avoid differences in synclines by telling bison that the
# output files have the same name.
-cp $abs_top_srcdir/src/parse-gram.y input.y
-AT_BISON_CHECK([[-o input.c -Dlr.type=lalr input.y && mv input.c lalr.c]])
-AT_BISON_CHECK([[-o input.c -Dlr.type=ielr input.y && mv input.c ielr.c]])
+[cp $abs_top_srcdir/src/parse-gram.y input.y]
+AT_BISON_CHECK([[-o input.c -Dlr.type=lalr input.y]])
+[mv input.c lalr.c]
+AT_BISON_CHECK([[-o input.c -Dlr.type=ielr input.y]])
+[mv input.c ielr.c]
AT_CHECK([[diff -u lalr.c ielr.c]])
AT_CLEANUP
--
1.5.4.3