[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 22/23: [ms]: Regression-test Savannah #66339.
From: |
G. Branden Robinson |
Subject: |
[groff] 22/23: [ms]: Regression-test Savannah #66339. |
Date: |
Wed, 16 Oct 2024 15:00:31 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit bc0103ddd08966578989d717f31cd1f273a9544f
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Oct 16 13:01:42 2024 -0500
[ms]: Regression-test Savannah #66339.
* tmac/tests/s_can-start-document-with-DS-call.sh: Do it.
* tmac/tmac.am (tmac_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 7 +++++
tmac/tests/s_can-start-document-with-DS-call.sh | 37 +++++++++++++++++++++++++
tmac/tmac.am | 1 +
3 files changed, 45 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index f180fdad2..5432724c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-10-16 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [ms]: Regression-test Savannah #66339.
+
+ * tmac/tests/s_can-start-document-with-DS-call.sh: Do it.
+ * tmac/tmac.am (tmac_TESTS): Run test.
+
2024-10-15 G. Branden Robinson <g.branden.robinson@gmail.com>
Rename some test scripts for clarity.
diff --git a/tmac/tests/s_can-start-document-with-DS-call.sh
b/tmac/tests/s_can-start-document-with-DS-call.sh
new file mode 100755
index 000000000..cdd17305c
--- /dev/null
+++ b/tmac/tests/s_can-start-document-with-DS-call.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# Copyright (C) 2024 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 #66339.
+#
+# Render a static display correctly if it begins the document.
+
+input='.
+.DS
+Hello, world! The type size is .s=\n(.s points.
+.DE
+.'
+
+output=$(printf "%s\n" "$input" | "$groff" -a -ms -T ps)
+echo "$output"
+echo "$output" | grep -Fq '.s=10 points'
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 09ff3c14e..a8c3390d6 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -240,6 +240,7 @@ tmac_TESTS = \
tmac/tests/s_TC-works-with-percent-in-custom-titles.sh \
tmac/tests/s_XA-literal-no-argument-suppresses-leader.sh \
tmac/tests/s_XA-reduces-line-length.sh \
+ tmac/tests/s_can-start-document-with-DS-call.sh \
tmac/tests/s_honor-MINGW-when-two-columns.sh \
tmac/tests/s_honor-page-break-after-display.sh \
tmac/tests/s_honor-page-break-in-text.sh \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 22/23: [ms]: Regression-test Savannah #66339.,
G. Branden Robinson <=