[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/09: [gropdf]: Revise tests to be foundry-focussed.
From: |
G. Branden Robinson |
Subject: |
[groff] 01/09: [gropdf]: Revise tests to be foundry-focussed. |
Date: |
Sat, 18 Feb 2023 18:00:39 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 38570563840748c7ae5a0a5c1514a9f0b1fdf91a
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Feb 18 01:37:28 2023 -0600
[gropdf]: Revise tests to be foundry-focussed.
* font/devpdf/tests/basic-fonts-present.sh: Stop trying to match font
descriptions in the "devps" directory with ones in "devpdf"; instead,
test whether "BuildFoundries" did its job. Test for font descriptions
corresponding to the full 35 PostScript Level 2 font repertoire, plus
groff's "EURO".
* font/devpdf/tests/urw-fonts-present.sh: Drop stale comment and rename
variable for better parallelism with the other test above.
Continues <https://savannah.gnu.org/bugs/?63808>. Thanks to Deri James
for the continued discussion.
---
ChangeLog | 16 ++++++++
font/devpdf/tests/basic-fonts-present.sh | 64 +++++++++++++++-----------------
font/devpdf/tests/urw-fonts-present.sh | 6 +--
3 files changed, 48 insertions(+), 38 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4b7cd2a16..af47ae616 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2023-02-18 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [gropdf]: Revise tests to be foundry-focussed.
+
+ * font/devpdf/tests/basic-fonts-present.sh: Stop trying to match
+ font descriptions in the "devps" directory with ones in
+ "devpdf"; instead, test whether "BuildFoundries" did its job.
+ Test for font descriptions corresponding to the full 35
+ PostScript Level 2 font repertoire, plus groff's "EURO".
+ * font/devpdf/tests/urw-fonts-present.sh: Drop stale comment and
+ rename variable for better parallelism with the other test
+ above.
+
+ Continues <https://savannah.gnu.org/bugs/?63808>. Thanks to
+ Deri James for the continued discussion.
+
2023-02-18 G. Branden Robinson <g.branden.robinson@gmail.com>
[man]: Tweak fix to Savannah #63768.
diff --git a/font/devpdf/tests/basic-fonts-present.sh
b/font/devpdf/tests/basic-fonts-present.sh
index a8dd05b82..1ddd83d0b 100755
--- a/font/devpdf/tests/basic-fonts-present.sh
+++ b/font/devpdf/tests/basic-fonts-present.sh
@@ -18,44 +18,27 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# Ensure that groff's PDF device has the copies it needs of PostScript
-# device font descriptions.
+# Ensure that groff's PDF device has font description files for the
+# default (unnamed) foundry's PostScript Level 2 base 35 fonts, plus
+# groff's EURO.
#
-# This is for the reduced-functionality configuration that occurs when
-# optional dependencies are not met; we require only font descriptions
-# of the PDF base 14 fonts (plus groff's EURO).
+# These font descriptions should be available in any gropdf
+# configuration because they can be copied from the devps font
+# descriptions even if the URW fonts are not available.
#
-# Another test script checks the fully armed gropdf configuration.
-
-# Locate directory containing the font descriptions for the PostScript
-# device.
-for srcroot in . .. ../..
-do
- # Look for a source file characteristic of the groff source tree.
- if ! [ -f "$srcroot"/ChangeLog.115 ]
- then
- continue
- fi
-
- d=$srcroot/font/devps
- if [ -d "$d" ]
- then
- devps_fontsrcdir=$d
- break
- fi
-done
-
-# If we can't find it, we can't test.
-if [ -z "$devps_fontsrcdir" ]
-then
- echo "$0: cannot locate font descriptions for 'ps' device;" \
- "skipping test" >&2
- exit 77 # skip
-fi
+# Another test script checks the "U" (URW) foundry.
devpdf_fontbuilddir="${abs_top_builddir:-.}"/font/devpdf
-psfonts='CB
+fonts='AB
+ABI
+AI
+AR
+BMB
+BMBI
+BMI
+BMR
+CB
CBI
CI
CR
@@ -63,17 +46,30 @@ EURO
HB
HBI
HI
+HNB
+HNBI
+HNI
+HNR
HR
+NB
+NBI
+NI
+NR
+PB
+PBI
+PI
+PR
S
TB
TBI
TI
TR
+ZCMI
ZD'
fail=
-for f in $psfonts
+for f in $fonts
do
printf "checking for font description %s...\n" "$f" >&2
if ! [ -f "$devpdf_fontbuilddir"/"$f" ]
diff --git a/font/devpdf/tests/urw-fonts-present.sh
b/font/devpdf/tests/urw-fonts-present.sh
index 67af0f967..9d4e514bf 100755
--- a/font/devpdf/tests/urw-fonts-present.sh
+++ b/font/devpdf/tests/urw-fonts-present.sh
@@ -22,9 +22,7 @@
devpdf_fontbuilddir="${abs_top_builddir:-.}"/font/devpdf
-# TODO: Scrape this list out of Foundry or Foundry.in. Not possible
-# with grep, likely a little tedious with sed.
-urwfonts='AB
+fonts='AB
ABI
AI
AR
@@ -62,7 +60,7 @@ ZD'
fail=
-for basefontname in $urwfonts
+for basefontname in $fonts
do
f=U-$basefontname
printf "checking for font description %s...\n" $f >&2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/09: [gropdf]: Revise tests to be foundry-focussed.,
G. Branden Robinson <=