groff-commit
[Top][All Lists]
Advanced

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

[groff] 64/115: [mm]: Regression-test Savannah #63695.


From: G. Branden Robinson
Subject: [groff] 64/115: [mm]: Regression-test Savannah #63695.
Date: Thu, 1 Jun 2023 10:46:10 -0400 (EDT)

gbranden pushed a commit to branch branden-2022-06-01
in repository groff.

commit dfd4285e93501ca4a586641190bec9fc032e4fad
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu May 25 12:35:56 2023 -0500

    [mm]: Regression-test Savannah #63695.
    
    * contrib/mm/tests/LT-should-space-after-inside-address.sh: Do it.
    * contrib/mm/mm.am (mm_TESTS): Run test.
    
    Test fails at this commit.
---
 contrib/mm/ChangeLog                               |  7 +++
 contrib/mm/mm.am                                   |  1 +
 .../tests/LT-should-space-after-inside-address.sh  | 51 ++++++++++++++++++++++
 3 files changed, 59 insertions(+)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index de0f744f3..88cd3c486 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,10 @@
+2023-05-25  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       Regression-test Savannah #63695.
+
+       * tests/LT-should-space-after-inside-address.sh: Do it.
+       * mm.am (mm_TESTS): Run test.
+
 2023-05-25  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        Accept a second argument to `HU`.
diff --git a/contrib/mm/mm.am b/contrib/mm/mm.am
index 191dbce44..d28ab5b8f 100644
--- a/contrib/mm/mm.am
+++ b/contrib/mm/mm.am
@@ -61,6 +61,7 @@ EXTRA_DIST += \
   contrib/mm/mmroff.pl
 
 mm_TESTS = \
+  contrib/mm/tests/LT-should-space-after-inside-address.sh \
   contrib/mm/tests/LT_SP_AU_without_AT_works.sh \
   contrib/mm/tests/LT_SP_multi-word_LO_SJ_works.sh \
   contrib/mm/tests/MT-1-reports-all-TM-numbers.sh \
diff --git a/contrib/mm/tests/LT-should-space-after-inside-address.sh 
b/contrib/mm/tests/LT-should-space-after-inside-address.sh
new file mode 100755
index 000000000..17a80d0d3
--- /dev/null
+++ b/contrib/mm/tests/LT-should-space-after-inside-address.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+#
+# Copyright (C) 2023 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 #63695.
+#
+# One vertical line of space should follow the letter header.
+
+input='.ND "17 May 2023"
+.WA "Epi G. Netic" "Head of Research"
+123 Main Street
+Anytown, ST  10101
+.WE
+.IA "Rufus T. Arbogast" "Guru"
+456 Elsewhere Avenue
+Nirvana, PA  20406
+.IE
+.LT
+.P
+We have a research leak!
+.FC
+.SG
+.NS
+sundry careless people
+.NE'
+
+output=$(echo "$input" | "$groff" -mm -Tascii -P-cbou)
+echo "$output"
+echo "$output" \
+    | sed -n -e '/.*Nirvana/{' -e 'n;/^$/{' -e 'n;p;' -e '}' -e '}' \
+    | grep -q leak
+
+# vim:set ai et sw=4 ts=4 tw=72:



reply via email to

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