summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/ptexdir/pdvitype.test
blob: 341a290e9196184638988082c438757a41135963 (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
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2010-2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

test -d ptests || mkdir -p ptests

if tfmpath=`$KPSEWHICH cmbx10.tfm`; then

  TEXMFCNF=$srcdir/../kpathsea \
    TFMFONTS=`dirname "$tfmpath"` \
    ./pdvitype -show-opcodes $srcdir/tests/story >ptests/xstory.dvityp || exit 1

fi

TEXMFCNF=$srcdir/../kpathsea \
  TFMFONTS=$srcdir/tests \
  ./pdvitype --p=\*.\*.2 $srcdir/tests/pagenum.dvi >ptests/xpagenum.typ || exit 2


TEXMFCNF=$srcdir/../kpathsea
TFMFONTS=$srcdir/ptexdir/tests:$srcdir/tests
export TEXMFCNF TFMFONTS

for enc in utf8 jis; do
for doc in ptex3 ptex4; do
  ./pdvitype -kanji=$enc $srcdir/ptexdir/tests/$doc.dvi >ptests/x$doc-$enc.typ || exit 3
  sed 1d ptests/x$doc-$enc.typ >ptests/x${doc}a-$enc.typ
  diff $srcdir/ptexdir/tests/${doc}a-$enc.typ ptests/x${doc}a-$enc.typ || exit 4
done
done