groff-commit
[Top][All Lists]
Advanced

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

[groff] 08/09: [grog]: Add regression test for Savannah #61520.


From: G. Branden Robinson
Subject: [groff] 08/09: [grog]: Add regression test for Savannah #61520.
Date: Tue, 23 Nov 2021 09:04:47 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 83b132c6eefb62ed1d1531e8ee3fa666675d826f
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 24 00:43:16 2021 +1100

    [grog]: Add regression test for Savannah #61520.
    
    * src/utils/grog/tests/avoid-refer-fakeout.sh: Do it.
    * src/utils/grog/grog.am (grog_TESTS): Run test.
    
    Test fails at this commit.
---
 ChangeLog                                   |  7 ++++++
 src/utils/grog/grog.am                      |  1 +
 src/utils/grog/tests/avoid-refer-fakeout.sh | 34 +++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 9f361ad..d8f1761 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-11-24  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [grog]: Add regression test for Savannah #61520.
+
+       * src/utils/grog/tests/avoid-refer-fakeout.sh: Do it.
+       * src/utils/grog/grog.am (grog_TESTS): Run test.
+
 2021-11-23  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * doc/groff.texi (Page Motions): Fix error: the `\r`, `\u`, and
diff --git a/src/utils/grog/grog.am b/src/utils/grog/grog.am
index 8e9e1da..b24c2c6 100644
--- a/src/utils/grog/grog.am
+++ b/src/utils/grog/grog.am
@@ -35,6 +35,7 @@ grog: $(grog_srcdir)/grog.pl $(SH_DEPS_SED_SCRIPT)
 
 grog_TESTS = \
   src/utils/grog/tests/PF-does-not-start-pic-region.sh \
+  src/utils/grog/tests/avoid-refer-fakeout.sh \
   src/utils/grog/tests/preserve-groff-options.sh \
   src/utils/grog/tests/recognize-perl-pod.sh \
   src/utils/grog/tests/smoke-test.sh
diff --git a/src/utils/grog/tests/avoid-refer-fakeout.sh 
b/src/utils/grog/tests/avoid-refer-fakeout.sh
new file mode 100755
index 0000000..f163bed
--- /dev/null
+++ b/src/utils/grog/tests/avoid-refer-fakeout.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Copyright (C) 2021 Free Software Foundation, Inc.
+#
+# This file is part of groff.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+grog="${abs_top_builddir:-.}/grog"
+
+# Regression-test Savannah #61520.
+#
+# Don't be fooled by documents (like xterm's ctlseqs.ms) that define
+# macros with names that start with '[' or ']'.
+
+input=".de []
+..
+.[] foo"
+
+echo "$input" | "$grog" | grep -Fqx 'groff -'
+
+# vim:set ai et sw=4 ts=4 tw=72:



reply via email to

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