File: a2ps-tst.cfg.in

package info (click to toggle)
a2ps 1:4.14-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 13,328 kB
  • sloc: ansic: 26,966; sh: 11,844; lex: 2,286; perl: 1,156; yacc: 757; makefile: 609; lisp: 398; ada: 263; objc: 189; f90: 109; ml: 85; sql: 74; pascal: 57; modula3: 33; haskell: 32; sed: 30; java: 29; python: 24
file content (107 lines) | stat: -rw-r--r-- 3,503 bytes parent folder | download | duplicates (10)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Flags for testing a2ps -*- Makefile -*-

########################################################################
# Environment for the tests
########################################################################
# The path to the files _in the package_, so that a2ps does _not_ read
# the installed files.
LibraryPath: @libpath@

# Defined by sed
FileCommand: @file_link@

########################################################################
# Options for the tests
########################################################################
# Medium used for the tests
Medium: A4	 595     842
Options: --medium=A4

# Encoding is ISO Latin 1
Options: --encoding=latin1

# PostScript stuff
Options: -1 --portrait --no-page-prefeed --sides=1

# Output to stdout
Options: --output=-

# Be quiet
Options: --quiet

# No backups
Options: --version-control=none

# No delegations
Options: --delegate=no

# Set titles that cannot vary from path to path
# Don't forget to check the tags (hence, use $t1 and $t2)
Options: --left-title='#?2||%s.|'
Options: --right-title='#?2|$t2|right|'
Options: --center-title='#?1|$t1|$n|'
Options: --footer='%A'
Options: --left-footer=$s.
Options: --right-footer=Right
Options: --header='The room for the header'
Options: --underlay='Test Files'

# It's a weird idea to print the results of the test, so let's make it
# easy for people displaying the results.
Options: --prologue=color

########################################################################
# Variables for the tests
########################################################################
# A macro sequence for table of content
Variable: toc_test \\Keyword{Table of Content}\n\
#-1!f\
|$2# \\keyword{$-.20n} sheets $3s< to $3s> ($2s#) pages $3p<-$3p> $4l# lines\n||\
\\Keyword{End of toc}\n

# Remove any information from the PS comments that may vary
Variable: sedout \
sed 's/^%%%%Creator.*/%%%%Creator: a version of a2ps/g;s/^%%%%CreationDate:.*/%%%%CreationDate: once upon a time/g;s!^/td (.*) def!/td (today) def!g'

# Keep only the core of the document (not the prolog).  Send to stdout.
Variable: awkout \
awk "/^%%%%Page:/, /^%%%%EOF$$/"

# Keep only the prolog of the document.  Send to stdout.
Variable: awkin \
awk "/^%%!/, /^%%%%EndSetup/"

# Run the tests anynonously
Variable: user.name Somebody
Variable: user.host a machine

########################################################################
# Printers for the tests
########################################################################
# A printer that sed's away some details of the DSC which may
# make look different identical PS programs.
UnknownPrinter: | #{sedout} > #o

Printer: prolog-only | #{awkin}
Printer: awkin | #{awkin} | #{sedout}
Printer: awkout | #{awkout}
Printer: sedout | #{sedout}
Printer: chk_dir | #{sedout} > ${CHK_DIR}/$N.ps
Printer: void > /dev/null
Printer: display | cat > #f0 && gv #f0
Printer: bak > #{bak.file}

########################################################################
# Delegations for the tests
########################################################################
# A fake delegation for deleg*.tst
Delegation: Testing test_delegation:ps echo OK

########################################################################
# UserOptions for the tests
########################################################################
# A simple user option
UserOption: useroption-test --guess

# The Page Label to use for the tests: the range of virtuals
PageLabelFormat: #!s|$p-|,|