Debian Codegraph @

texk/web2c/uptexdir/uptex-prim.test

raw
1 #! /bin/sh -vx
2 # Copyright 2024 Japanese TeX Development Community <[email protected]>
3 # You may freely use, modify and/or distribute this file.
4
5 BinDir=${BinDir:-.}
6 ExeExt=${ExeExt:-}
7 _uptex=$BinDir/uptex$ExeExt
8
9 LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
10
11 TEXMFCNF=$srcdir/../kpathsea;export TEXMFCNF
12 OFMFONTS=".;$srcdir/tests"; export OFMFONTS
13 TEXINPUTS=".;$srcdir/tests"; export TEXINPUTS
14 TEXFORMATS=.; export TEXFORMATS
15
16 # get same filename in log
17 rm -f up-prim.*
18 $LN_S $srcdir/uptexdir/tests/up-prim.tex ./up-prim.tex
19
20 if test ! -f ./up-basic.tex; then
21 cp $srcdir/tests/dump-basic.tex ./up-basic.tex
22 fi
23 if test ! -f ./up-basic.fmt; then
24 $_uptex -ini up-basic || exit 1
25 fi
26
27 $_uptex -fmt=up-basic -interaction=batchmode up-prim || :
28
29 sed 1d up-prim.log >up-prim.out
30
31 diff $srcdir/uptexdir/tests/up-prim.log up-prim.out || exit 3
32