Debian Codegraph @

texk/web2c/pdftexdir/tests/partoken.test

raw
1 #! /bin/sh -vx
2 # $Id: partoken.test 68085 2023-08-27 14:18:27Z takuji $
3 # Public domain. Originally written by Karl Berry, 2021.
4 # Check for new \partokenname primitives.
5
6 : ${BinDir=.}
7 : ${ExeExt=}
8
9 LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
10
11 # running in Build/source/Work/texk/web2c
12 # srcdir is Build/source/texk/web2c
13 : ${srcdir=../../../texk/web2c}
14 TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
15 TEXMFDOTDIR=$srcdir/tests; export TEXMFDOTDIR # both fonts and inputs
16
17 : ${testengine=pdftex}
18
19 # should succeed. nonstopmode instead of batchmode so normal errors are
20 # printed on the terminal, and thus show up in test-suite.log.
21 if $BinDir/$testengine$ExeExt -ini --interaction=nonstopmode partoken-ok.tex; then :; else
22 exit 1; fi
23
24 # should fail
25 if $BinDir/$testengine$ExeExt -ini --interaction=nonstopmode partoken-xfail.tex; then
26 exit 1; fi
27
28 exit 0