[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 08/35: [tmac]: Avoid test failures on Solaris 11.
From: |
G. Branden Robinson |
Subject: |
[groff] 08/35: [tmac]: Avoid test failures on Solaris 11. |
Date: |
Tue, 10 Dec 2024 16:35:32 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 4f9c484dcc9f8a587c3d6bc4eac6de9561479bee
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Dec 6 23:47:18 2024 -0600
[tmac]: Avoid test failures on Solaris 11.
...arising from system tool limitations. See "PROBLEMS" file.
* tmac/tests/an_vertical-margins-are-correct.sh:
* tmac/tests/doc-old_vertical-margins-are-correct.sh:
* tmac/tests/doc_vertical-margins-are-correct.sh: Skip test if
the system lacks a grep conforming to POSIX Issue 4 (1994).
---
ChangeLog | 10 ++++++++++
tmac/tests/an_vertical-margins-are-correct.sh | 6 ++++++
tmac/tests/doc-old_vertical-margins-are-correct.sh | 6 ++++++
tmac/tests/doc_vertical-margins-are-correct.sh | 6 ++++++
4 files changed, 28 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 31821d7db..5436b213a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,16 @@
Fixes <https://savannah.gnu.org/bugs/?66537> thanks to
Bjarni Ingi Gislason for the report and solution.
+2024-12-06 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ Avoid test failures on Solaris 11 arising from system tool
+ limitations. See "PROBLEMS" file.
+
+ * tmac/tests/an_vertical-margins-are-correct.sh:
+ * tmac/tests/doc-old_vertical-margins-are-correct.sh:
+ * tmac/tests/doc_vertical-margins-are-correct.sh: Skip test if
+ the system lacks a grep conforming to POSIX Issue 4 (1994).
+
2024-12-06 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/roff/troff/env.cpp (do_error): Fix off-by-one error in
diff --git a/tmac/tests/an_vertical-margins-are-correct.sh
b/tmac/tests/an_vertical-margins-are-correct.sh
index 666ea3793..47945d048 100755
--- a/tmac/tests/an_vertical-margins-are-correct.sh
+++ b/tmac/tests/an_vertical-margins-are-correct.sh
@@ -20,6 +20,12 @@
groff="${abs_top_builddir:-.}/test-groff"
+if ! echo foobar | grep -Eqx foobar >/dev/null 2>&1
+then
+ echo "$0: grep command does not support -Eqx options; skipping" >&2
+ exit 77 # skip
+fi
+
fail=
wail () {
diff --git a/tmac/tests/doc-old_vertical-margins-are-correct.sh
b/tmac/tests/doc-old_vertical-margins-are-correct.sh
index 948f00fef..78f667f70 100755
--- a/tmac/tests/doc-old_vertical-margins-are-correct.sh
+++ b/tmac/tests/doc-old_vertical-margins-are-correct.sh
@@ -20,6 +20,12 @@
groff="${abs_top_builddir:-.}/test-groff"
+if ! echo foobar | grep -Eqx foobar >/dev/null 2>&1
+then
+ echo "$0: grep command does not support -Eqx options; skipping" >&2
+ exit 77 # skip
+fi
+
fail=
wail () {
diff --git a/tmac/tests/doc_vertical-margins-are-correct.sh
b/tmac/tests/doc_vertical-margins-are-correct.sh
index 00a27485a..21b9d3169 100755
--- a/tmac/tests/doc_vertical-margins-are-correct.sh
+++ b/tmac/tests/doc_vertical-margins-are-correct.sh
@@ -20,6 +20,12 @@
groff="${abs_top_builddir:-.}/test-groff"
+if ! echo foobar | grep -Eqx foobar >/dev/null 2>&1
+then
+ echo "$0: grep command does not support -Eqx options; skipping" >&2
+ exit 77 # skip
+fi
+
fail=
wail () {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 08/35: [tmac]: Avoid test failures on Solaris 11.,
G. Branden Robinson <=