diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2024-10-19 14:25:00 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2024-10-19 14:25:00 +0000 |
commit | e01d39a6986f9980cf72d2d765ad3d704b7bcbef (patch) | |
tree | 648aad7600201a35b432ce3862b31ad38809e240 | |
parent | 6a81d56461702fc040c9a6f280808c98c23d686d (diff) |
dvipdfm-x: update tests
git-svn-id: svn://tug.org/texlive/trunk@72593 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 7 | ||||
-rwxr-xr-x | Build/source/texk/dvipdfm-x/dvipdfmx-upjf.test | 2 | ||||
-rwxr-xr-x | Build/source/texk/dvipdfm-x/dvipdfmx-upjf2.test | 31 | ||||
-rwxr-xr-x | Build/source/texk/dvipdfm-x/dvipdfmx-upjf3.test | 47 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/tests/Makefile_upjf | 2 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/tests/upjf-hara.map | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/tests/upjf-ipa.map | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/tests/upjf-noto.map | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/tests/upjf.map | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/tests/upjf.tex | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/Makefile.am | 2 | ||||
-rwxr-xr-x | Build/source/texk/dvipsk/uptex-upjf2.test | 2 | ||||
-rwxr-xr-x | Build/source/texk/web2c/euptexdir/euptex-prim.test | 4 | ||||
-rwxr-xr-x | Build/source/texk/web2c/uptexdir/uptex-prim.test | 4 | ||||
-rwxr-xr-x | Build/source/texk/web2c/xetexdir/xetex-ctrlsym.test | 13 |
15 files changed, 92 insertions, 42 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index a98d25e242b..632b5a1e8b1 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,10 @@ +2024-10-19 TANAKA Takuji <ttk@t-lab.opal.ne.jp> + + * dvipdfmx-upjf{,2,3}.test, tests/upjf.tex, + tests/upjf{,-{hara,ipa,noto}}.map, tests/Makefike_upjf: + Update tests. Search system texmf for tfm/otf fonts + if kpathsearch is installed in the system. + 2024-09-22 TANAKA Takuji <ttk@t-lab.opal.ne.jp> * tfm.c: More strict check to interpret OFM FONTDIR diff --git a/Build/source/texk/dvipdfm-x/dvipdfmx-upjf.test b/Build/source/texk/dvipdfm-x/dvipdfmx-upjf.test index a543d9bbdb1..46e734999d5 100755 --- a/Build/source/texk/dvipdfm-x/dvipdfmx-upjf.test +++ b/Build/source/texk/dvipdfm-x/dvipdfmx-upjf.test @@ -85,6 +85,8 @@ echo "*** dvipdfmx: test for upjf1_omit2.pdf" && echo \ cmp ./upjf1_full.pdf ./upjf1_omit2.pdf || failed="$failed dvipdfmx-upjf1-cmp2" +rm -f upjf-r.ofm upjv-r.ofm + test -z "$failed" && exit 0 echo diff --git a/Build/source/texk/dvipdfm-x/dvipdfmx-upjf2.test b/Build/source/texk/dvipdfm-x/dvipdfmx-upjf2.test index 6c2229ec2cc..eebbf191c37 100755 --- a/Build/source/texk/dvipdfm-x/dvipdfmx-upjf2.test +++ b/Build/source/texk/dvipdfm-x/dvipdfmx-upjf2.test @@ -9,30 +9,45 @@ ExeExt=${ExeExt:-} _kpsewhich=$KpsDir/kpsewhich$ExeExt _xdvipdfmx=$BinDir/xdvipdfmx$ExeExt +if type kpsewhich > /dev/null 2>&1; then + otfpath=".//;"`kpsewhich -show-path='opentype fonts'` + otfpath=`echo $otfpath | sed -e 's,!!,,g'` +fi + TEXMFCNF=$srcdir/../kpathsea TFMFONTS=".;$srcdir/tests;$srcdir/data" T1FONTS="$srcdir/tests;$srcdir/data" TEXFONTMAPS="$srcdir/tests;$srcdir/data" DVIPDFMXINPUTS="$srcdir/tests;$srcdir/data" TEXPICTS=$srcdir/tests -TEXFONTS=".;$srcdir/tests" +TEXFONTS="./tmp001;$srcdir/tests" SOURCE_DATE_EPOCH=1588474800 export TEXMFCNF TFMFONTS T1FONTS TEXFONTMAPS DVIPDFMXINPUTS TEXPICTS TEXFONTS SOURCE_DATE_EPOCH +if type kpsewhich > /dev/null 2>&1; then + echo $otfpath +else + otfpath=".//;"`$_kpsewhich -show-path='opentype fonts'` + echo $otfpath +fi +OPENTYPEFONTS=`$_kpsewhich "--cnf-line=OPENTYPEFONTS=$otfpath" -show-path='opentype fonts'` +export OPENTYPEFONTS +echo "OPENTYPEFONTS::" $OPENTYPEFONTS + failed= +test -d tmp001 || mkdir -p tmp001 + ##### following tests require HaranoAji fonts ##### -$_kpsewhich HaranoAjiMincho-Regular.otf -otfpath=`$_kpsewhich HaranoAjiMincho-Regular.otf` || exit 77 -OPENTYPEFONTS=`echo $otfpath | sed -e 's,HaranoAjiMincho-Regular\.otf,,' -e 's,/fonts/opentype/.*$,/fonts/opentype//,'` -export OPENTYPEFONTS +$_kpsewhich HaranoAjiMincho-Regular.otf || exit 77 +$_kpsewhich HaranoAjiGothic-Normal.otf || exit 77 -rm -f upjf.vf upjv.vf upjf-r.ofm upjv-r.ofm +rm -f ./tmp001/upjf.vf ./tmp001/upjv.vf echo "*** dvipdfmx: test for upjf2_full-hara.pdf" && echo \ - && cp $srcdir/tests/upjf2_full.vf ./upjf.vf \ - && cp $srcdir/tests/upjv2_full.vf ./upjv.vf \ + && cp $srcdir/tests/upjf2_full.vf ./tmp001/upjf.vf \ + && cp $srcdir/tests/upjv2_full.vf ./tmp001/upjv.vf \ && $_xdvipdfmx --dvipdfmx -vv --pdfm-str-utf8 -f upjf-hara.map -o upjf2.pdf $srcdir/tests/upjf2.dvi \ && mv ./upjf2.pdf ./upjf2_full-hara.pdf \ && echo && echo "dvipdfmx-upjf2-vf_full-hara tests OK" && echo \ diff --git a/Build/source/texk/dvipdfm-x/dvipdfmx-upjf3.test b/Build/source/texk/dvipdfm-x/dvipdfmx-upjf3.test index f721a070727..aa3a409668c 100755 --- a/Build/source/texk/dvipdfm-x/dvipdfmx-upjf3.test +++ b/Build/source/texk/dvipdfm-x/dvipdfmx-upjf3.test @@ -9,35 +9,54 @@ ExeExt=${ExeExt:-} _kpsewhich=$KpsDir/kpsewhich$ExeExt _xdvipdfmx=$BinDir/xdvipdfmx$ExeExt +if type kpsewhich > /dev/null 2>&1; then + otfpath=".//;"`kpsewhich -show-path='opentype fonts'` + otfpath=`echo $otfpath | sed -e 's,!!,,g'` +fi + TEXMFCNF=$srcdir/../kpathsea TFMFONTS=".;$srcdir/tests;$srcdir/data" T1FONTS="$srcdir/tests;$srcdir/data" TEXFONTMAPS="$srcdir/tests;$srcdir/data" DVIPDFMXINPUTS="$srcdir/tests;$srcdir/data" TEXPICTS=$srcdir/tests -TEXFONTS=".;$srcdir/tests" +TEXFONTS="./tmp002;$srcdir/tests" SOURCE_DATE_EPOCH=1588474800 export TEXMFCNF TFMFONTS T1FONTS TEXFONTMAPS DVIPDFMXINPUTS TEXPICTS TEXFONTS SOURCE_DATE_EPOCH +if type kpsewhich > /dev/null 2>&1; then + echo $otfpath +else + otfpath=".//;"`$_kpsewhich -show-path='opentype fonts'` + echo $otfpath +fi +OPENTYPEFONTS=`$_kpsewhich "--cnf-line=OPENTYPEFONTS=$otfpath" -show-path='opentype fonts'` +export OPENTYPEFONTS +echo "OPENTYPEFONTS::" $OPENTYPEFONTS + +TTFONTS=".//" +echo $TTFONTS +export TTFONTS + failed= +test -d tmp002 || mkdir -p tmp002 + ##### following tests require HaranoAji fonts and Noto Hentaigana font ##### -$_kpsewhich HaranoAjiMincho-Regular.otf -otfpath=`$_kpsewhich HaranoAjiMincho-Regular.otf` || exit 77 -OPENTYPEFONTS=`echo $otfpath | sed -e 's,HaranoAjiMincho-Regular\.otf,,' -e 's,/fonts/opentype/.*$,/fonts/opentype//,'` -export OPENTYPEFONTS +$_kpsewhich HaranoAjiMincho-Regular.otf || exit 77 +$_kpsewhich HaranoAjiGothic-Normal.otf || exit 77 -$_kpsewhich NotoSerifHentaigana-Regular.ttf -ttfpath=`$_kpsewhich NotoSerifHentaigana-Regular.ttf` || exit 77 -TTFONTS=`echo $ttfpath | sed -e 's,NotoSerifHentaigana-Regular\.ttf,,' -e 's,/fonts/truetype/.*$,/fonts/truetype//,'` -export TTFONTS +#$_kpsewhich NotoSerifHentaigana-Regular.ttf +#ttfpath=`$_kpsewhich NotoSerifHentaigana-Regular.ttf` || exit 77 +#TTFONTS=`echo $ttfpath | sed -e 's,NotoSerifHentaigana-Regular\.ttf,,' -e 's,/fonts/truetype/.*$,/fonts/truetype//,'` +#export TTFONTS -rm -f upjf.vf upjv.vf upjf-r.ofm upjv-r.ofm upjf-g.ofm upjv-g.ofm +rm -f ./tmp002/upjf.vf ./tmp002/upjv.vf echo "*** dvipdfmx: test for upjf3_full-noto.pdf" && echo \ - && cp $srcdir/tests/upjf3_full.vf ./upjf.vf \ - && cp $srcdir/tests/upjv3_full.vf ./upjv.vf \ + && cp $srcdir/tests/upjf3_full.vf ./tmp002/upjf.vf \ + && cp $srcdir/tests/upjv3_full.vf ./tmp002/upjv.vf \ && $_xdvipdfmx --dvipdfmx -vv --pdfm-str-utf8 -f upjf-noto.map -o upjf3.pdf $srcdir/tests/upjf3.dvi \ && mv ./upjf3.pdf ./upjf3_full-noto.pdf \ && echo && echo "dvipdfmx-upjf3-vf_full-noto tests OK" && echo \ @@ -48,8 +67,8 @@ echo "*** dvipdfmx: test for upjf3_full-noto.pdf" && echo \ $_kpsewhich ipamjm.ttf || exit 77 echo "*** dvipdfmx: test for upjf3_full-ipa.pdf" && echo \ - && cp $srcdir/tests/upjf4_full.vf ./upjf.vf \ - && cp $srcdir/tests/upjv4_full.vf ./upjv.vf \ + && cp $srcdir/tests/upjf4_full.vf ./tmp002/upjf.vf \ + && cp $srcdir/tests/upjv4_full.vf ./tmp002/upjv.vf \ && $_xdvipdfmx --dvipdfmx -vv --pdfm-str-utf8 -f upjf-ipa.map -o upjf3.pdf $srcdir/tests/upjf3.dvi \ && mv ./upjf3.pdf ./upjf3_full-ipa.pdf \ && echo && echo "dvipdfmx-upjf3-vf_full-ipa tests OK" && echo \ diff --git a/Build/source/texk/dvipdfm-x/tests/Makefile_upjf b/Build/source/texk/dvipdfm-x/tests/Makefile_upjf index 63067169cfc..6fe66638e19 100644 --- a/Build/source/texk/dvipdfm-x/tests/Makefile_upjf +++ b/Build/source/texk/dvipdfm-x/tests/Makefile_upjf @@ -55,12 +55,14 @@ upjf2_full.vf: upjf2_full.zvp0 upjv2_full.vf: upjv2_full.zvp0 jfmutil zvp02vf upjv2_full.zvp0 +# test for hentaigana with noto font upjf3_full.vf: upjf3_full.zvp0 jfmutil zvp02vf upjf3_full.zvp0 upjv3_full.vf: upjv3_full.zvp0 jfmutil zvp02vf upjv3_full.zvp0 +# test for hentaigana with IPA MJ Mincho upjf4_full.vf: upjf4_full.zvp0 jfmutil zvp02vf upjf4_full.zvp0 diff --git a/Build/source/texk/dvipdfm-x/tests/upjf-hara.map b/Build/source/texk/dvipdfm-x/tests/upjf-hara.map index f83c1a1ff75..61b3912ec43 100644 --- a/Build/source/texk/dvipdfm-x/tests/upjf-hara.map +++ b/Build/source/texk/dvipdfm-x/tests/upjf-hara.map @@ -1,8 +1,8 @@ upjf-r UPJF-UTF16-H HaranoAjiMincho-Regular.otf -upjf-g UPJF-UTF16-H HaranoAjiGothic-Regular.otf +upjf-g UPJF-UTF16-H HaranoAjiGothic-Normal.otf upjf-c Identity-H HaranoAjiMincho-Regular.otf upjv-r UPJF-UTF16-V HaranoAjiMincho-Regular.otf -upjv-g UPJF-UTF16-V HaranoAjiGothic-Regular.otf +upjv-g UPJF-UTF16-V HaranoAjiGothic-Normal.otf upjv-c Identity-V HaranoAjiMincho-Regular.otf %upjf-r UniJIS-UTF16-H !Ryumin-Light diff --git a/Build/source/texk/dvipdfm-x/tests/upjf-ipa.map b/Build/source/texk/dvipdfm-x/tests/upjf-ipa.map index 6ccbfa97d3b..0094d470ba7 100644 --- a/Build/source/texk/dvipdfm-x/tests/upjf-ipa.map +++ b/Build/source/texk/dvipdfm-x/tests/upjf-ipa.map @@ -1,10 +1,10 @@ upjf-r unicode ipamjm.ttf -upjf-g unicode HaranoAjiGothic-Regular.otf +upjf-g unicode HaranoAjiGothic-Normal.otf upjf-c Identity-H HaranoAjiMincho-Regular.otf upjf-hu unicode ipamjm.ttf upjf-hi Identity-H ipamjm.ttf upjv-r unicode ipamjm.ttf -w 1 -upjv-g unicode HaranoAjiGothic-Regular.otf -w 1 +upjv-g unicode HaranoAjiGothic-Normal.otf -w 1 upjv-c Identity-V HaranoAjiMincho-Regular.otf upjv-hu unicode ipamjm.ttf -w 1 upjv-hi Identity-V ipamjm.ttf diff --git a/Build/source/texk/dvipdfm-x/tests/upjf-noto.map b/Build/source/texk/dvipdfm-x/tests/upjf-noto.map index ec9700a7f4d..965f6fdd312 100644 --- a/Build/source/texk/dvipdfm-x/tests/upjf-noto.map +++ b/Build/source/texk/dvipdfm-x/tests/upjf-noto.map @@ -1,10 +1,10 @@ upjf-r unicode HaranoAjiMincho-Regular.otf -upjf-g unicode HaranoAjiGothic-Regular.otf +upjf-g unicode HaranoAjiGothic-Normal.otf upjf-c Identity-H HaranoAjiMincho-Regular.otf upjf-hu unicode NotoSerifHentaigana-Regular.ttf upjf-hi Identity-H NotoSerifHentaigana-Regular.ttf upjv-r unicode HaranoAjiMincho-Regular.otf -w 1 -upjv-g unicode HaranoAjiGothic-Regular.otf -w 1 +upjv-g unicode HaranoAjiGothic-Normal.otf -w 1 upjv-c Identity-V HaranoAjiMincho-Regular.otf upjv-hu unicode NotoSerifHentaigana-Regular.ttf -w 1 upjv-hi Identity-V NotoSerifHentaigana-Regular.ttf diff --git a/Build/source/texk/dvipdfm-x/tests/upjf.map b/Build/source/texk/dvipdfm-x/tests/upjf.map index 355e4d713ca..0242ccc3e6c 100644 --- a/Build/source/texk/dvipdfm-x/tests/upjf.map +++ b/Build/source/texk/dvipdfm-x/tests/upjf.map @@ -1,8 +1,8 @@ %upjf-r UniJIS-UTF16-H HaranoAjiMincho-Regular.otf -%upjf-g UniJIS-UTF16-H HaranoAjiGothic-Regular.otf +%upjf-g UniJIS-UTF16-H HaranoAjiGothic-Normal.otf %upjf-c Identity-H HaranoAjiMincho-Regular.otf %upjv-r UniJIS-UTF16-V HaranoAjiMincho-Regular.otf -%upjv-g UniJIS-UTF16-V HaranoAjiGothic-Regular.otf +%upjv-g UniJIS-UTF16-V HaranoAjiGothic-Normal.otf %upjv-c Identity-V HaranoAjiMincho-Regular.otf %upjf-r UniJIS-UTF16-H !Ryumin-Light diff --git a/Build/source/texk/dvipdfm-x/tests/upjf.tex b/Build/source/texk/dvipdfm-x/tests/upjf.tex index 493e4b23d8c..07392aadb2c 100644 --- a/Build/source/texk/dvipdfm-x/tests/upjf.tex +++ b/Build/source/texk/dvipdfm-x/tests/upjf.tex @@ -7,9 +7,9 @@ % for dvipdfmx %\AtBeginDvi{\special{pdf:mapline upjf-r UniJIS-UTF16-H HaranoAjiMincho-Regular.otf}} -%\AtBeginDvi{\special{pdf:mapline upjf-g UniJIS-UTF16-H HaranoAjiGothic-Regular.otf}} +%\AtBeginDvi{\special{pdf:mapline upjf-g UniJIS-UTF16-H HaranoAjiGothic-Normal.otf}} %\AtBeginDvi{\special{pdf:mapline upjv-r UniJIS-UTF16-V HaranoAjiMincho-Regular.otf}} -%\AtBeginDvi{\special{pdf:mapline upjv-g UniJIS-UTF16-V HaranoAjiGothic-Regular.otf}} +%\AtBeginDvi{\special{pdf:mapline upjv-g UniJIS-UTF16-V HaranoAjiGothic-Normal.otf}} %\AtBeginDvi{\special{pdf:mapline upjf-r UniJIS-UTF16-H !Ryumin-Light}} %\AtBeginDvi{\special{pdf:mapline upjf-g UniJIS-UTF16-H !GothicBBB-Medium}} %\AtBeginDvi{\special{pdf:mapline upjv-r UniJIS-UTF16-V !Ryumin-Light}} diff --git a/Build/source/texk/dvipsk/Makefile.am b/Build/source/texk/dvipsk/Makefile.am index c85f820d9aa..4720bd121c6 100644 --- a/Build/source/texk/dvipsk/Makefile.am +++ b/Build/source/texk/dvipsk/Makefile.am @@ -171,7 +171,7 @@ DISTCLEANFILES += eepic-nan.ps EXTRA_DIST += testdata/pfbincl.eps testdata/pfbincl.tex testdata/pfbincl.xdv testdata/pfbincl.xps DISTCLEANFILES += pfbincl.ps ## quotecmd-test.pl -EXTRA_DIST += testdata/quotecmd.dvi testdata/quotecmd.tex +EXTRA_DIST += testdata/quotecmd.dvi testdata/quotecmd.tex DISTCLEANFILES += *badnews* ## same-name.test DISTCLEANFILES += same-name.out diff --git a/Build/source/texk/dvipsk/uptex-upjf2.test b/Build/source/texk/dvipsk/uptex-upjf2.test index 944f68d56ff..1c7f23c7ae0 100755 --- a/Build/source/texk/dvipsk/uptex-upjf2.test +++ b/Build/source/texk/dvipsk/uptex-upjf2.test @@ -11,8 +11,6 @@ TEXFONTS="./tmp001;$srcdir/testdata" SOURCE_DATE_EPOCH=1588474800 export TEXFONTS SOURCE_DATE_EPOCH -rm -f upjf-g.ofm upjv-g.ofm upjf-r.ofm upjv-r.ofm - rc=0 test -d tmp001 || mkdir -p tmp001 diff --git a/Build/source/texk/web2c/euptexdir/euptex-prim.test b/Build/source/texk/web2c/euptexdir/euptex-prim.test index 5ec6e09d151..5612be019a2 100755 --- a/Build/source/texk/web2c/euptexdir/euptex-prim.test +++ b/Build/source/texk/web2c/euptexdir/euptex-prim.test @@ -17,8 +17,10 @@ TEXFORMATS=.; export TEXFORMATS rm -f eup-prim.* $LN_S $srcdir/euptexdir/tests/eup-prim.tex ./eup-prim.tex -if test ! -f ./eup-basic.fmt; then +if test ! -f ./eup-basic.tex; then cp $srcdir/tests/dump-basic.tex ./eup-basic.tex +fi +if test ! -f ./eup-basic.fmt; then $_euptex -ini -etex eup-basic || exit 1 fi diff --git a/Build/source/texk/web2c/uptexdir/uptex-prim.test b/Build/source/texk/web2c/uptexdir/uptex-prim.test index ee07787e80c..88264209008 100755 --- a/Build/source/texk/web2c/uptexdir/uptex-prim.test +++ b/Build/source/texk/web2c/uptexdir/uptex-prim.test @@ -17,8 +17,10 @@ TEXFORMATS=.; export TEXFORMATS rm -f up-prim.* $LN_S $srcdir/uptexdir/tests/up-prim.tex ./up-prim.tex -if test ! -f ./up-basic.fmt; then +if test ! -f ./up-basic.tex; then cp $srcdir/tests/dump-basic.tex ./up-basic.tex +fi +if test ! -f ./up-basic.fmt; then $_uptex -ini up-basic || exit 1 fi diff --git a/Build/source/texk/web2c/xetexdir/xetex-ctrlsym.test b/Build/source/texk/web2c/xetexdir/xetex-ctrlsym.test index 5583e943553..c9cd23a06c8 100755 --- a/Build/source/texk/web2c/xetexdir/xetex-ctrlsym.test +++ b/Build/source/texk/web2c/xetexdir/xetex-ctrlsym.test @@ -16,11 +16,14 @@ TEXFORMATS=.; export TEXFORMATS rm -f xe-ctrlsym.tex $LN_S $srcdir/xetexdir/tests/ctrlsym.tex ./xe-ctrlsym.tex -#exit 77 - -$_xetex -ini -etex xe-ctrlsym || exit 1 - -$_xetex -etex -fmt=xe-ctrlsym xe-ctrlsym || exit 2 +if test ! -f ./xe-basic.tex; then + cp $srcdir/tests/dump-basic.tex ./xe-basic.tex +fi +if test ! -f ./xe-basic.fmt; then + $_xetex -ini -etex xe-basic || exit 1 +fi + +$_xetex -etex -fmt=xe-basic xe-ctrlsym || exit 2 sed 1d xe-ctrlsym.log >xe-ctrlsym.out |