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

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

TEXMFCNF=${srcdir}/../kpathsea
TEXFONTS=${srcdir}/tests:${srcdir}/data
DVIPDFMXINPUTS=${srcdir}/tests:${srcdir}/data
TEXPICTS=${srcdir}/tests
export TEXMFCNF TEXFONTS DVIPDFMXINPUTS TEXPICTS

failed=

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

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

# This test can fail (why?) and is skipped unless XDVIPDFMX_IMAGE is non-empty.
if test -z "$XDVIPDFMX_IMAGE"; then :; else

echo "*** xdvipdfmx -v -o image2.pdf image" && echo \
	&& ./xdvipdfmx -v -o image2.pdf ${srcdir}/tests/image \
	&& echo && echo "xdvipdfmx-image tests OK" && echo \
	|| failed="$failed xdvipdfmx-image"	

fi

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