]> git.ipfire.org Git - thirdparty/cups.git/blob - man/cupstestppd.man
Load cups into easysw/current.
[thirdparty/cups.git] / man / cupstestppd.man
1 .\"
2 .\" "$Id: cupstestppd.man 6509 2007-05-03 22:58:41Z mike $"
3 .\"
4 .\" cupstestppd man page for the Common UNIX Printing System (CUPS).
5 .\"
6 .\" Copyright 1997-2006 by Easy Software Products.
7 .\"
8 .\" These coded instructions, statements, and computer programs are the
9 .\" property of Easy Software Products and are protected by Federal
10 .\" copyright law. Distribution and use rights are outlined in the file
11 .\" "LICENSE.txt" which should have been included with this file. If this
12 .\" file is missing or damaged please contact Easy Software Products
13 .\" at:
14 .\"
15 .\" Attn: CUPS Licensing Information
16 .\" Easy Software Products
17 .\" 44141 Airport View Drive, Suite 204
18 .\" Hollywood, Maryland 20636 USA
19 .\"
20 .\" Voice: (301) 373-9600
21 .\" EMail: cups-info@cups.org
22 .\" WWW: http://www.cups.org
23 .\"
24 .TH cupstestppd 1 "Common UNIX Printing System" "3 May 2007" "Easy Software Products"
25 .SH NAME
26 cupstestppd \- test conformance of ppd files
27 .SH SYNOPSIS
28 .B cupstestppd
29 [ -R
30 .I rootdir
31 ] [ -W
32 .I category
33 ] [ -q ] [-r] [ -v[v] ] filename.ppd[.gz] [ ... filenameN.ppd[.gz] ]
34 .br
35 .B cupstestppd
36 [ -R
37 .I rootdir
38 ] [ -W
39 .I category
40 ] [ -q ] [-r] [ -v[v] ] -
41 .SH DESCRIPTION
42 \fIcupstestppd\fR tests the conformance of PPD files to the
43 Adobe PostScript Printer Description file format specification
44 version 4.3. It can also be used to list the supported options
45 and available fonts in a PPD file. The results of testing and
46 any other output are sent to the standard output.
47 .LP
48 The first form of \fIcupstestppd\fR tests one or more PPD files
49 on the command-line. The second form tests the PPD file provided
50 on the standard input.
51 .SH OPTIONS
52 \fIcupstestppd\fR supports the following options:
53 .TP 5
54 -R rootdir
55 .br
56 Specifies an alternate root directory for the filter, pre-filter,
57 and other support file checks.
58 .TP 5
59 -W constraints
60 .br
61 Report all UIConstraint errors as warnings.
62 .TP 5
63 -W defaults
64 .br
65 Except for size-related options, report all default option errors as warnings.
66 .TP 5
67 -W filters
68 .br
69 Report all filter errors as warnings.
70 .TP 5
71 -W translations
72 .br
73 Report all translation errors as warnings.
74 .TP 5
75 -W all
76 .br
77 Report all of the previous errors as warnings.
78 .TP 5
79 -W none
80 .br
81 Report all of the previous errors as errors.
82 .TP 5
83 -q
84 .br
85 Specifies that no information should be displayed.
86 .TP 5
87 -r
88 .br
89 Relaxes the PPD conformance requirements so that common
90 whitespace, control character, and formatting problems are not
91 treated as hard errors.
92 .TP 5
93 -v
94 .br
95 Specifies that detailed conformance testing results should be
96 displayed rather than the concise PASS/FAIL/ERROR status.
97 .TP 5
98 -vv
99 .br
100 Specifies that all information in the PPD file should be
101 displayed in addition to the detailed conformance testing
102 results.
103 .LP
104 The \fI-q\fR, \fI-v\fR, and \fI-vv\fR options are mutually exclusive.
105 .SH EXIT STATUS
106 \fIcupstestppd\fR returns zero on success and non-zero on error. The
107 error codes are as follows:
108 .TP 5
109 1
110 .br
111 Bad command-line arguments or missing PPD filename.
112 .TP 5
113 2
114 .br
115 Unable to open or read PPD file.
116 .TP 5
117 3
118 .br
119 The PPD file contains format errors that cannot be skipped.
120 .TP 5
121 4
122 .br
123 The PPD file does not conform to the Adobe PPD specification.
124 .SH EXAMPLES
125 The following command will test all PPD files under the current
126 directory and print the names of each file that does not
127 conform:
128 .nf
129
130 find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; -print
131
132 .fi
133 The next command tests all PPD files under the current directory
134 and print detailed conformance testing results for the files
135 that do not conform:
136 .nf
137
138 find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; \\
139 -exec cupstestppd -v '{}' \\;
140
141 .fi
142 .SH SEE ALSO
143 \fIlpadmin(8)\fR,
144 .br
145 http://localhost:631/help
146 .br
147 Adobe PostScript Printer Description File Format Specification, Version 4.3.
148 .SH COPYRIGHT
149 Copyright 1997-2007 by Easy Software Products, All Rights Reserved.
150 .\"
151 .\" End of "$Id: cupstestppd.man 6509 2007-05-03 22:58:41Z mike $".
152 .\"