| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: disdvi.test 67876 2023-08-11 11:46:06Z takuji $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2012 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
BinDir=${BinDir:-.} |
| 8 |
ExeExt=${ExeExt:-} |
| 9 |
_disdvi=$BinDir/disdvi$ExeExt |
| 10 |
|
| 11 |
test_src=$srcdir/$DVI2TTY_TREE/test |
| 12 |
test_out=$srcdir/output |
| 13 |
|
| 14 |
rm -f *.dout |
| 15 |
rc=0 |
| 16 |
|
| 17 |
$_disdvi $test_src/ligtest >ligtest.dout \ |
| 18 |
&& diff $test_out/ligtest.dis ligtest.dout \ |
| 19 |
|| rc=1 |
| 20 |
|
| 21 |
$_disdvi $test_src/ptex1.dvi >ptex1.dout \ |
| 22 |
&& diff $test_out/ptex1.dis ptex1.dout || rc=2 |
| 23 |
$_disdvi $test_src/uptex1.dvi >uptex1.dout \ |
| 24 |
&& diff $test_out/uptex1.dis uptex1.dout || rc=3 |
| 25 |
$_disdvi -p -Eu $test_src/ptex2.dvi >ptex2Eu.dout \ |
| 26 |
&& diff $test_out/ptex2Eu.dis ptex2Eu.dout || rc=9 |
| 27 |
$_disdvi -u -Eu $test_src/uptex2.dvi >uptex2Eu.dout \ |
| 28 |
&& diff $test_out/uptex2Eu.dis uptex2Eu.dout || rc=10 |
| 29 |
|
| 30 |
|
| 31 |
exit $rc |