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

# Copyright (C) 2013 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 pic*.*

for e in jpeg png pdf; do
	cp $testsrc/image.$e pic$e.$e
done

echo "*** xdvipdfmx --ebb --version" \
	&& ./xdvipdfmx --ebb --version \
	&& echo && echo "ebb-version tests OK" && echo \
	|| failed="$failed ebb-version"

echo "*** xdvipdfmx --ebb --help" \
	&& ./xdvipdfmx --ebb --help \
	&& echo && echo "ebb-help tests OK" && echo \
	|| failed="$failed ebb-help"

for e in jpeg png pdf; do
	echo "*** xdvipdfmx --ebb pic$e.$e" \
	&& ./xdvipdfmx --ebb pic$e.$e \
	&& sed '/%%CreationDate/d' pic$e.bb >pic$e.bbx \
	&& diff $testsrc/pic$e.bb pic$e.bbx \
	&& echo && echo "ebb-$e tests OK" && echo \
	|| failed="$failed ebb-$e"
done

echo "*** xdvipdfmx --xbb --version" \
	&& ./xdvipdfmx --xbb --version \
	&& echo && echo "xbb-version tests OK" && echo \
	|| failed="$failed xbb-version"

echo "*** xdvipdfmx --xbb --help" \
	&& ./xdvipdfmx --xbb --help \
	&& echo && echo "xbb-help tests OK" && echo \
	|| failed="$failed xbb-help"

for e in jpeg png pdf; do
	echo "*** xdvipdfmx --xbb img$e.$e" \
	&& ./xdvipdfmx --xbb pic$e.$e \
	&& sed '/%%CreationDate/d' pic$e.xbb >pic$e.xbbx \
	&& diff $testsrc/pic$e.xbb pic$e.xbbx \
	&& echo && echo "xbb-$e tests OK" && echo \
	|| failed="$failed xbb-$e"
done

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