summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/xdvipdfmx.test
blob: 4d6e7cd92ba7b4bbf87245357789f17819b7a9aa (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
#! /bin/sh -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2013, 2014 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

TEXMFCNF=$srcdir/../kpathsea
TEXFONTMAPS="$srcdir/tests;$srcdir/data"
DVIPDFMXINPUTS="$srcdir/tests;$srcdir/data"
TEXPICTS=$srcdir/tests
TEXFONTS=$srcdir/tests
PKFONTS=$srcdir/tests
export TEXMFCNF TEXFONTMAPS DVIPDFMXINPUTS TEXPICTS TEXFONTS PKFONTS

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"

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

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"	

echo "*** xdvipdfmx -v -o xbmc2.pdf xbmc" && echo \
	&& ./xdvipdfmx -v -o xbmc2.pdf  $srcdir/tests/xbmc \
	&& echo && echo "xdvipdfmx-xbmc tests OK" && echo \
	|| failed="$failed xdvipdfmx-xbmc"

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