groff-commit
[Top][All Lists]
Advanced

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

[groff] 04/11: [me]: Add regression test for Savannah #58736.


From: G. Branden Robinson
Subject: [groff] 04/11: [me]: Add regression test for Savannah #58736.
Date: Fri, 13 Aug 2021 10:05:47 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 51ebea3f76567e244e46bc91d7004cf1713b1fc7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Aug 13 09:26:04 2021 +1000

    [me]: Add regression test for Savannah #58736.
    
    * tmac/tests/e_footnotes_work_with_columns.sh: Test it.
    * tmac/tmac.am (tmac_TESTS): Run test.
---
 ChangeLog                                   |  7 +++++
 tmac/tests/e_footnotes_work_with_columns.sh | 43 +++++++++++++++++++++++++++++
 tmac/tmac.am                                |  1 +
 3 files changed, 51 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 94b3b65..bf26d70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2021-08-13  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       Add regression test for Savannah #58736.
+
+       * tmac/tests/e_footnotes_work_with_columns.sh: Test it.
+       * tmac/tmac.am (tmac_TESTS): Run test.
+
+2021-08-13  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * tmac/e.tmac (bc): Fix problem with multiple columns on long
        pages.  Space to the next page location trap, not 24 inches.
        Thanks to Dave Kemper and Bjarni Ingi Gislason for help tracking
diff --git a/tmac/tests/e_footnotes_work_with_columns.sh 
b/tmac/tests/e_footnotes_work_with_columns.sh
new file mode 100755
index 0000000..ab195a7
--- /dev/null
+++ b/tmac/tests/e_footnotes_work_with_columns.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 #58736.
+#
+# Returning to single columnation shouldn't break if footnotes are used.
+
+EXAMPLE=\
+'foo
+.(f
+footnote
+.)f
+.2c
+bar
+.bc
+baz
+.1c
+qux'
+
+test -n "$(echo "$EXAMPLE" \
+    | "$groff" -Tascii -P-cbou -me \
+    | sed -n '/foo/{N;/bar \+baz/{N;/qux/p}}')"
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 5f49274..5728ce0 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -178,6 +178,7 @@ tmac_TESTS = \
   tmac/tests/doc_do-not-loop-infinitely-when-shortening-headers.sh \
   tmac/tests/doc_smoke-test.sh \
   tmac/tests/e_columns-work-on-long-pages.sh \
+  tmac/tests/e_footnotes_work_with_columns.sh \
   tmac/tests/s_IP-indents-using-paragraph-type-size.sh \
   tmac/tests/s_IP-respects-inter-sentence-space-in-tags.sh \
   tmac/tests/s_PN-works.sh \



reply via email to

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