summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/euptexdir/euptex-prim.test
blob: 5612be019a2991524b0f764be38ef480efad7d0d (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
32
#! /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:-}
_euptex=$BinDir/euptex$ExeExt

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

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

# get same filename in log
rm -f eup-prim.*
$LN_S $srcdir/euptexdir/tests/eup-prim.tex ./eup-prim.tex

if test ! -f ./eup-basic.tex; then
  cp $srcdir/tests/dump-basic.tex ./eup-basic.tex
fi
if test ! -f ./eup-basic.fmt; then
  $_euptex -ini -etex eup-basic || exit 1
fi

$_euptex -fmt=eup-basic -interaction=batchmode eup-prim || :

sed 1d eup-prim.log >eup-prim.out

diff $srcdir/euptexdir/tests/eup-prim.log eup-prim.out || exit 3