summaryrefslogtreecommitdiff
path: root/Build/source/utils/psutils/psutils.test
blob: a54d9f9434b35a3b2304ae8ab8fa68d75c1a9a95 (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
#! /bin/sh

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

rm -rf play*
./psselect 5:15 $srcdir/tests/play.ps playsel.ps \
	2>playsel.2 \
	&& diff playsel.2 $srcdir/tests/playsel.2 \
	|| exit 1

echo psselect tests OK

./psbook -s4 playsel.ps playbook.ps \
	2>playbook.2 \
	&& diff playbook.2 $srcdir/tests/playbook.2 \
	|| exit 1

echo psbook tests OK

./psresize -Pa4 -pa5 playsel.ps playres.ps \
	2>playres.2 \
	&& diff playres.2 $srcdir/tests/playres.2 \
	|| exit 1

echo psresize tests OK

./psnup -2 playsel.ps playnup.ps \
	2>playnup.2 \
	&& diff playnup.2 $srcdir/tests/playnup.2 \
	|| exit 1

echo psnup tests OK

./pstops '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' playsel.ps playps.ps \
	2>playps.2 \
	&& diff playps.2 $srcdir/tests/playps.2 \
	|| exit 1

echo pstops tests OK

rm -rf plot*
./epsffit -c 0 0 600 368 $srcdir/tests/plot.eps ploth.eps \
	&& diff ploth.eps $srcdir/tests/ploth.eps \
	|| exit 1

./epsffit -c 0 0 500 400 $srcdir/tests/plot.eps plotv.eps \
	&& diff plotv.eps $srcdir/tests/plotv.eps \
	|| exit 1

./epsffit -m 0 0 368 500 $srcdir/tests/plot.eps plotm.eps \
	&& diff plotm.eps $srcdir/tests/plotm.eps \
	|| exit 1

echo epsffit tests OK