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