summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/xetex-ctrlsym.test
blob: c9cd23a06c8d8552fbe0de833c1dcf5a62689622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh -vx
# Copyright 2024 Japanese TeX Development Community <issue@texjp.org>
# You may freely use, modify and/or distribute this file.

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_xetex=$BinDir/xetex$ExeExt

LC_ALL=C; export LC_ALL;  LANGUAGE=C; export LANGUAGE

TEXMFCNF=$srcdir/../kpathsea;export TEXMFCNF
TEXINPUTS=".;$srcdir/tests"; export TEXINPUTS
TEXFORMATS=.; export TEXFORMATS

# get same filename in log
rm -f xe-ctrlsym.tex
$LN_S $srcdir/xetexdir/tests/ctrlsym.tex ./xe-ctrlsym.tex

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

diff $srcdir/xetexdir/tests/ctrlsym.log xe-ctrlsym.out || exit 3