blob: f1b5f7a888914bf7533a2318aadd40ab945eff26 (
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
33
34
35
36
37
38
|
#! /bin/sh -vx
# Copyright 2025 Japanese TeX Development Community <issue@texjp.org>
# You may freely use, modify and/or distribute this file.
BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_ptex=$BinDir/ptex$ExeExt
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
TEXMFCNF=$srcdir/../kpathsea;export TEXMFCNF
TEXINPUTS=".;$srcdir/tests"; export TEXINPUTS
TEXFONTS=".;$srcdir//tests"; export TEXFONTS
TEXFORMATS=.; export TEXFORMATS
# get same filename in log
rm -f p-jchwidow*.*
$LN_S $srcdir/uptexdir/tests/jchwidow.tex ./p-jchwidow.tex
if test ! -f ./p-basic.tex; then
cp $srcdir/tests/dump-basic.tex ./p-basic.tex
fi
if test ! -f ./p-basic-sjis.fmt; then
$_ptex -ini -kanji-internal=sjis -jobname=p-basic-sjis p-basic || exit 1
fi
if test ! -f ./p-basic-euc.fmt; then
$_ptex -ini -kanji-internal=euc -jobname=p-basic-euc p-basic || exit 2
fi
$_ptex -fmt=p-basic-sjis -kanji-internal=sjis -jobname=p-jchwidow-s -interaction=batchmode p-jchwidow || :
$_ptex -fmt=p-basic-euc -kanji-internal=euc -jobname=p-jchwidow-e -interaction=batchmode p-jchwidow || :
sed 1d p-jchwidow-s.log >p-jchwidow-s.out
sed 1d p-jchwidow-e.log >p-jchwidow-e.out
diff $srcdir/ptexdir/tests/p-jchwidow.log p-jchwidow-s.out || exit 10
diff $srcdir/ptexdir/tests/p-jchwidow.log p-jchwidow-e.out || exit 11
|