From 5c36594a38d86c3a2a32d24c00949f7eac5623da Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Fri, 13 Dec 2019 23:33:14 +0000 Subject: xetex creates xdv with -no-pdf option, not dvi git-svn-id: svn://tug.org/texlive/trunk@53122 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/ptexdir/zfmtcompress.test | 28 +++++++++++++++-------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/web2c/ptexdir/zfmtcompress.test b/Build/source/texk/web2c/ptexdir/zfmtcompress.test index b8f02bad520..49da1174f9b 100755 --- a/Build/source/texk/web2c/ptexdir/zfmtcompress.test +++ b/Build/source/texk/web2c/ptexdir/zfmtcompress.test @@ -1,8 +1,8 @@ #!/bin/sh -vx # $Id$ -# Public domain. Origginally written by Hironori Kitagawa, 2019. -# This test takes many hours to run, and also tests several engines, -# so it is not enabled. +# Public domain. Originally written by Hironori Kitagawa, 2019. +# This test is intended to be used in a suitable temporary directory +# after installing all engines. It should not be enabled in build stage. cat <<'EOF' > stress.tex \let\origdump=\dump\let\dump\relax @@ -39,11 +39,16 @@ EOF test0() { ENGINE=$1 echo $ENGINE - rm -f stress-$ENGINE.fmt test0.dvi &>/dev/null + rm -f stress-$ENGINE.fmt test0.dvi test0.xdv &>/dev/null $ENGINE -ini -etex -progname=$ENGINE -jobname=stress-$ENGINE stress &>/dev/null ls -l stress-$ENGINE.fmt - $ENGINE -fmt=./stress-$ENGINE.fmt test0.tex &>/dev/null - ls -l test0.dvi + if [[ $ENGINE = "xetex" ]]; then + $ENGINE -fmt=./stress-$ENGINE.fmt -no-pdf test0.tex &>/dev/null + ls -l test0.xdv + else + $ENGINE -fmt=./stress-$ENGINE.fmt test0.tex &>/dev/null + ls -l test0.dvi + fi } test0 tex @@ -71,11 +76,16 @@ EOF test1() { ENGINE=$1 echo $ENGINE - rm -f latex-$ENGINE.fmt test1.dvi &>/dev/null + rm -f latex-$ENGINE.fmt test1.dvi test1.xdv &>/dev/null $ENGINE -ini -etex -progname=latex-dev -jobname=latex-$ENGINE latex.ini &>/dev/null ls -l latex-$ENGINE.fmt - $ENGINE -fmt=./latex-$ENGINE.fmt test1.tex &>/dev/null - ls -l test1.dvi + if [[ $ENGINE = "xetex" ]]; then + $ENGINE -fmt=./latex-$ENGINE.fmt -no-pdf test1.tex &>/dev/null + ls -l test1.xdv + else + $ENGINE -fmt=./latex-$ENGINE.fmt test1.tex &>/dev/null + ls -l test1.dvi + fi } test1 etex -- cgit v1.2.3