logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cupstestppd - test conformance of ppd files (deprecated)

Description

cupstestppd tests the conformance of PPD files to the Adobe PostScript Printer  Description  file  format
       specification  version  4.3.   It can also be used to list the supported options and available fonts in a
       PPD file.  The results of testing and any other output are sent to the standard output.

       The first form of cupstestppd tests one or more PPD files on the command-line.  The second form tests the
       PPD file provided on the standard input.

Examples

       The  following  command  will  test all PPD files under the current directory and print the names of each
       file that does not conform:

           find . -name \*.ppd \! -exec cupstestppd -q '{}' \; -print

       The next command tests all PPD files under the current directory and print detailed  conformance  testing
       results for the files that do not conform:

           find . -name \*.ppd \! -exec cupstestppd -q '{}' \; \
               -exec cupstestppd -v '{}' \;

Exit Status

cupstestppd returns zero on success and non-zero on error.  The error codes are as follows:

       1    Bad command-line arguments or missing PPD filename.

       2    Unable to open or read PPD file.

       3    The PPD file contains format errors that cannot be skipped.

       4    The PPD file does not conform to the Adobe PPD specification.

Name

       cupstestppd - test conformance of ppd files (deprecated)

Notes

       PPD  files  are deprecated and will no longer be supported in a future feature release of CUPS.  Printers
       that do not support IPP can be supported using applications such as ippeveprinter(1).

Options

cupstestppd supports the following options:

       -Ifilename
            Ignores all PCFileName warnings.

       -Ifilters
            Ignores all filter errors.

       -Iprofiles
            Ignores all profile errors.

       -Rrootdir
            Specifies an alternate root directory for the filter, pre-filter, and other support file checks.

       -Wconstraints
            Report all UIConstraint errors as warnings.

       -Wdefaults
            Except for size-related options, report all default option errors as warnings.

       -Wfilters
            Report all filter errors as warnings.

       -Wprofiles
            Report all profile errors as warnings.

       -Wsizes
            Report all media size errors as warnings.

       -Wtranslations
            Report all translation errors as warnings.

       -Wall
            Report all of the previous errors as warnings.

       -Wnone
            Report all of the previous errors as errors.

       -q   Specifies that no information should be displayed.

       -r   Relaxes the  PPD  conformance  requirements  so  that  common  whitespace,  control  character,  and
            formatting problems are not treated as hard errors.

       -v   Specifies  that  detailed  conformance  testing  results should be displayed rather than the concise
            PASS/FAIL/ERROR status.

       -vv  Specifies that all information in the PPD file should be  displayed  in  addition  to  the  detailed
            conformance testing results.

       The -q, -v, and -vv options are mutually exclusive.

See Also

lpadmin(8), CUPS Online Help  (http://localhost:631/help),  Adobe  PostScript  Printer  Description  File
       Format Specification, Version 4.3.

Synopsis

cupstestppd  [  -Icategory ] [ -Rrootdir ] [ -Wcategory ] [ -q ] [ -r ] [ -v[v] ] filename.ppd[.gz] [
       ...  filename.ppd[.gz] ]
       cupstestppd [ -Rrootdir ] [ -Wcategory ] [ -q ] [ -r ] [ -v[v] ] -

See Also