blob: ac9f1608c897be5184ef2fbc2d978321c78bf62a (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#! /bin/sh
# Copyright (C) 2013, 2014 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
TEXMFCNF=$srcdir/../kpathsea
DVIPDFMXINPUTS=$srcdir/tests:$srcdir/data
export TEXMFCNF DVIPDFMXINPUTS
testsrc=$srcdir/tests
failed=
rm -f img*.*
# list of file types
ext='bmp jp2 jpeg pdf png'
for e in $ext; do
cp $testsrc/image.$e img$e.$e
done
echo "*** dvipdfmx --ebb --version" \
&& ./dvipdfmx --ebb --version \
&& echo && echo "ebb-version tests OK" && echo \
|| failed="$failed ebb-version"
echo "*** dvipdfmx --ebb --help" \
&& ./dvipdfmx --ebb --help \
&& echo && echo "ebb-help tests OK" && echo \
|| failed="$failed ebb-help"
for e in $ext; do
echo "*** dvipdfmx --ebb img$e.$e" \
&& ./dvipdfmx --ebb -O img$e.$e \
| sed '/%%CreationDate/d' >img$e.bb \
&& diff $testsrc/img$e.bb img$e.bb \
&& echo && echo "ebb-$e tests OK" && echo \
|| failed="$failed ebb-$e"
done
echo "*** dvipdfmx --xbb --version" \
&& ./dvipdfmx --xbb --version \
&& echo && echo "xbb-version tests OK" && echo \
|| failed="$failed xbb-version"
echo "*** dvipdfmx --xbb --help" \
&& ./dvipdfmx --xbb --help \
&& echo && echo "xbb-help tests OK" && echo \
|| failed="$failed xbb-help"
for e in $ext; do
echo "*** dvipdfmx --xbb img$e.$e" \
&& ./dvipdfmx --xbb -O img$e.$e \
| sed '/%%CreationDate/d' >img$e.xbb \
&& diff $testsrc/img$e.xbb img$e.xbb \
&& echo && echo "xbb-$e tests OK" && echo \
|| failed="$failed xbb-$e"
done
test -z "$failed" && exit 0
echo
echo "failed tests:$failed"
exit 1
|