2 <!-- SECTION: Specifications -->
4 <TITLE>CUPS Software Test Plan
</TITLE>
8 <P>This software test plan provides detailed tests that are used
9 to evaluate the stability and compliance of the Common UNIX
10 Printing System (
"CUPS") Version
1.2.
</P>
13 <H2 CLASS=
"title"><A NAME=
"PROCEDURE">Test Procedure
</A></H2>
15 <P>The test software and data files are located in the
16 <VAR>test
</VAR> subdirectory of the source distribution. A script
17 is provided to compile the
<CODE>ipptest
</CODE> program and run
18 all of the tests that follow, producing a success/fail
21 <P>The
<CODE>test
</CODE> target of the top-level makefile can be
22 used to run this script:
</P>
28 <P>or you can run the test script directly:
</P>
35 <P>A Software Test Report is stored in a HTML file in the
36 <VAR>test
</VAR> subdirectory at the conclusion of the test.
</P>
39 <H2 CLASS=
"title"><A NAME=
"IPP">IPP Compliance Tests
</A></H2>
41 <P>This section describes the tests used to validate the IPP
42 standards compliance of the CUPS server.
</P>
44 <H3>Request Tests
</H3>
46 <P>These tests verify that the CUPS scheduler only accepts valid
47 IPP requests that start with the
<CODE>attributes-charset
</CODE>
48 and
<CODE>attributes-natural-language
</CODE> attributes and also
49 contain a
<CODE>printer-uri
</CODE> or
<CODE>job-uri
</CODE>
52 <P>It also verifies that the CUPS scheduler always responds with
53 <CODE>attributes-charset
</CODE> and
54 <CODE>attributes-natural-language
</CODE> attributes, using
55 default values if they are not provided by the client.
</P>
57 <H3>CUPS Printer Operation Tests
</H3>
59 <P>These tests verify that the CUPS printer operations are
60 supported and function properly. Two printers called
61 <CODE>Test1
</CODE> and
<CODE>Test2
</CODE> are created, one as a
62 PostScript printer and one as a raster printer.
</P>
64 <H3>Job Operation Tests
</H3>
66 <P>These test verify that the CUPS scheduler accepts print jobs
67 for all supported file formats and that the
68 <CODE>cancel-job
</CODE>,
<CODE>hold-job
</CODE>, and
69 <CODE>resume-job
</CODE> operations work.
</P>
71 <H3>Subscription Operation Tests
</H3>
73 <P>These test verify that the CUPS scheduler accepts
74 subscriptions with print jobs and that all subscription
75 operations work as required by the IPP notification and mailto
79 <H2 CLASS=
"title"><A NAME=
"COMMAND">Command Tests
</A></H2>
81 <P>This section describes the tests used to validate the Berkeley
82 and System V commands included with CUPS.
</P>
86 <P>This test verifies that printers can be added, modified, and
87 defaulted using the
<CODE>lpadmin
</CODE> command.
</P>
91 <P>This test verifies that the
<CODE>lpc
</CODE> command can show
92 the current status of all print queues.
</P>
96 <P>This test verifies that the
<CODE>lpq
</CODE> command lists
97 any jobs in the queue.
</P>
101 <P>This test verifies that the
<CODE>lpstat
</CODE> command works
102 with all reports using the
"<CODE>-t</CODE>" option.
</P>
106 <P>This test verifies that the
<CODE>lp
</CODE> command works with
107 both the default destination and a specific destination.
</P>
111 <P>This test verifies that the
<CODE>lpr
</CODE> command works
112 with both the default destination and a specific destination.
</P>
116 <P>This test verifies that the
<CODE>lprm
</CODE> command can
117 properly cancel a job.
</P>
121 <P>This test verifies that the
<CODE>cancel
</CODE> command can
122 properly cancel a job or all jobs.
</P>
126 <P>This test verifies that the
<CODE>lpinfo
</CODE> command
127 returns a list of available printer drivers and devices.
</P>