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