gbranden pushed a commit to branch master
in repository groff.
commit e7882ed3c7b2fc04d4d1ad430e0bffd977e12519
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jan 26 00:22:49 2026 -0600
[devpdf]: Make test script more flexible.
* font/devpdf/tests/check-default-foundry.sh.in: Die with "hard error"
if test script cannot locate the "Foundry" file. Skip remainder of
test (for fonts not in the PostScript Level 1/PDF "base 14") if the
"URW" section of the "Foundry" file is absent.
---
ChangeLog | 7 +++++++
font/devpdf/tests/check-default-foundry.sh.in | 15 +++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 35153bc6a..16335a31e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-01-26 G. Branden Robinson <[email protected]>
+
+ * font/devpdf/tests/check-default-foundry.sh.in: Die with "hard
+ error" if test script cannot locate the "Foundry" file. Skip
+ remainder of test (for fonts not in the PostScript Level 1/PDF
+ "base 14") if the "URW" section of the "Foundry" file is absent.
+
2026-01-25 G. Branden Robinson <[email protected]>
* m4/groff.m4 (GROFF_PERL): Update error messages. Refer to
diff --git a/font/devpdf/tests/check-default-foundry.sh.in
b/font/devpdf/tests/check-default-foundry.sh.in
index bd452759f..d7d725d49 100755
--- a/font/devpdf/tests/check-default-foundry.sh.in
+++ b/font/devpdf/tests/check-default-foundry.sh.in
@@ -90,6 +90,21 @@ then
exit 77 # skip
fi
+foundry="$devpdf_fontbuilddir"/Foundry
+
+if ! test -f "$foundry"
+then
+ echo "cannot locate Foundry file at $foundry" >&2
+ exit 99 # hard error
+fi
+
+if ! grep "BEGIN URW" "$foundry"
+then
+ echo "URW fonts not available; skipping check for any further" \
+ "fonts in the default foundry" >&2
+ exit 77 # skip
+fi
+
for f in $supplementary_fonts
do
printf "checking for font description %s...\n" "$f" >&2
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit