]> git.ipfire.org Git - thirdparty/cups.git/blame - man/cupstestppd.man
Merge changes from CUPS 1.4svn-r7696.
[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.\"
a603edef 6.\" Copyright 2007-2008 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.\"
bc44d920 15.TH cupstestppd 1 "Common UNIX Printing System" "3 May 2007" "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
b94498cf 66-W translations
67.br
68Report all translation errors as warnings.
69.TP 5
70-W all
71.br
72Report all of the previous errors as warnings.
73.TP 5
74-W none
75.br
76Report all of the previous errors as errors.
77.TP 5
bd7854cb 78-q
79.br
80Specifies that no information should be displayed.
81.TP 5
82-r
83.br
84Relaxes the PPD conformance requirements so that common
85whitespace, control character, and formatting problems are not
86treated as hard errors.
87.TP 5
88-v
89.br
90Specifies that detailed conformance testing results should be
91displayed rather than the concise PASS/FAIL/ERROR status.
92.TP 5
93-vv
94.br
95Specifies that all information in the PPD file should be
96displayed in addition to the detailed conformance testing
97results.
ef416fc2 98.LP
99The \fI-q\fR, \fI-v\fR, and \fI-vv\fR options are mutually exclusive.
100.SH EXIT STATUS
101\fIcupstestppd\fR returns zero on success and non-zero on error. The
102error codes are as follows:
103.TP 5
1041
105.br
106Bad command-line arguments or missing PPD filename.
107.TP 5
1082
109.br
110Unable to open or read PPD file.
111.TP 5
1123
113.br
114The PPD file contains format errors that cannot be skipped.
115.TP 5
1164
117.br
118The PPD file does not conform to the Adobe PPD specification.
119.SH EXAMPLES
120The following command will test all PPD files under the current
121directory and print the names of each file that does not
122conform:
123.nf
124
125 find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; -print
126
127.fi
128The next command tests all PPD files under the current directory
129and print detailed conformance testing results for the files
130that do not conform:
131.nf
132
133 find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; \\
134 -exec cupstestppd -v '{}' \\;
135
136.fi
137.SH SEE ALSO
bd7854cb 138\fIlpadmin(8)\fR,
139.br
140http://localhost:631/help
141.br
ef416fc2 142Adobe PostScript Printer Description File Format Specification, Version 4.3.
143.SH COPYRIGHT
a603edef 144Copyright 2007-2008 by Apple Inc.
ef416fc2 145.\"
75bd9771 146.\" End of "$Id: cupstestppd.man 7600 2008-05-20 21:06:23Z mike $".
ef416fc2 147.\"