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