summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/xdvipdfm-bad.test
blob: 7edba2d9c79e89e9da6ed9e3bec8f080191617e0 (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
#! /bin/sh

# Copyright (C) 2015 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

TEXMFCNF=$srcdir/../kpathsea
TFMFONTS="$srcdir/tests;$srcdir/data"
T1FONTS="$srcdir/tests;$srcdir/data"
TEXFONTMAPS="$srcdir/tests;$srcdir/data"
DVIPDFMXINPUTS="$srcdir/tests;$srcdir/data"
TEXPICTS=$srcdir/tests
export TEXMFCNF TFMFONTS T1FONTS TEXFONTMAPS DVIPDFMXINPUTS TEXPICTS

failed=

list="ids_2_6 ids_3_2 ids_a_b opc_fe ptx_2_2 ptx_6_6 rev_2_2 rev_2_3 void"

for f in $list
do

echo "*** xdvipdfmx -v -z0 -o bad.pdf $f" && echo \
	&& ./xdvipdfmx -v -z0 -o bad.pdf $srcdir/tests/$f \
	&& failed="$failed xdvipdfmx-$f" \
	|| { echo && echo "xdvipdfmx-$f tests OK" && echo; }

echo "*** xdvipdfmx -v -z0 -o bad.pdf <$f.dvi" && echo \
	&& ./xdvipdfmx -v -z0 -o bad.pdf <$srcdir/tests/$f.dvi \
	&& failed="$failed xdvipdfmx-$f (stdin)" \
	|| { echo && echo "xdvipdfmx-$f (stdin) tests OK" && echo; }

done

test -z "$failed" && exit 0
echo
echo "failed tests:$failed"
exit 1