[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/06: Add regression test for Savannah #60874.
From: |
G. Branden Robinson |
Subject: |
[groff] 01/06: Add regression test for Savannah #60874. |
Date: |
Sat, 3 Jul 2021 10:51:16 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit ccaf475d42d98090b308e5540294c557e1330e7e
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Jul 3 15:34:05 2021 +1000
Add regression test for Savannah #60874.
* src/roff/groff/tests/initialization_is_quiet.sh: Test it.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 7 +++++
src/roff/groff/groff.am | 1 +
src/roff/groff/tests/initialization_is_quiet.sh | 38 +++++++++++++++++++++++++
3 files changed, 46 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index cfbc1a2..6627325 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-07-03 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ Add regression test for Savannah #60874.
+
+ * src/roff/groff/tests/initialization_is_quiet.sh: Test it.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2021-07-02 G. Branden Robinson <g.branden.robinson@gmail.com>
Integrate Italian localization.
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index e24d336..3174964 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -40,6 +40,7 @@ groff_TESTS = \
src/roff/groff/tests/do_not_loop_infinitely_when_breaking_cjk.sh \
src/roff/groff/tests/dot-cp_register_works.sh \
src/roff/groff/tests/dot-nm_register_works.sh \
+ src/roff/groff/tests/initialization_is_quiet.sh \
src/roff/groff/tests/localization_works.sh \
src/roff/groff/tests/msoquiet_works.sh \
src/roff/groff/tests/on_latin1_device_oq_is_0x27.sh \
diff --git a/src/roff/groff/tests/initialization_is_quiet.sh
b/src/roff/groff/tests/initialization_is_quiet.sh
new file mode 100755
index 0000000..eb71713
--- /dev/null
+++ b/src/roff/groff/tests/initialization_is_quiet.sh
@@ -0,0 +1,38 @@
+#!/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/>.
+#
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+set -e
+
+# Regression-test Savannah #60874.
+#
+# groff should start up in any supported locale, in compatibility mode
+# or not, without producing diagnostics.
+
+for COMPAT in "" -C
+do
+ for LOCALE in cs de en fr it ja sv zh
+ do
+ echo "testing LANG=$LOCALE; COMPAT=\"$COMPAT\""
+ OUTPUT=$(LANG=$LOCALE "$groff" -ww "$COMPAT" < /dev/null 2>&1)
+ test -z "$OUTPUT"
+ done
+done
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/06: Add regression test for Savannah #60874.,
G. Branden Robinson <=