| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: sample.test 75026 2025-04-26 08:08:19Z takuji $ |
| 3 |
# Copyright 2022 Japanese TeX Development Community <[email protected]> |
| 4 |
# Copyright 2017-2020 Karl Berry <[email protected]> |
| 5 |
# Copyright 2010-2013 Peter Breitenlohner <[email protected]> |
| 6 |
# You may freely use, modify and/or distribute this file. |
| 7 |
|
| 8 |
BinDir=${BinDir:-.} |
| 9 |
ExeExt=${ExeExt:-} |
| 10 |
_updvitype=$BinDir/updvitype$ExeExt |
| 11 |
|
| 12 |
test -d uptests || mkdir -p uptests |
| 13 |
|
| 14 |
tfmpath=`$KPSEWHICH cmbx10.tfm` || exit 77 |
| 15 |
|
| 16 |
tfmparent=`dirname "$tfmpath"` |
| 17 |
tfmgrandparent=`dirname "$tfmparent"` |
| 18 |
|
| 19 |
# Test inputs |
| 20 |
testdir=$srcdir/uptexdir/tests |
| 21 |
|
| 22 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 23 |
TFMFONTS="$testdir;"`dirname "$tfmgrandparent"`// \ |
| 24 |
$_updvitype -kanji=utf8 -show-opcodes $testdir/sample >uptests/xsample.typ || exit 1 |
| 25 |
|
| 26 |
sed 1d uptests/xsample.typ >uptests/xsamplea.typ |
| 27 |
diff $testdir/samplea.typ uptests/xsamplea.typ || exit 1 |
| 28 |
|