[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 06/07: Add regression test for Savannah #57873.
From: |
G. Branden Robinson |
Subject: |
[groff] 06/07: Add regression test for Savannah #57873. |
Date: |
Tue, 29 Jun 2021 00:19:23 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit ee76f84c0ebb855b6a0bb8f6d6ed49520619b32d
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Jun 29 13:44:44 2021 +1000
Add regression test for Savannah #57873.
* src/utils/grog/tests/preserve-groff-options.sh: Test it.
* src/utils/grog/grog.am (grog_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 7 ++++++
src/utils/grog/grog.am | 1 +
src/utils/grog/tests/preserve-groff-options.sh | 30 ++++++++++++++++++++++++++
3 files changed, 38 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 2951e9c..207f4d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-06-29 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ Add regression test for Savannah #57873.
+
+ * src/utils/grog/tests/preserve-groff-options.sh: Test it.
+ * src/utils/grog/grog.am (grog_TESTS): Run test.
+
2021-06-28 G. Branden Robinson <g.branden.robinson@gmail.com>
[grog]: Refactor device (`-T` option) handling.
diff --git a/src/utils/grog/grog.am b/src/utils/grog/grog.am
index 6f393ca..8725bcf 100644
--- a/src/utils/grog/grog.am
+++ b/src/utils/grog/grog.am
@@ -34,6 +34,7 @@ grog: $(grog_srcdir)/grog.pl $(SH_DEPS_SED_SCRIPT)
grog_TESTS = \
src/utils/grog/tests/PF-does-not-start-pic-region.sh \
+ src/utils/grog/tests/preserve-groff-options.sh \
src/utils/grog/tests/smoke-test.sh
TESTS += $(grog_TESTS)
EXTRA_DIST += $(grog_TESTS)
diff --git a/src/utils/grog/tests/preserve-groff-options.sh
b/src/utils/grog/tests/preserve-groff-options.sh
new file mode 100755
index 0000000..3290798
--- /dev/null
+++ b/src/utils/grog/tests/preserve-groff-options.sh
@@ -0,0 +1,30 @@
+#!/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/>.
+#
+
+grog="${abs_top_builddir:-.}/grog"
+
+# Regression test Savannah #57873.
+#
+# Don't mangle groff options.
+
+echo | "$grog" -ww -fN -P-pa5 -ra5=0 \
+ | grep -Fqx 'groff -ww -fN -P-pa5 -ra5=0 -'
+
+# vim:set ai et sw=4 ts=4 tw=72:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 06/07: Add regression test for Savannah #57873.,
G. Branden Robinson <=