File: seetexk.test

package info (click to toggle)
texlive-bin 2016.20160513.41080.dfsg-2+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 155,060 kB
  • sloc: ansic: 702,862; cpp: 222,090; perl: 76,014; sh: 23,402; makefile: 8,078; lex: 4,710; pascal: 3,782; python: 3,614; java: 3,569; yacc: 2,905; exp: 2,031; xml: 800; tcl: 670; ruby: 620; lisp: 397; sed: 351; asm: 140; csh: 48; awk: 30
file content (88 lines) | stat: -rwxr-xr-x 2,072 bytes parent folder | download
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#! /bin/sh

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

rm -rf play*
./dviselect =25 $srcdir/tests/play.dvi playsel.dvi \
	2>playsel.2 \
	&& exit 1
	test -r playsel.dvi \
	&& exit 1
	diff playsel.2 $srcdir/tests/playnot.2 \
	|| exit 1

rm -rf play*
./dviselect 15:25 $srcdir/tests/play.dvi playsel.dvi \
	2>playsel.2 \
	&& diff playsel.2 $srcdir/tests/playsel.2 \
	|| exit 1

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

echo dviselect tests OK

rm -rf play*
cat $srcdir/tests/play.dvi | ./dviselect =25 >playsel.dvi \
	2>playsel.2 \
	&& exit 1
	touch playnot.dvi \
	&& diff playsel.dvi playnot.dvi \
	&& diff playsel.2 $srcdir/tests/playnot.2 \
	|| exit 1

rm -rf play*
cat $srcdir/tests/play.dvi | ./dviselect =5:15 >playsel.dvi \
	2>playsel.2 \
	&& diff playsel.2 $srcdir/tests/playsel.2 \
	|| exit 1

echo dviselect with stdin and stdout tests OK

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

echo dvibook tests OK

rm -f playbook.2

#cat playsel.dvi | ./dvibook -s4 >playbook.dvi \
#	2>playbook.2 \
#	&& diff playbook.2 $srcdir/tests/playbook.2 \
#	|| exit 1

#echo dvibook with stdin and stdout tests OK

./dviselect =5:7 $srcdir/tests/play.dvi playsel1.dvi \
	2>playconc.2 \
	&& ./dviselect 23:25 $srcdir/tests/play.dvi playsel2.dvi \
	2>>playconc.2 \
	&& ./dviconcat -o playconc.dvi playsel2.dvi playsel1.dvi \
	2>>playconc.2 \
	&& diff playconc.2 $srcdir/tests/playconc.2 \
	|| exit 1

echo dviconcat tests OK

./dvitodvi '4:500@0+1(16.5cm,0)+2(0,28cm)+3(16.5cm,28cm)' playsel.dvi playdvi.dvi \
	2>playdvi.2 \
	&& diff playdvi.2 $srcdir/tests/playdvi.2 \
	|| exit 1

echo dvitodvi tests OK

rm -f playdvi.2

#cat playsel.dvi | ./dvitodvi '4:500@0+1(16.5cm,0)+2(0,28cm)+3(16.5cm,28cm)' -o playdvi.dvi \
#	2>playdvi.2 \
#	&& diff playdvi.2 $srcdir/tests/playdvi.2 \
#	|| exit 1
#
#echo dvitodvi reading stdin tests OK