1cupstestppd(1) Apple Inc. cupstestppd(1)
2
3
4
6 cupstestppd - test conformance of ppd files
7
9 cupstestppd [ -R rootdir ] [ -W category ] [ -q ] [-r] [ -v[v] ] file‐
10 name.ppd[.gz] [ ... filenameN.ppd[.gz] ]
11 cupstestppd [ -R rootdir ] [ -W category ] [ -q ] [-r] [ -v[v] ] -
12
14 cupstestppd tests the conformance of PPD files to the Adobe PostScript
15 Printer Description file format specification version 4.3. It can also
16 be used to list the supported options and available fonts in a PPD
17 file. The results of testing and any other output are sent to the stan‐
18 dard output.
19
20 The first form of cupstestppd tests one or more PPD files on the com‐
21 mand-line. The second form tests the PPD file provided on the standard
22 input.
23
25 cupstestppd supports the following options:
26
27 -R rootdir
28 Specifies an alternate root directory for the filter, pre-filter,
29 and other support file checks.
30
31 -W constraints
32 Report all UIConstraint errors as warnings.
33
34 -W defaults
35 Except for size-related options, report all default option errors
36 as warnings.
37
38 -W filters
39 Report all filter errors as warnings.
40
41 -W profiles
42 Report all profile errors as warnings.
43
44 -W sizes
45 Report all media size errors as warnings.
46
47 -W translations
48 Report all translation errors as warnings.
49
50 -W all
51 Report all of the previous errors as warnings.
52
53 -W none
54 Report all of the previous errors as errors.
55
56 -q
57 Specifies that no information should be displayed.
58
59 -r
60 Relaxes the PPD conformance requirements so that common white‐
61 space, control character, and formatting problems are not treated
62 as hard errors.
63
64 -v
65 Specifies that detailed conformance testing results should be dis‐
66 played rather than the concise PASS/FAIL/ERROR status.
67
68 -vv
69 Specifies that all information in the PPD file should be displayed
70 in addition to the detailed conformance testing results.
71
72 The -q, -v, and -vv options are mutually exclusive.
73
75 cupstestppd returns zero on success and non-zero on error. The error
76 codes are as follows:
77
78 1
79 Bad command-line arguments or missing PPD filename.
80
81 2
82 Unable to open or read PPD file.
83
84 3
85 The PPD file contains format errors that cannot be skipped.
86
87 4
88 The PPD file does not conform to the Adobe PPD specification.
89
91 The following command will test all PPD files under the current direc‐
92 tory and print the names of each file that does not conform:
93
94 find . -name \*.ppd \! -exec cupstestppd -q '{}' \; -print
95
96 The next command tests all PPD files under the current directory and
97 print detailed conformance testing results for the files that do not
98 conform:
99
100 find . -name \*.ppd \! -exec cupstestppd -q '{}' \; \
101 -exec cupstestppd -v '{}' \;
102
103
105 lpadmin(8),
106 http://localhost:631/help
107 Adobe PostScript Printer Description File Format Specification, Version
108 4.3.
109
111 Copyright 2007-2009 by Apple Inc.
112
113
114
1152 March 2009 CUPS cupstestppd(1)