Debian Codegraph @

texk/web2c/alephdir/aleph-cat.test

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