groff-commit
[Top][All Lists]
Advanced

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

[groff] 14/19: [ms]: Regression-test Savannah #62687.


From: G. Branden Robinson
Subject: [groff] 14/19: [ms]: Regression-test Savannah #62687.
Date: Wed, 6 Jul 2022 15:45:44 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit aa91a451952c658791a738cbc40115efb25e9d85
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Jul 6 13:09:24 2022 -0500

    [ms]: Regression-test Savannah #62687.
    
    * tmac/tests/s_honor-MINGW-when-two-columns.sh: Do it.
    * tmac/tmac.am (tmac_TESTS): Run test.
    
    Test fails at this commit.
---
 ChangeLog                                    |  7 ++++++
 tmac/tests/s_honor-MINGW-when-two-columns.sh | 36 ++++++++++++++++++++++++++++
 tmac/tmac.am                                 |  1 +
 3 files changed, 44 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 37e51b68..5f0aa00e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-07-06  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [ms]: Regression-test Savannah #62687.
+
+       * tmac/tests/s_honor-MINGW-when-two-columns.sh: Do it.
+       * tmac/tmac.am (tmac_TESTS): Run test.
+
 2022-07-06  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [ms]: Fix Savannah #62686.
diff --git a/tmac/tests/s_honor-MINGW-when-two-columns.sh 
b/tmac/tests/s_honor-MINGW-when-two-columns.sh
new file mode 100755
index 00000000..0f4ca8d8
--- /dev/null
+++ b/tmac/tests/s_honor-MINGW-when-two-columns.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# Copyright (C) 2022 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 #62687.
+
+input='.nr MINGW 5n
+.pl 16v
+.2C
+.PP
+Sed ut perspiciatis, unde omnis iste natus error sit voluptatem
+accusantium doloremque laudantium, totam rem aperiam eaque ipsa,'
+
+output=$(printf '%s\n' "$input" | "$groff" -Tascii -P-cbou -ms)
+
+echo "$output" | grep -Eq 'Sed +ut +perspiciatis, {5}[a-z]'
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 6ef0fd7f..f3328d8d 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -203,6 +203,7 @@ tmac_TESTS = \
   tmac/tests/s_SH-resets-IP-indentation-amount.sh \
   tmac/tests/s_TC-works-with-percent-in-custom-titles.sh \
   tmac/tests/s_XA-literal-no-argument-suppresses-leader.sh \
+  tmac/tests/s_honor-MINGW-when-two-columns.sh \
   tmac/tests/s_mark-column-start-correctly.sh \
   tmac/tests/s_rejects-too-short-page-lengths.sh
 TESTS += $(tmac_TESTS)



reply via email to

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