[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 26/31: Add regression test for Savannah #57034.
From: |
G. Branden Robinson |
Subject: |
[groff] 26/31: Add regression test for Savannah #57034. |
Date: |
Sun, 30 May 2021 11:12:38 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 633c5e9e0fac4aaead38060046828e02e5d5b068
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun May 30 19:51:51 2021 +1000
Add regression test for Savannah #57034.
* contrib/mm/tests/MT_5_includes_AT_in_SG.sh: Test it. Thanks to Ken
Mandelberg for the reproducer.
* contrib/mm/mm.am (mm_TESTS): Add variable storing script name.
(TESTS): Append `mm_TESTS` to run it.
(EXTRA_DIST): Append `mm_TESTS` to ship it.
Test fails at this commit.
---
ChangeLog | 10 +++++++
contrib/mm/mm.am | 4 +++
contrib/mm/tests/MT_5_includes_AT_in_SG.sh | 43 ++++++++++++++++++++++++++++++
3 files changed, 57 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 7e0aeb1..8874efc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2021-05-30 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ Add regression test for Savannah #57034.
+
+ * contrib/mm/tests/MT_5_includes_AT_in_SG.sh: Test it. Thanks
+ to Ken Mandelberg for the reproducer.
+ * contrib/mm/mm.am (mm_TESTS): Add variable storing script name.
+ (TESTS): Append `mm_TESTS` to run it.
+ (EXTRA_DIST): Append `mm_TESTS` to ship it.
+
2021-05-30 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* contrib/mm/mm/5.MT (cov@print-title): Fix missing diagnostic.
diff --git a/contrib/mm/mm.am b/contrib/mm/mm.am
index 9d88532..5bd4940 100644
--- a/contrib/mm/mm.am
+++ b/contrib/mm/mm.am
@@ -65,6 +65,10 @@ EXTRA_DIST += \
contrib/mm/mmroff.1.man \
contrib/mm/mmroff.pl
+mm_TESTS = \
+ contrib/mm/tests/MT_5_includes_AT_in_SG.sh
+TESTS += $(mm_TESTS)
+EXTRA_DIST += $(mm_TESTS)
mmroff: $(mm_srcdir)/mmroff.pl
$(AM_V_GEN)$(SED) -e 's;/usr/bin/perl;$(PERL);' \
diff --git a/contrib/mm/tests/MT_5_includes_AT_in_SG.sh
b/contrib/mm/tests/MT_5_includes_AT_in_SG.sh
new file mode 100755
index 0000000..4f23d53
--- /dev/null
+++ b/contrib/mm/tests/MT_5_includes_AT_in_SG.sh
@@ -0,0 +1,43 @@
+#!/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/>.
+#
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+# Regression-test Savannah #57034.
+#
+# Ensure that an author's title (if any) is written in the signature.
+#
+# Thanks to Ken Mandelberg for the reproducer.
+
+EXAMPLE='.TL
+Inquiry
+.AU "John SMITH"
+.AT "Director"
+.MT 5
+.P
+sentence
+.FC Sincerely,
+.SG'
+
+echo "$EXAMPLE" \
+ | "$groff" -Tascii -P-cbou -mm \
+ | grep -Eqx '[[:space:]]+Director[[:space:]]*'
+
+# vim:set ai et sw=4 ts=4 tw=72:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 26/31: Add regression test for Savannah #57034.,
G. Branden Robinson <=