[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 16/23: [tests]: Avoid failures when $GROFF_ENCODING set.
From: |
G. Branden Robinson |
Subject: |
[groff] 16/23: [tests]: Avoid failures when $GROFF_ENCODING set. |
Date: |
Thu, 23 Feb 2023 11:10:24 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit b2157f22b5b2a3abb8f5a972833e9335752cb09b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Feb 22 13:00:30 2023 -0600
[tests]: Avoid failures when $GROFF_ENCODING set.
* src/roff/groff/tests/ab_works.sh:
* src/roff/groff/tests/handle_special_input_code_points.sh:
* src/roff/groff/tests/initialization_is_quiet.sh:
* src/roff/groff/tests/msoquiet_works.sh:
* src/roff/groff/tests/soquiet_works.sh:
* tmac/tests/an-ext_MR-works.sh:
* tmac/tests/an_MR-works.sh:
* tmac/tests/an_font-remapping-does-not-affect-titles.sh: Unset
$GROFF_ENCODING before running test because preconv(1) confounds these
tests.
Thanks to Alexis for reporting this problem.
---
ChangeLog | 17 +++++++++++++++++
src/roff/groff/tests/ab_works.sh | 3 +++
.../groff/tests/handle_special_input_code_points.sh | 3 +++
src/roff/groff/tests/initialization_is_quiet.sh | 3 +++
src/roff/groff/tests/msoquiet_works.sh | 3 +++
src/roff/groff/tests/soquiet_works.sh | 3 +++
tmac/tests/an-ext_MR-works.sh | 3 +++
tmac/tests/an_MR-works.sh | 3 +++
tmac/tests/an_font-remapping-does-not-affect-titles.sh | 3 +++
9 files changed, 41 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 6602e3eb7..51d31c8f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2023-02-22 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [tests]: Prevent failures when $GROFF_ENCODING is set.
+
+ * src/roff/groff/tests/ab_works.sh:
+ * src/roff/groff/tests/handle_special_input_code_points.sh:
+ * src/roff/groff/tests/initialization_is_quiet.sh:
+ * src/roff/groff/tests/msoquiet_works.sh:
+ * src/roff/groff/tests/soquiet_works.sh:
+ * tmac/tests/an-ext_MR-works.sh:
+ * tmac/tests/an_MR-works.sh:
+ * tmac/tests/an_font-remapping-does-not-affect-titles.sh: Unset
+ $GROFF_ENCODING before running test because preconv(1) confounds
+ these tests.
+
+ Thanks to Alexis for reporting this problem.
+
2023-02-21 G. Branden Robinson <g.branden.robinson@gmail.com>
[ms]: Rename test.
diff --git a/src/roff/groff/tests/ab_works.sh b/src/roff/groff/tests/ab_works.sh
index a1ff78327..589387dcc 100755
--- a/src/roff/groff/tests/ab_works.sh
+++ b/src/roff/groff/tests/ab_works.sh
@@ -25,6 +25,9 @@ groff="${abs_top_builddir:-.}/test-groff"
# We don't test the X11 devices because groff launches an X client,
# which has to be killed. Using "-z" to avoid this masks the bug.
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
for d in ascii cp1047 dvi html latin1 lbp lj4 pdf ps utf8
do
echo "verifying exit status of .ab request using $d device" >&2
diff --git a/src/roff/groff/tests/handle_special_input_code_points.sh
b/src/roff/groff/tests/handle_special_input_code_points.sh
index 5a064a2af..1e4f9a476 100755
--- a/src/roff/groff/tests/handle_special_input_code_points.sh
+++ b/src/roff/groff/tests/handle_special_input_code_points.sh
@@ -22,6 +22,9 @@ groff="${abs_top_builddir:-.}/test-groff"
# Regression-test Savannah #58962.
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
input='.if "�"\~" .tm input no-break space matches \\~
.if "�"\%" .tm input soft hyphen matches \\%'
diff --git a/src/roff/groff/tests/initialization_is_quiet.sh
b/src/roff/groff/tests/initialization_is_quiet.sh
index c3ca6c081..ee3070bde 100755
--- a/src/roff/groff/tests/initialization_is_quiet.sh
+++ b/src/roff/groff/tests/initialization_is_quiet.sh
@@ -27,6 +27,9 @@ set -e
# groff should start up in any supported locale, in compatibility mode
# or not, without producing diagnostics.
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
for COMPAT in "" -C
do
for LOCALE in cs de en fr it ja sv zh
diff --git a/src/roff/groff/tests/msoquiet_works.sh
b/src/roff/groff/tests/msoquiet_works.sh
index c232a1bef..bb86427bd 100755
--- a/src/roff/groff/tests/msoquiet_works.sh
+++ b/src/roff/groff/tests/msoquiet_works.sh
@@ -22,6 +22,9 @@ groff="${abs_top_builddir:-.}/test-groff"
set -e
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
DOC='.msoquiet nonexistent'
OUTPUT=$(echo "$DOC" | "$groff" -Tascii 2>&1)
diff --git a/src/roff/groff/tests/soquiet_works.sh
b/src/roff/groff/tests/soquiet_works.sh
index 8e8d71e71..50112cfdc 100755
--- a/src/roff/groff/tests/soquiet_works.sh
+++ b/src/roff/groff/tests/soquiet_works.sh
@@ -22,6 +22,9 @@ groff="${abs_top_builddir:-.}/test-groff"
set -e
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
DOC='.soquiet nonexistent'
OUTPUT=$(echo "$DOC" | "$groff" -Tascii 2>&1)
diff --git a/tmac/tests/an-ext_MR-works.sh b/tmac/tests/an-ext_MR-works.sh
index c195b071b..471bbf2db 100755
--- a/tmac/tests/an-ext_MR-works.sh
+++ b/tmac/tests/an-ext_MR-works.sh
@@ -20,6 +20,9 @@
groff="${abs_top_builddir:-.}/test-groff"
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
fail=
wail () {
diff --git a/tmac/tests/an_MR-works.sh b/tmac/tests/an_MR-works.sh
index 2b561a805..56faae69c 100755
--- a/tmac/tests/an_MR-works.sh
+++ b/tmac/tests/an_MR-works.sh
@@ -20,6 +20,9 @@
groff="${abs_top_builddir:-.}/test-groff"
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
INPUT='.TH foo 1 2021-10-06 "groff test suite"
.SH Name
foo \\- a command with a very short name
diff --git a/tmac/tests/an_font-remapping-does-not-affect-titles.sh
b/tmac/tests/an_font-remapping-does-not-affect-titles.sh
index d7a663ae8..3332cc1ad 100755
--- a/tmac/tests/an_font-remapping-does-not-affect-titles.sh
+++ b/tmac/tests/an_font-remapping-does-not-affect-titles.sh
@@ -27,6 +27,9 @@ groff="${abs_top_builddir:-.}/test-groff"
# we want to ensure that font remapping for the headings doesn't affect
# page footers and headers.
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
input='.TH \\fIfoo\\fP 1 2021-10-04 "groff test suite"
.SH Name
foo \\- a command with a very short name
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 16/23: [tests]: Avoid failures when $GROFF_ENCODING set.,
G. Branden Robinson <=