]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # IPP/2.1 test suite. | |
3 | # | |
4 | # Copyright © 2007-2017 by Apple Inc. | |
5 | # Copyright © 2001-2006 by Easy Software Products. All rights reserved. | |
6 | # | |
7 | # Licensed under Apache License v2.0. See the file "LICENSE" for more | |
8 | # information. | |
9 | # | |
10 | # Usage: | |
11 | # | |
12 | # ./ipptool -V 2.1 -f filename -t printer-uri ipp-2.1.test | |
13 | # | |
14 | ||
15 | # Do all of the IPP/1.1 and IPP/2.0 tests as an IPP/2.1 client | |
16 | INCLUDE "ipp-2.0.test" | |
17 | ||
18 | ||
19 | # Test required printer description attribute support. | |
20 | # | |
21 | # Required by: PWG 5100.12 section 6.3 | |
22 | { | |
23 | NAME "PWG 5100.12 section 6.3 - Required Printer Description Attributes" | |
24 | OPERATION Get-Printer-Attributes | |
25 | GROUP operation-attributes-tag | |
26 | ATTR charset attributes-charset utf-8 | |
27 | ATTR naturalLanguage attributes-natural-language en | |
28 | ATTR uri printer-uri $uri | |
29 | ATTR name requesting-user-name $user | |
30 | ATTR mimeMediaType document-format application/octet-stream | |
31 | ||
32 | STATUS successful-ok | |
33 | ||
34 | # Job template attributes | |
35 | EXPECT job-hold-until-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 | |
36 | EXPECT job-hold-until-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE no-hold | |
37 | EXPECT job-priority-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
38 | EXPECT job-priority-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
39 | EXPECT job-settable-attributes-supported OF-TYPE keyword IN-GROUP printer-attributes-tag | |
40 | EXPECT job-sheets-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag | |
41 | EXPECT job-sheets-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE none | |
42 | EXPECT media-col-default OF-TYPE collection IN-GROUP printer-attributes-tag COUNT 1 | |
43 | EXPECT media-col-supported OF-TYPE keyword IN-GROUP printer-attributes-tag | |
44 | EXPECT media-col-supported WITH-VALUE media-size | |
45 | EXPECT media-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 | |
46 | EXPECT media-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag | |
47 | ||
48 | # Subscription attributes | |
49 | EXPECT notify-events-default OF-TYPE keyword IN-GROUP printer-attributes-tag | |
50 | EXPECT notify-events-supported OF-TYPE keyword IN-GROUP printer-attributes-tag | |
51 | EXPECT notify-lease-duration-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 | |
52 | EXPECT notify-lease-duration-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag | |
53 | EXPECT notify-max-events-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >1 | |
54 | EXPECT notify-pull-method-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE ippget | |
55 | ||
56 | # Printer description attributes | |
57 | EXPECT ippget-event-life OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 | |
58 | EXPECT multiple-operation-time-out OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 | |
59 | ||
60 | # Operations | |
61 | EXPECT operations-supported WITH-VALUE 0x0005 # Create-Job | |
62 | EXPECT operations-supported WITH-VALUE 0x0006 # Send-Document | |
63 | EXPECT operations-supported WITH-VALUE 0x000C # Hold-Job | |
64 | EXPECT operations-supported WITH-VALUE 0x000D # Release-Job | |
65 | EXPECT operations-supported WITH-VALUE 0x000E # Restart-Job | |
66 | EXPECT operations-supported WITH-VALUE 0x0010 # Pause-Printer | |
67 | EXPECT operations-supported WITH-VALUE 0x0011 # Resume-Printer | |
68 | EXPECT operations-supported WITH-VALUE 0x0012 # Purge-Jobs | |
69 | EXPECT operations-supported WITH-VALUE 0x0013 # Set-Printer-Attributes | |
70 | EXPECT operations-supported WITH-VALUE 0x0014 # Set-Job-Attributes | |
71 | EXPECT operations-supported WITH-VALUE 0x0015 # Get-Printer-Supported-Values | |
72 | EXPECT operations-supported WITH-VALUE 0x0016 # Create-Printer-Subscriptions | |
73 | EXPECT operations-supported WITH-VALUE 0x0018 # Get-Subscription-Attributes | |
74 | EXPECT operations-supported WITH-VALUE 0x0019 # Get-Subscriptions | |
75 | EXPECT operations-supported WITH-VALUE 0x001A # Renew-Subscription | |
76 | EXPECT operations-supported WITH-VALUE 0x001B # Cancel-Subscription | |
77 | EXPECT operations-supported WITH-VALUE 0x001C # Get-Notifications | |
78 | EXPECT operations-supported WITH-VALUE 0x0022 # Enable-Printer | |
79 | EXPECT operations-supported WITH-VALUE 0x0023 # Disable-Printer | |
80 | ||
81 | EXPECT ?printer-alert OF-TYPE octetString IN-GROUP printer-attributes-tag | |
82 | EXPECT ?printer-alert-description OF-TYPE text IN-GROUP printer-attributes-tag SAME-COUNT-AS printer-alert | |
83 | EXPECT printer-settable-attributes-supported OF-TYPE keyword IN-GROUP printer-attributes-tag | |
84 | EXPECT printer-state-change-time OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 | |
85 | EXPECT printer-state-reasons OF-TYPE keyword IN-GROUP printer-attributes-tag | |
86 | } |