groff-commit
[Top][All Lists]
Advanced

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

[groff] 29/35: [mm]: Add regression test for Savannah #60915.


From: G. Branden Robinson
Subject: [groff] 29/35: [mm]: Add regression test for Savannah #60915.
Date: Fri, 16 Jul 2021 20:39:47 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit da64886e77f0cb6ab50d305e7b375a7a9d7678a2
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Jul 17 07:39:08 2021 +1000

    [mm]: Add regression test for Savannah #60915.
    
    Warning: test fails at this commit.
---
 contrib/mm/ChangeLog                               |  5 +++
 contrib/mm/mm.am                                   |  3 +-
 .../tests/ms_cover_sheet_robust_to_missing_AF.sh   | 39 ++++++++++++++++++++++
 3 files changed, 46 insertions(+), 1 deletion(-)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index ae77de0..cefadc6 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,8 @@
+2021-07-17  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tests/ms_cover_sheet_robust_to_missing_AF.sh: Test it.
+       * mm.am (mm_TESTS): Run test.
+
 2021-07-14  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * m.tmac: Rename `cov*mt-addresse` to `cov*mt-addressee`.
diff --git a/contrib/mm/mm.am b/contrib/mm/mm.am
index f4114bb..4732188 100644
--- a/contrib/mm/mm.am
+++ b/contrib/mm/mm.am
@@ -68,7 +68,8 @@ EXTRA_DIST += \
 mm_TESTS = \
   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_5_includes_AT_in_SG.sh
+  contrib/mm/tests/MT_5_includes_AT_in_SG.sh \
+  contrib/mm/tests/ms_cover_sheet_robust_to_missing_AF.sh
 TESTS += $(mm_TESTS)
 EXTRA_DIST += $(mm_TESTS)
 
diff --git a/contrib/mm/tests/ms_cover_sheet_robust_to_missing_AF.sh 
b/contrib/mm/tests/ms_cover_sheet_robust_to_missing_AF.sh
new file mode 100755
index 0000000..66086f8
--- /dev/null
+++ b/contrib/mm/tests/ms_cover_sheet_robust_to_missing_AF.sh
@@ -0,0 +1,39 @@
+#!/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 #60915.
+#
+# Ensure that a missing firm definition doesn't disrupt cover sheet
+# layout.
+
+EXAMPLE='.COVER
+.ND 2020-07-17
+.TL
+The Great American Novel
+.AU "Eileen M. Plausible"
+.COVEND'
+
+echo "$EXAMPLE" \
+    | "$groff" -Tascii -P-cbou -mm \
+    | grep -Fqx '       2020-07-17' # 7 spaces
+
+# vim:set ai et sw=4 ts=4 tw=72:



reply via email to

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