]> git.ipfire.org Git - thirdparty/cups.git/blame - test/ipp-2.2.test
Import CUPS v1.7.1
[thirdparty/cups.git] / test / ipp-2.2.test
CommitLineData
83e08001 1#
61515785 2# "$Id: ipp-2.2.test 11396 2013-11-06 20:09:03Z msweet $"
83e08001
MS
3#
4# IPP/2.2 test suite.
5#
6# Copyright 2007-2011 by Apple Inc.
7# Copyright 2001-2006 by Easy Software Products. All rights reserved.
8#
9# These coded instructions, statements, and computer programs are the
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/".
14#
15# Usage:
16#
9b66acc5 17# ./ipptool -V 2.2 -f filename -t printer-uri ipp-2.2.test
83e08001
MS
18#
19
20# Do all of the IPP/1.1, IPP/2.0, and IPP/2.1 tests as an IPP/2.2 client
21INCLUDE "ipp-2.1.test"
22
23
24# Test required printer description attribute support.
25#
26# Required by: PWG 5100.12 section 6.4
27{
28 NAME "PWG 5100.12 section 6.4 - Required Printer Description Attributes"
29 OPERATION Get-Printer-Attributes
30 GROUP operation-attributes-tag
31 ATTR charset attributes-charset utf-8
32 ATTR naturalLanguage attributes-natural-language en
33 ATTR uri printer-uri $uri
34 ATTR name requesting-user-name $user
35 ATTR mimeMediaType document-format application/octet-stream
36
37 STATUS successful-ok
38
39 # Job template attributes
40 EXPECT number-up-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0
41 EXPECT number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0
42 EXPECT overrides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "document-numbers"
43 EXPECT overrides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "pages"
44 EXPECT page-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 1
45
46 # Printer description attributes
47 EXPECT job-creation-attributes-supported OF-TYPE keyword IN-GROUP printer-attributes-tag
48 EXPECT job-ids-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 1
d7225fc2
MS
49 EXPECT media-col-ready
50 EXPECT media-ready
83e08001
MS
51 EXPECT multiple-document-jobs-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 1
52 EXPECT printer-alert OF-TYPE octetString IN-GROUP printer-attributes-tag
53 EXPECT printer-alert-description OF-TYPE text IN-GROUP printer-attributes-tag SAME-COUNT-AS printer-alert
54 EXPECT printer-device-id OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1
55 EXPECT printer-message-from-operator OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/"
56 EXPECT which-jobs-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "completed"
57 EXPECT which-jobs-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "proof-print"
58 EXPECT which-jobs-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "not-completed"
59
60 # Operations
61 EXPECT operations-supported WITH-VALUE 0x0024 # Pause-Printer-After-Current-Job
62 EXPECT operations-supported WITH-VALUE 0x0025 # Hold-New-Jobs
63 EXPECT operations-supported WITH-VALUE 0x0026 # Release-Held-New-Jobs
64 EXPECT operations-supported WITH-VALUE 0x0029 # Restart-Printer
65 EXPECT operations-supported WITH-VALUE 0x002A # Shutdown-Printer
66 EXPECT operations-supported WITH-VALUE 0x002B # Startup-Printer
67 EXPECT operations-supported WITH-VALUE 0x002C # Reprocess-Job
68 EXPECT operations-supported WITH-VALUE 0x002D # Cancel-Current-Job
69 EXPECT operations-supported WITH-VALUE 0x002E # Suspend-Current-Job
70 EXPECT operations-supported WITH-VALUE 0x002F # Resume-Job
71 EXPECT operations-supported WITH-VALUE 0x0030 # Promote-Job
72 EXPECT operations-supported WITH-VALUE 0x0031 # Schedule-Job-After
73 EXPECT operations-supported WITH-VALUE 0x0033 # Cancel-Document
74 EXPECT operations-supported WITH-VALUE 0x0034 # Get-Document-Attributes
75 EXPECT operations-supported WITH-VALUE 0x0035 # Get-Documents
76 EXPECT operations-supported WITH-VALUE 0x0037 # Set-Document-Attributes
77 EXPECT operations-supported WITH-VALUE 0x0038 # Cancel-Jobs
78 EXPECT operations-supported WITH-VALUE 0x0039 # Cancel-My-Jobs
79 EXPECT operations-supported WITH-VALUE 0x003A # Resubmit-Job
80 EXPECT operations-supported WITH-VALUE 0x003B # Close-Job
81}
82
83
84#
61515785 85# End of "$Id: ipp-2.2.test 11396 2013-11-06 20:09:03Z msweet $".
83e08001 86#