groff-commit
[Top][All Lists]
Advanced

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

[groff] 12/19: [ms]: Regression-test Savannah #62686.


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

gbranden pushed a commit to branch master
in repository groff.

commit 8fb3bbb661be6285d99afa93ed50acb494f7377a
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Jul 6 12:30:52 2022 -0500

    [ms]: Regression-test Savannah #62686.
    
    * tmac/tests/s_mark-column-start-correctly.sh: Do it.
    * tmac/tmac.am (tmac_TESTS): Run test.
    
    Test fails at this commit.
---
 ChangeLog                                   |  7 ++++++
 tmac/tests/s_mark-column-start-correctly.sh | 38 +++++++++++++++++++++++++++++
 tmac/tmac.am                                |  1 +
 3 files changed, 46 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 5fe6832f..9272664e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-07-06  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [ms]: Regression-test Savannah #62686.
+
+       * tmac/tests/s_mark-column-start-correctly.sh: Do it.
+       * tmac/tmac.am (tmac_TESTS): Run test.
+
 2022-07-06  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/s.tmac (IX): Drop.
diff --git a/tmac/tests/s_mark-column-start-correctly.sh 
b/tmac/tests/s_mark-column-start-correctly.sh
new file mode 100755
index 00000000..b2884121
--- /dev/null
+++ b/tmac/tests/s_mark-column-start-correctly.sh
@@ -0,0 +1,38 @@
+#!/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 #62686.
+
+input='.pl 15v
+.2C
+.PP
+Sed ut perspiciatis, unde omnis iste natus error sit voluptatem
+accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab
+illo inventore veritatis et quasi architecto beatae vitae dicta sunt,
+explicabo.
+'
+
+output=$(printf '%s\n' "$input" | "$groff" -Tascii -P-cbou -ms)
+
+echo "$output" | grep -Eq 'Sed +ut +perspiciatis, +sit +voluptatem'
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 704c2f15..6ef0fd7f 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_mark-column-start-correctly.sh \
   tmac/tests/s_rejects-too-short-page-lengths.sh
 TESTS += $(tmac_TESTS)
 EXTRA_DIST += $(tmac_TESTS)



reply via email to

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