groff-commit
[Top][All Lists]
Advanced

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

[groff] 05/06: Add regression test for Savannah #59197.


From: G. Branden Robinson
Subject: [groff] 05/06: Add regression test for Savannah #59197.
Date: Fri, 25 Sep 2020 09:33:52 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit c26633966420dd4748ffd44e364340136e65b05f
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Sep 25 23:19:56 2020 +1000

    Add regression test for Savannah #59197.
    
    * tmac/tests/an-old_X_register_works.sh: Do it.
    * tmac/tmac.am (tmac_TESTS): Run it.
---
 ChangeLog                             |  7 +++++++
 tmac/tests/an-old_X_register_works.sh | 31 +++++++++++++++++++++++++++++++
 tmac/tmac.am                          |  1 +
 3 files changed, 39 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 4fd74a7..9b34e88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2020-09-25  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       Add regression test for Savannah #59197.
+
+       * tmac/tests/an-old_X_register_works.sh: Do it.
+       * tmac/tmac.am (tmac_TESTS): Run it.
+
+2020-09-25  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * tmac/an-old.tmac:
        * tmac/doc.tmac-u: Emit more informative fatal diagnostic when
        installed version of groff is too old.  Report the version found
diff --git a/tmac/tests/an-old_X_register_works.sh 
b/tmac/tests/an-old_X_register_works.sh
new file mode 100755
index 0000000..d89fe7d
--- /dev/null
+++ b/tmac/tests/an-old_X_register_works.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Copyright (C) 2020 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 #59179.
+#
+# Don't lose track of the page number if we're continuously rendering
+# _and_ we've been given a page-letter suffixing threshold.
+
+printf ".TH foo 1\n" | "$groff" -Tascii -P-cbou -rX1 -man \
+    | tail -n 1 | grep -Eq '^[[:space:]]+1$'
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 8c84804..f685dea 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -159,6 +159,7 @@ tmac_TESTS = \
   tmac/tests/an-old_LL_init_sanely.sh \
   tmac/tests/an-old_TH_repairs_ad_damage.sh \
   tmac/tests/an-old_TH_repairs_hy_damage.sh \
+  tmac/tests/an-old_X_register_works.sh \
   tmac/tests/an-old_avoid_two-font_denial_of_service.sh \
   tmac/tests/doc-accept-mixed-case-section-headings.sh \
   tmac/tests/doc-smoke-test.sh



reply via email to

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