]>
Commit | Line | Data |
---|---|---|
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 |
17 | cupstestppd \- 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 | |
34 | Adobe PostScript Printer Description file format specification | |
35 | version 4.3. It can also be used to list the supported options | |
36 | and available fonts in a PPD file. The results of testing and | |
37 | any other output are sent to the standard output. | |
38 | .LP | |
39 | The first form of \fIcupstestppd\fR tests one or more PPD files | |
40 | on the command-line. The second form tests the PPD file provided | |
41 | on the standard input. | |
bd7854cb | 42 | .SH OPTIONS |
43 | \fIcupstestppd\fR supports the following options: | |
44 | .TP 5 | |
b94498cf | 45 | -R rootdir |
46 | .br | |
47 | Specifies an alternate root directory for the filter, pre-filter, | |
48 | and other support file checks. | |
49 | .TP 5 | |
50 | -W constraints | |
51 | .br | |
52 | Report all UIConstraint errors as warnings. | |
53 | .TP 5 | |
54 | -W defaults | |
55 | .br | |
56 | Except for size-related options, report all default option errors as warnings. | |
57 | .TP 5 | |
58 | -W filters | |
59 | .br | |
60 | Report all filter errors as warnings. | |
61 | .TP 5 | |
a603edef MS |
62 | -W profiles |
63 | .br | |
64 | Report all profile errors as warnings. | |
65 | .TP 5 | |
b94498cf | 66 | -W translations |
67 | .br | |
68 | Report all translation errors as warnings. | |
69 | .TP 5 | |
70 | -W all | |
71 | .br | |
72 | Report all of the previous errors as warnings. | |
73 | .TP 5 | |
74 | -W none | |
75 | .br | |
76 | Report all of the previous errors as errors. | |
77 | .TP 5 | |
bd7854cb | 78 | -q |
79 | .br | |
80 | Specifies that no information should be displayed. | |
81 | .TP 5 | |
82 | -r | |
83 | .br | |
84 | Relaxes the PPD conformance requirements so that common | |
85 | whitespace, control character, and formatting problems are not | |
86 | treated as hard errors. | |
87 | .TP 5 | |
88 | -v | |
89 | .br | |
90 | Specifies that detailed conformance testing results should be | |
91 | displayed rather than the concise PASS/FAIL/ERROR status. | |
92 | .TP 5 | |
93 | -vv | |
94 | .br | |
95 | Specifies that all information in the PPD file should be | |
96 | displayed in addition to the detailed conformance testing | |
97 | results. | |
ef416fc2 | 98 | .LP |
99 | The \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 | |
102 | error codes are as follows: | |
103 | .TP 5 | |
104 | 1 | |
105 | .br | |
106 | Bad command-line arguments or missing PPD filename. | |
107 | .TP 5 | |
108 | 2 | |
109 | .br | |
110 | Unable to open or read PPD file. | |
111 | .TP 5 | |
112 | 3 | |
113 | .br | |
114 | The PPD file contains format errors that cannot be skipped. | |
115 | .TP 5 | |
116 | 4 | |
117 | .br | |
118 | The PPD file does not conform to the Adobe PPD specification. | |
119 | .SH EXAMPLES | |
120 | The following command will test all PPD files under the current | |
121 | directory and print the names of each file that does not | |
122 | conform: | |
123 | .nf | |
124 | ||
125 | find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; -print | |
126 | ||
127 | .fi | |
128 | The next command tests all PPD files under the current directory | |
129 | and print detailed conformance testing results for the files | |
130 | that 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 | |
140 | http://localhost:631/help | |
141 | .br | |
ef416fc2 | 142 | Adobe PostScript Printer Description File Format Specification, Version 4.3. |
143 | .SH COPYRIGHT | |
a603edef | 144 | Copyright 2007-2008 by Apple Inc. |
ef416fc2 | 145 | .\" |
75bd9771 | 146 | .\" End of "$Id: cupstestppd.man 7600 2008-05-20 21:06:23Z mike $". |
ef416fc2 | 147 | .\" |