| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: vptovf.test 68157 2023-09-03 11:26:37Z takuji $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2009-2015 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
BinDir=${BinDir:-.} |
| 8 |
ExeExt=${ExeExt:-} |
| 9 |
_vptovf=$BinDir/vptovf$ExeExt |
| 10 |
|
| 11 |
test -d tests || mkdir -p tests |
| 12 |
|
| 13 |
$_vptovf -help || exit 1 |
| 14 |
|
| 15 |
$_vptovf -version || exit 2 |
| 16 |
|
| 17 |
TEXMFCNF=$srcdir/../kpathsea |
| 18 |
export TEXMFCNF |
| 19 |
|
| 20 |
$_vptovf -verbose $srcdir/tests/badvpl && exit 3 |
| 21 |
|
| 22 |
$_vptovf -verbose $srcdir/tests/ptmr tests/yptmr tests/yptmr || exit 4 |
| 23 |
|
| 24 |
cmp $srcdir/tests/ptmr.vf tests/yptmr.vf || exit 5 |
| 25 |
|
| 26 |
cmp $srcdir/tests/ptmr.tfm tests/yptmr.tfm || exit 6 |
| 27 |
|
| 28 |
$_vptovf -verbose $srcdir/tests/ptmr tests/yptmr2.vf || exit 7 |
| 29 |
|
| 30 |
cmp $srcdir/tests/ptmr.vf tests/yptmr2.vf || exit 8 |
| 31 |
|
| 32 |
cmp $srcdir/tests/ptmr.tfm tests/yptmr2.tfm || exit 9 |
| 33 |
|