[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 16/19: [ms]: Regression-test Savannah #62688.
From: |
G. Branden Robinson |
Subject: |
[groff] 16/19: [ms]: Regression-test Savannah #62688. |
Date: |
Wed, 6 Jul 2022 15:45:44 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit bbb75b3c31acebc101e1673bdf1cb452c92350d9
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Jul 6 13:41:11 2022 -0500
[ms]: Regression-test Savannah #62688.
* tmac/tests/s_no-excess-space-around-displays.tmac: Do it.
* tmac/tmac.am (tmac_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 7 ++++
tmac/tests/s_no-excess-space-around-displays.tmac | 39 +++++++++++++++++++++++
tmac/tmac.am | 1 +
3 files changed, 47 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 451db540..6a680ffa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-07-06 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [ms]: Regression-test Savannah #62688.
+
+ * tmac/tests/s_no-excess-space-around-displays.tmac: Do it.
+ * tmac/tmac.am (tmac_TESTS): Run test.
+
2022-07-06 G. Branden Robinson <g.branden.robinson@gmail.com>
[ms]: Fix Savannah #62687.
diff --git a/tmac/tests/s_no-excess-space-around-displays.tmac
b/tmac/tests/s_no-excess-space-around-displays.tmac
new file mode 100755
index 00000000..a2193fe7
--- /dev/null
+++ b/tmac/tests/s_no-excess-space-around-displays.tmac
@@ -0,0 +1,39 @@
+#!/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 #62688.
+
+input='.pl 19v
+.LP
+This is my first paragraph.
+.LD
+This is my block display.
+.DE
+.LP
+This is my second paragraph.'
+
+output=$(printf '%s\n' "$input" | "$groff" -Tascii -P-cbou -ms \
+ | awk '{print NR, $0}')
+
+echo "$output" | grep -Fqx '11 This is my second paragraph.'
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index f3328d8d..dc5e8816 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -205,6 +205,7 @@ tmac_TESTS = \
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_no-excess-space-around-displays.tmac \
tmac/tests/s_rejects-too-short-page-lengths.sh
TESTS += $(tmac_TESTS)
EXTRA_DIST += $(tmac_TESTS)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 16/19: [ms]: Regression-test Savannah #62688.,
G. Branden Robinson <=