1cupstestppd(1) Apple Inc. cupstestppd(1)
2
3
4
6 cupstestppd - test conformance of ppd files
7
9 cupstestppd [ -I category ] [ -R rootdir ] [ -W category ] [ -q ] [-r]
10 [ -v[v] ] filename.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 -I filename
28 Ignores all PCFileName warnings.
29
30 -I filters
31 Ignores all filter errors.
32
33 -I profiles
34 Ignores all profile errors.
35
36 -R rootdir
37 Specifies an alternate root directory for the filter, pre-filter,
38 and other support file checks.
39
40 -W constraints
41 Report all UIConstraint errors as warnings.
42
43 -W defaults
44 Except for size-related options, report all default option errors
45 as warnings.
46
47 -W filters
48 Report all filter errors as warnings.
49
50 -W profiles
51 Report all profile errors as warnings.
52
53 -W sizes
54 Report all media size errors as warnings.
55
56 -W translations
57 Report all translation errors as warnings.
58
59 -W all
60 Report all of the previous errors as warnings.
61
62 -W none
63 Report all of the previous errors as errors.
64
65 -q
66 Specifies that no information should be displayed.
67
68 -r
69 Relaxes the PPD conformance requirements so that common white‐
70 space, control character, and formatting problems are not treated
71 as hard errors.
72
73 -v
74 Specifies that detailed conformance testing results should be dis‐
75 played rather than the concise PASS/FAIL/ERROR status.
76
77 -vv
78 Specifies that all information in the PPD file should be displayed
79 in addition to the detailed conformance testing results.
80
81 The -q, -v, and -vv options are mutually exclusive.
82
84 cupstestppd returns zero on success and non-zero on error. The error
85 codes are as follows:
86
87 1
88 Bad command-line arguments or missing PPD filename.
89
90 2
91 Unable to open or read PPD file.
92
93 3
94 The PPD file contains format errors that cannot be skipped.
95
96 4
97 The PPD file does not conform to the Adobe PPD specification.
98
100 The following command will test all PPD files under the current direc‐
101 tory and print the names of each file that does not conform:
102
103 find . -name \*.ppd \! -exec cupstestppd -q '{}' \; -print
104
105 The next command tests all PPD files under the current directory and
106 print detailed conformance testing results for the files that do not
107 conform:
108
109 find . -name \*.ppd \! -exec cupstestppd -q '{}' \; \
110 -exec cupstestppd -v '{}' \;
111
112
114 lpadmin(8),
115 http://localhost:631/help
116 Adobe PostScript Printer Description File Format Specification, Version
117 4.3.
118
120 Copyright 2007-2009 by Apple Inc.
121
122
123
12419 November 2009 CUPS cupstestppd(1)