]>
Commit | Line | Data |
---|---|---|
f8b3a85b MS |
1 | # |
2 | # "$Id$" | |
3 | # | |
4 | # IPP/1.1 test suite. | |
5 | # | |
f99f3698 | 6 | # Copyright 2007-2011 by Apple Inc. |
f8b3a85b MS |
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 | # | |
83e08001 | 17 | # ./ipptool -f filename [-d document-uri=SOMEURI] -t printer-uri ipp-1.1.test |
f8b3a85b MS |
18 | # |
19 | ||
83e08001 MS |
20 | # Regular expressions for URI schemes: |
21 | # | |
22 | # HTTP_URI_SCHEME - Matches strings beginning with http:// or https:// | |
23 | # IPP_URI_SCHEME - Matches strings beginning with ipp:// or ipps:// | |
24 | ||
25 | DEFINE HTTP_URI_SCHEME "/^https?://.+$$/" | |
f99f3698 MS |
26 | DEFINE IPP_URI_SCHEME "/^ipps?://.+$$/" |
27 | ||
f8b3a85b MS |
28 | # Test that a request-id value of 0 is not accepted. |
29 | # | |
30 | # Required by: RFC 2911 section 3.1.1 | |
31 | { | |
83e08001 | 32 | NAME "RFC 2911 section 3.1.1: Bad request-id value 0" |
f8b3a85b MS |
33 | REQUEST-ID 0 |
34 | OPERATION Get-Printer-Attributes | |
35 | GROUP operation-attributes-tag | |
36 | ATTR charset attributes-charset utf-8 | |
37 | ATTR naturalLanguage attributes-natural-language en | |
38 | ATTR uri printer-uri $uri | |
39 | ||
40 | STATUS client-error-bad-request | |
41 | EXPECT !printer-uri-supported | |
42 | } | |
43 | ||
44 | ||
45 | # Test that the first two attributes must be attributes-charset and | |
46 | # attributes-natural-language. | |
47 | # | |
48 | # Required by: RFC 2911 section 3.1.4 | |
49 | { | |
83e08001 | 50 | NAME "RFC 2911 section 3.1.4: No Operation Attributes" |
f8b3a85b MS |
51 | REQUEST-ID random |
52 | OPERATION Get-Printer-Attributes | |
53 | GROUP operation-attributes-tag | |
54 | ||
55 | STATUS client-error-bad-request | |
56 | EXPECT !printer-uri-supported | |
57 | } | |
58 | { | |
83e08001 | 59 | NAME "RFC 2911 section 3.1.4: attributes-charset" |
f8b3a85b MS |
60 | OPERATION Get-Printer-Attributes |
61 | GROUP operation-attributes-tag | |
62 | ATTR charset attributes-charset utf-8 | |
63 | ATTR uri printer-uri $uri | |
64 | ||
65 | STATUS client-error-bad-request | |
66 | EXPECT !printer-uri-supported | |
67 | } | |
68 | { | |
83e08001 | 69 | NAME "RFC 2911 section 3.1.4: attributes-natural-language" |
f8b3a85b MS |
70 | OPERATION Get-Printer-Attributes |
71 | GROUP operation-attributes-tag | |
72 | ATTR naturalLanguage attributes-natural-language en | |
73 | ATTR uri printer-uri $uri | |
74 | ||
75 | STATUS client-error-bad-request | |
76 | EXPECT !printer-uri-supported | |
77 | } | |
78 | { | |
83e08001 | 79 | NAME "RFC 2911 section 3.1.4: attributes-natural-language + attributes-charset" |
f8b3a85b MS |
80 | OPERATION Get-Printer-Attributes |
81 | GROUP operation-attributes-tag | |
82 | ATTR naturalLanguage attributes-natural-language en | |
83 | ATTR charset attributes-charset utf-8 | |
84 | ATTR uri printer-uri $uri | |
85 | ||
86 | STATUS client-error-bad-request | |
87 | EXPECT !printer-uri-supported | |
88 | } | |
89 | { | |
83e08001 | 90 | NAME "RFC 2911 section 3.1.4: attributes-charset + attributes-natural-language" |
f8b3a85b MS |
91 | OPERATION Get-Printer-Attributes |
92 | GROUP operation-attributes-tag | |
93 | ATTR charset attributes-charset utf-8 | |
94 | ATTR naturalLanguage attributes-natural-language en | |
95 | ATTR uri printer-uri $uri | |
96 | ||
97 | STATUS successful-ok | |
f99f3698 | 98 | EXPECT printer-uri-supported OF-TYPE uri WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
99 | } |
100 | ||
101 | ||
102 | # Test that bad IPP versions are not supported. | |
103 | # | |
104 | # Required by: RFC 2911 section 3.1.8 | |
105 | { | |
106 | # The name of the test... | |
83e08001 | 107 | NAME "RFC 2911 section 3.1.8: Unsupported IPP version 0.0" |
f8b3a85b MS |
108 | VERSION 0.0 |
109 | OPERATION Get-Printer-Attributes | |
cc754834 | 110 | GROUP operation-attributes-tag |
f8b3a85b MS |
111 | ATTR charset attributes-charset utf-8 |
112 | ATTR naturalLanguage attributes-natural-language en | |
113 | ATTR uri printer-uri $uri | |
114 | ||
115 | STATUS server-error-version-not-supported | |
116 | EXPECT !printer-uri-supported | |
117 | } | |
118 | ||
119 | ||
120 | # Test that printer operations require the printer-uri operation attribute. | |
121 | # | |
122 | # Required by: RFC 2911 section 3.2 | |
123 | { | |
83e08001 | 124 | NAME "RFC 2911 section 3.2: No printer-uri operation attribute" |
f8b3a85b MS |
125 | OPERATION Get-Printer-Attributes |
126 | GROUP operation-attributes-tag | |
127 | ATTR charset attributes-charset utf-8 | |
128 | ATTR naturalLanguage attributes-natural-language en | |
129 | ||
130 | STATUS client-error-bad-request | |
131 | EXPECT !printer-uri-supported | |
132 | } | |
133 | ||
134 | ||
135 | # Test Print-Job operation | |
136 | # | |
137 | # Required by: RFC 2911 section 3.2.1 | |
138 | { | |
83e08001 | 139 | NAME "RFC 2911 section 3.2.1: Print-Job Operation" |
f8b3a85b MS |
140 | OPERATION Print-Job |
141 | GROUP operation-attributes-tag | |
142 | ATTR charset attributes-charset utf-8 | |
143 | ATTR naturalLanguage attributes-natural-language en | |
144 | ATTR uri printer-uri $uri | |
145 | ATTR name requesting-user-name $user | |
146 | ATTR name job-name $filename | |
147 | ATTR boolean ipp-attribute-fidelity false | |
148 | ATTR name document-name $filename | |
149 | ATTR keyword compression none | |
83e08001 | 150 | ATTR mimeMediaType document-format $filetype |
f8b3a85b MS |
151 | FILE $filename |
152 | ||
153 | STATUS successful-ok | |
154 | STATUS client-error-document-format-not-supported | |
83e08001 MS |
155 | STATUS server-error-job-canceled |
156 | STATUS server-error-busy REPEAT-MATCH | |
157 | ||
f99f3698 | 158 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
159 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag |
160 | WITH-VALUE >0 | |
161 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
162 | WITH-VALUE 3,4,5,6,7,8,9 | |
83e08001 | 163 | EXPECT job-state WITH-VALUE 7,8,9 DEFINE-MATCH PRINT_JOB_COMPLETED |
f8b3a85b MS |
164 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag |
165 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
166 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
167 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
168 | } | |
169 | ||
83e08001 MS |
170 | # Test Validate-Job operation |
171 | # | |
172 | # Required by: RFC 2911 section 3.2.3 | |
173 | { | |
174 | NAME "RFC 2911 section 3.2.3: Validate-Job Operation" | |
175 | OPERATION Validate-Job | |
176 | GROUP operation-attributes-tag | |
177 | ATTR charset attributes-charset utf-8 | |
178 | ATTR naturalLanguage attributes-natural-language en | |
179 | ATTR uri printer-uri $uri | |
180 | ATTR name requesting-user-name $user | |
181 | ATTR name job-name $filename | |
182 | ATTR boolean ipp-attribute-fidelity false | |
183 | ATTR name document-name $filename | |
184 | ATTR keyword compression none | |
185 | ATTR mimeMediaType document-format $filetype | |
186 | ||
187 | STATUS successful-ok | |
188 | } | |
189 | ||
190 | ||
f8b3a85b MS |
191 | # Test Get-Printer-Attributes operation |
192 | # | |
193 | # Required by: RFC 2911 section 3.2.5 | |
194 | { | |
83e08001 | 195 | NAME "RFC 2911 section 3.2.5: Get-Printer-Attributes Operation (default)" |
f8b3a85b MS |
196 | OPERATION Get-Printer-Attributes |
197 | GROUP operation-attributes-tag | |
198 | ATTR charset attributes-charset utf-8 | |
199 | ATTR naturalLanguage attributes-natural-language en | |
200 | ATTR uri printer-uri $uri | |
201 | ATTR name requesting-user-name $user | |
83e08001 | 202 | ATTR mimeMediaType document-format $filetype |
f8b3a85b MS |
203 | |
204 | STATUS successful-ok | |
205 | ||
9b66acc5 MS |
206 | # Display some useful information to identify the test |
207 | DISPLAY printer-name | |
208 | DISPLAY printer-make-and-model | |
209 | DISPLAY color-supported | |
210 | DISPLAY pages-per-minute | |
211 | DISPLAY pages-per-minute-color | |
212 | DISPLAY document-format-supported | |
213 | DISPLAY finishings-supported | |
214 | DISPLAY job-sheets-supported | |
215 | DISPLAY media-supported | |
216 | DISPLAY number-up-supported | |
217 | DISPLAY operations-supported | |
218 | DISPLAY print-quality-supported | |
219 | DISPLAY reference-uri-schemes-supported | |
220 | DISPLAY sizes-supported | |
221 | ||
f8b3a85b MS |
222 | # Job template attributes |
223 | EXPECT ?copies-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 | |
224 | EXPECT ?copies-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag | |
225 | EXPECT ?finishings-default OF-TYPE enum IN-GROUP printer-attributes-tag | |
226 | EXPECT ?finishings-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3 | |
227 | EXPECT ?job-hold-until-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 | |
228 | EXPECT ?job-hold-until-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE no-hold | |
229 | EXPECT ?job-priority-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
230 | EXPECT ?job-priority-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
231 | EXPECT ?job-sheets-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag | |
232 | EXPECT ?job-sheets-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE none | |
233 | EXPECT ?media-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 | |
234 | EXPECT ?media-ready OF-TYPE keyword|name IN-GROUP printer-attributes-tag | |
235 | EXPECT ?media-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag | |
236 | EXPECT ?multiple-document-handling-default OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
237 | EXPECT ?multiple-document-handling-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
238 | EXPECT ?number-up-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 | |
239 | EXPECT ?number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0 | |
240 | EXPECT ?number-up-supported WITH-VALUE 1 | |
241 | EXPECT ?orientation-requested-default OF-TYPE enum,no-value IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE no-value,3,4,5,6 | |
242 | EXPECT ?orientation-requested-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5,6 | |
243 | EXPECT ?pages-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag | |
244 | EXPECT ?print-quality-default OF-TYPE enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
245 | EXPECT ?print-quality-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5 | |
246 | EXPECT ?printer-resolution-default OF-TYPE resolution IN-GROUP printer-attributes-tag COUNT 1 | |
247 | EXPECT ?printer-resolution-supported OF-TYPE resolution IN-GROUP printer-attributes-tag | |
248 | EXPECT ?sides-default OF-TYPE keyword IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
249 | EXPECT ?sides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
250 | ||
83e08001 MS |
251 | # Job template attributes for specific tests... |
252 | EXPECT copies-supported WITH-VALUE >1 DEFINE-MATCH OPTIONAL_COPIES | |
253 | EXPECT document-format-supported WITH-VALUE "application/pdf" DEFINE-MATCH OPTIONAL_PDF | |
254 | EXPECT document-format-supported WITH-VALUE "application/postscript" DEFINE-MATCH OPTIONAL_POSTSCRIPT | |
255 | EXPECT document-format-supported WITH-VALUE "image/jpeg" DEFINE-MATCH OPTIONAL_JPEG | |
256 | EXPECT job-sheets-supported WITH-VALUE "standard" DEFINE-MATCH OPTIONAL_STANDARD_SHEET | |
9b66acc5 MS |
257 | EXPECT media-supported WITH-VALUE "/^(a4|iso-a4|iso_a4_210x297mm)$$/" DEFINE-VALUE OPTIONAL_A4_MEDIA |
258 | EXPECT media-supported WITH-VALUE "/^(letter|na-letter|na_letter_8.5x11in)$$/" DEFINE-VALUE OPTIONAL_LETTER_MEDIA | |
259 | EXPECT media-supported WITH-VALUE "/^(index-4x6|na_index-4x6_4x6in)$$/" DEFINE-VALUE OPTIONAL_4X6_MEDIA | |
83e08001 MS |
260 | EXPECT number-up-supported WITH-VALUE 2 DEFINE-MATCH OPTIONAL_2UP |
261 | EXPECT print-quality WITH-VALUE 3 DEFINE-MATCH OPTIONAL_DRAFT_QUALITY | |
262 | EXPECT print-quality WITH-VALUE 4 DEFINE-MATCH OPTIONAL_NORMAL_QUALITY | |
263 | EXPECT print-quality WITH-VALUE 5 DEFINE-MATCH OPTIONAL_BEST_QUALITY | |
264 | EXPECT sides-supported WITH-VALUE "two-sided-long-edge" DEFINE-MATCH OPTIONAL_DUPLEX | |
265 | ||
f8b3a85b MS |
266 | # Printer description attributes |
267 | EXPECT ?color-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 | |
268 | EXPECT ?job-impressions-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag COUNT 1 | |
269 | EXPECT ?job-k-octets-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag COUNT 1 | |
270 | EXPECT ?job-media-sheets-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag COUNT 1 | |
271 | EXPECT ?multiple-document-jobs-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 | |
272 | EXPECT ?multiple-operation-time-out OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 | |
273 | EXPECT ?pages-per-minute OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 | |
274 | EXPECT ?pages-per-minute-color OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 | |
275 | EXPECT ?printer-driver-installer OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 | |
276 | EXPECT ?printer-info OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/" | |
277 | EXPECT ?printer-location OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/" | |
278 | EXPECT ?printer-make-and-model OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/" | |
279 | EXPECT ?printer-message-from-operator OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/" | |
83e08001 MS |
280 | EXPECT ?printer-more-info OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" |
281 | EXPECT ?printer-more-info-manufacturer OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
f8b3a85b MS |
282 | EXPECT ?printer-state-message OF-TYPE text IN-GROUP printer-attributes-tag |
283 | EXPECT ?reference-uri-schemes-supported OF-TYPE uriScheme IN-GROUP printer-attributes-tag | |
284 | EXPECT charset-configured OF-TYPE charset IN-GROUP printer-attributes-tag COUNT 1 | |
285 | EXPECT charset-supported OF-TYPE charset IN-GROUP printer-attributes-tag WITH-VALUE utf-8 | |
286 | EXPECT compression-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE none | |
287 | EXPECT document-format-default OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag COUNT 1 | |
288 | EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag | |
289 | EXPECT generated-natural-language-supported OF-TYPE naturalLanguage IN-GROUP printer-attributes-tag | |
290 | EXPECT ipp-versions-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE 1.1 | |
291 | EXPECT natural-language-configured OF-TYPE naturalLanguage IN-GROUP printer-attributes-tag COUNT 1 | |
f8b3a85b MS |
292 | EXPECT pdl-override-supported OF-TYPE keyword IN-GROUP printer-attributes-tag COUNT 1 |
293 | EXPECT printer-is-accepting-jobs OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 | |
294 | EXPECT printer-name OF-TYPE name IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{1,127}$$/" | |
295 | EXPECT printer-state OF-TYPE enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
296 | EXPECT printer-state-reasons OF-TYPE keyword IN-GROUP printer-attributes-tag | |
297 | EXPECT printer-up-time OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 298 | EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag SAME-COUNT-AS uri-security-supported WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
299 | EXPECT queued-job-count OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 |
300 | EXPECT uri-authentication-supported OF-TYPE keyword IN-GROUP printer-attributes-tag | |
301 | EXPECT uri-security-supported OF-TYPE keyword IN-GROUP printer-attributes-tag SAME-COUNT-AS uri-authentication-supported | |
83e08001 MS |
302 | |
303 | # Operations | |
304 | EXPECT operations-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 0x0002 # Print-Job | |
305 | EXPECT operations-supported WITH-VALUE 0x0003 DEFINE-MATCH OPTIONAL_PRINT_URI # Print-URI | |
306 | EXPECT operations-supported WITH-VALUE 0x0004 # Validate-Job | |
307 | EXPECT operations-supported WITH-VALUE 0x0005 DEFINE-MATCH OPTIONAL_CREATE_JOB # Create-Job | |
308 | EXPECT operations-supported WITH-VALUE 0x0006 DEFINE-MATCH OPTIONAL_SEND_DOCUMENT # Send-Document | |
309 | EXPECT operations-supported WITH-VALUE 0x0007 DEFINE-MATCH OPTIONAL_SEND_URI # Send-URI | |
310 | EXPECT operations-supported WITH-VALUE 0x0008 # Cancel-Job | |
311 | EXPECT operations-supported WITH-VALUE 0x0009 # Get-Job-Attributes | |
312 | EXPECT operations-supported WITH-VALUE 0x000a # Get-Jobs | |
313 | EXPECT operations-supported WITH-VALUE 0x000b # Get-Printer-Attributes | |
314 | EXPECT operations-supported WITH-VALUE 0x000c DEFINE-MATCH OPTIONAL_HOLD_JOB # Hold-Job | |
315 | EXPECT operations-supported WITH-VALUE 0x000d DEFINE-MATCH OPTIONAL_RELEASE_JOB # Release-Job | |
316 | EXPECT operations-supported WITH-VALUE 0x000e DEFINE-MATCH OPTIONAL_RESTART_JOB # Restart-Job | |
317 | EXPECT operations-supported WITH-VALUE 0x0010 DEFINE-MATCH OPTIONAL_PAUSE_PRINTER # Pause-Printer | |
318 | EXPECT operations-supported WITH-VALUE 0x0011 DEFINE-MATCH OPTIONAL_RESUME_PRINTER # Resume-Printer | |
319 | EXPECT operations-supported WITH-VALUE 0x0012 DEFINE-MATCH OPTIONAL_PURGE_JOBS # Purge-Jobs | |
f8b3a85b MS |
320 | } |
321 | ||
322 | ||
323 | # Test Get-Printer-Attributes operation with requested-attributes | |
324 | # | |
325 | # Required by: RFC 2911 section 3.2.5 | |
326 | { | |
83e08001 | 327 | NAME "RFC 2911 section 3.2.5: Get-Printer-Attributes Operation (requested-attributes)" |
f8b3a85b MS |
328 | OPERATION Get-Printer-Attributes |
329 | GROUP operation-attributes-tag | |
330 | ATTR charset attributes-charset utf-8 | |
331 | ATTR naturalLanguage attributes-natural-language en | |
332 | ATTR uri printer-uri $uri | |
333 | ATTR name requesting-user-name $user | |
83e08001 | 334 | ATTR mimeMediaType document-format $filetype |
f8b3a85b MS |
335 | ATTR keyword requested-attributes printer-uri-supported |
336 | ||
337 | STATUS successful-ok | |
338 | ||
f99f3698 | 339 | EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
340 | EXPECT !printer-name |
341 | } | |
342 | ||
343 | ||
344 | # Test Get-Jobs operation | |
345 | # | |
346 | # Required by: RFC 2911 section 3.2.6 | |
347 | { | |
83e08001 | 348 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (default)" |
f8b3a85b MS |
349 | OPERATION Get-Jobs |
350 | GROUP operation-attributes-tag | |
351 | ATTR charset attributes-charset utf-8 | |
352 | ATTR naturalLanguage attributes-natural-language en | |
353 | ATTR uri printer-uri $uri | |
354 | ATTR name requesting-user-name $user | |
355 | ||
356 | STATUS successful-ok | |
83e08001 MS |
357 | EXPECT ?job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 |
358 | EXPECT ?job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" | |
f8b3a85b MS |
359 | EXPECT !job-printer-uri |
360 | EXPECT !job-more-info | |
361 | EXPECT !job-name | |
362 | EXPECT !job-originating-user-name | |
363 | EXPECT !job-state | |
364 | EXPECT !job-state-reasons | |
365 | EXPECT !job-state-message | |
366 | EXPECT !job-detailed-status-messages | |
367 | EXPECT !number-of-documents | |
368 | EXPECT !output-device-assigned | |
369 | EXPECT !time-at-creation | |
370 | EXPECT !time-at-processing | |
371 | EXPECT !time-at-completed | |
372 | EXPECT !job-printer-up-time | |
373 | EXPECT !date-time-at-creation | |
374 | EXPECT !date-time-at-processing | |
375 | EXPECT !date-time-at-completed | |
376 | EXPECT !number-of-intervening-jobs | |
377 | EXPECT !job-message-from-operator | |
378 | EXPECT !job-k-octets | |
379 | EXPECT !job-impressions | |
380 | EXPECT !job-media-sheets | |
381 | EXPECT !job-k-octets-processed | |
382 | EXPECT !job-impressions-completed | |
383 | EXPECT !job-media-sheets-completed | |
384 | ||
385 | EXPECT !copies | |
386 | EXPECT !finishings | |
387 | EXPECT !job-hold-until | |
388 | EXPECT !job-priority | |
389 | EXPECT !job-sheets | |
390 | EXPECT !media | |
391 | EXPECT !multiple-document-handling | |
392 | EXPECT !number-up | |
393 | EXPECT !orientation-requested | |
394 | EXPECT !pages-ranges | |
395 | EXPECT !print-quality | |
396 | EXPECT !printer-resolution | |
397 | EXPECT !sides | |
398 | } | |
399 | ||
400 | ||
401 | # Test Get-Jobs operation | |
402 | # | |
403 | # Required by: RFC 2911 section 3.2.6 | |
404 | { | |
83e08001 MS |
405 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED |
406 | ||
407 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (requested-attributes)" | |
f8b3a85b MS |
408 | OPERATION Get-Jobs |
409 | GROUP operation-attributes-tag | |
410 | ATTR charset attributes-charset utf-8 | |
411 | ATTR naturalLanguage attributes-natural-language en | |
412 | ATTR uri printer-uri $uri | |
413 | ATTR name requesting-user-name $user | |
414 | ATTR keyword requested-attributes all | |
415 | ||
416 | STATUS successful-ok | |
417 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 418 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
83e08001 MS |
419 | EXPECT job-printer-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
420 | EXPECT ?job-more-info OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
f8b3a85b MS |
421 | EXPECT job-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 |
422 | EXPECT job-originating-user-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
423 | EXPECT job-state OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >2,<10 | |
424 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
425 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
426 | EXPECT ?job-detailed-status-messages OF-TYPE text IN-GROUP job-attributes-tag | |
427 | EXPECT ?number-of-documents OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
428 | EXPECT ?output-device-assigned OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
429 | EXPECT time-at-creation OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE no-value,>-1 | |
430 | EXPECT time-at-processing OF-TYPE no-value,integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE no-value,>-1 | |
431 | EXPECT time-at-completed OF-TYPE no-value,integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE no-value,>-1 | |
432 | EXPECT job-printer-up-time OF-TYPE no-value,integer IN-GROUP job-attributes-tag COUNT 1 | |
433 | EXPECT ?date-time-at-creation OF-TYPE no-value,dateTime IN-GROUP job-attributes-tag COUNT 1 | |
434 | EXPECT ?date-time-at-processing OF-TYPE no-value,dateTime IN-GROUP job-attributes-tag COUNT 1 | |
435 | EXPECT ?date-time-at-completed OF-TYPE no-value,dateTime IN-GROUP job-attributes-tag COUNT 1 | |
436 | EXPECT ?number-of-intervening-jobs OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
437 | EXPECT ?job-message-from-operator OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
438 | EXPECT ?job-k-octets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
439 | EXPECT ?job-impressions OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
440 | EXPECT ?job-media-sheets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
441 | EXPECT ?job-k-octets-processed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
442 | EXPECT ?job-impressions-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
443 | EXPECT ?job-media-sheets-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
444 | ||
445 | EXPECT ?copies OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
446 | EXPECT ?finishings OF-TYPE enum IN-GROUP job-attributes-tag | |
447 | EXPECT ?job-hold-until OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
448 | EXPECT ?job-priority OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
449 | EXPECT ?job-sheets OF-TYPE keyword|name IN-GROUP job-attributes-tag | |
450 | EXPECT ?media OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
451 | EXPECT ?multiple-document-handling OF-TYPE keyword IN-GROUP job-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
452 | EXPECT ?number-up OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
453 | EXPECT ?orientation-requested OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 | |
454 | EXPECT ?pages-ranges OF-TYPE rangeOfInteger IN-GROUP job-attributes-tag | |
455 | EXPECT ?print-quality OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
456 | EXPECT ?printer-resolution OF-TYPE resolution IN-GROUP job-attributes-tag COUNT 1 | |
457 | EXPECT ?sides OF-TYPE keyword IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
458 | } | |
459 | ||
460 | ||
461 | # Test Get-Jobs operation | |
462 | # | |
463 | # Required by: RFC 2911 section 3.2.6 | |
464 | { | |
83e08001 MS |
465 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED |
466 | ||
467 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (my-jobs)" | |
f8b3a85b MS |
468 | OPERATION Get-Jobs |
469 | GROUP operation-attributes-tag | |
470 | ATTR charset attributes-charset utf-8 | |
471 | ATTR naturalLanguage attributes-natural-language en | |
472 | ATTR uri printer-uri $uri | |
473 | ATTR name requesting-user-name $user | |
474 | ATTR boolean my-jobs true | |
475 | ||
476 | STATUS successful-ok | |
477 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 478 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
479 | EXPECT !job-printer-uri |
480 | EXPECT !job-more-info | |
481 | EXPECT !job-name | |
482 | EXPECT !job-originating-user-name | |
483 | EXPECT !job-state | |
484 | EXPECT !job-state-reasons | |
485 | EXPECT !job-state-message | |
486 | EXPECT !job-detailed-status-messages | |
487 | EXPECT !number-of-documents | |
488 | EXPECT !output-device-assigned | |
489 | EXPECT !time-at-creation | |
490 | EXPECT !time-at-processing | |
491 | EXPECT !time-at-completed | |
492 | EXPECT !job-printer-up-time | |
493 | EXPECT !date-time-at-creation | |
494 | EXPECT !date-time-at-processing | |
495 | EXPECT !date-time-at-completed | |
496 | EXPECT !number-of-intervening-jobs | |
497 | EXPECT !job-message-from-operator | |
498 | EXPECT !job-k-octets | |
499 | EXPECT !job-impressions | |
500 | EXPECT !job-media-sheets | |
501 | EXPECT !job-k-octets-processed | |
502 | EXPECT !job-impressions-completed | |
503 | EXPECT !job-media-sheets-completed | |
504 | ||
505 | EXPECT !copies | |
506 | EXPECT !finishings | |
507 | EXPECT !job-hold-until | |
508 | EXPECT !job-priority | |
509 | EXPECT !job-sheets | |
510 | EXPECT !media | |
511 | EXPECT !multiple-document-handling | |
512 | EXPECT !number-up | |
513 | EXPECT !orientation-requested | |
514 | EXPECT !pages-ranges | |
515 | EXPECT !print-quality | |
516 | EXPECT !printer-resolution | |
517 | EXPECT !sides | |
518 | } | |
519 | ||
520 | ||
521 | # Test Get-Jobs operation | |
522 | # | |
523 | # Required by: RFC 2911 section 3.2.6 | |
524 | { | |
83e08001 MS |
525 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED |
526 | ||
7cf5915e MS |
527 | # Skip this test when doing authenticated printing since we'll always |
528 | # use the authenticated username over the requesting-user-name value. | |
529 | SKIP-IF-DEFINED uriuser | |
530 | ||
83e08001 | 531 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (my-jobs different user)" |
f8b3a85b MS |
532 | OPERATION Get-Jobs |
533 | GROUP operation-attributes-tag | |
534 | ATTR charset attributes-charset utf-8 | |
535 | ATTR naturalLanguage attributes-natural-language en | |
536 | ATTR uri printer-uri $uri | |
537 | ATTR name requesting-user-name not-$user | |
538 | ATTR boolean my-jobs true | |
539 | ||
540 | STATUS successful-ok | |
541 | EXPECT !job-id | |
542 | EXPECT !job-uri | |
543 | EXPECT !job-printer-uri | |
544 | EXPECT !job-more-info | |
545 | EXPECT !job-name | |
546 | EXPECT !job-originating-user-name | |
547 | EXPECT !job-state | |
548 | EXPECT !job-state-reasons | |
549 | EXPECT !job-state-message | |
550 | EXPECT !job-detailed-status-messages | |
551 | EXPECT !number-of-documents | |
552 | EXPECT !output-device-assigned | |
553 | EXPECT !time-at-creation | |
554 | EXPECT !time-at-processing | |
555 | EXPECT !time-at-completed | |
556 | EXPECT !job-printer-up-time | |
557 | EXPECT !date-time-at-creation | |
558 | EXPECT !date-time-at-processing | |
559 | EXPECT !date-time-at-completed | |
560 | EXPECT !number-of-intervening-jobs | |
561 | EXPECT !job-message-from-operator | |
562 | EXPECT !job-k-octets | |
563 | EXPECT !job-impressions | |
564 | EXPECT !job-media-sheets | |
565 | EXPECT !job-k-octets-processed | |
566 | EXPECT !job-impressions-completed | |
567 | EXPECT !job-media-sheets-completed | |
568 | ||
569 | EXPECT !copies | |
570 | EXPECT !finishings | |
571 | EXPECT !job-hold-until | |
572 | EXPECT !job-priority | |
573 | EXPECT !job-sheets | |
574 | EXPECT !media | |
575 | EXPECT !multiple-document-handling | |
576 | EXPECT !number-up | |
577 | EXPECT !orientation-requested | |
578 | EXPECT !pages-ranges | |
579 | EXPECT !print-quality | |
580 | EXPECT !printer-resolution | |
581 | EXPECT !sides | |
582 | } | |
583 | ||
584 | ||
585 | # Test Get-Jobs operation | |
586 | # | |
587 | # Required by: RFC 2911 section 3.2.6 | |
588 | { | |
83e08001 MS |
589 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED |
590 | ||
591 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (which-jobs=not-completed)" | |
f8b3a85b MS |
592 | OPERATION Get-Jobs |
593 | GROUP operation-attributes-tag | |
594 | ATTR charset attributes-charset utf-8 | |
595 | ATTR naturalLanguage attributes-natural-language en | |
596 | ATTR uri printer-uri $uri | |
597 | ATTR name requesting-user-name $user | |
598 | ATTR keyword which-jobs not-completed | |
599 | ||
600 | STATUS successful-ok | |
601 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 602 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
603 | EXPECT !job-printer-uri |
604 | EXPECT !job-more-info | |
605 | EXPECT !job-name | |
606 | EXPECT !job-originating-user-name | |
607 | EXPECT !job-state | |
608 | EXPECT !job-state-reasons | |
609 | EXPECT !job-state-message | |
610 | EXPECT !job-detailed-status-messages | |
611 | EXPECT !number-of-documents | |
612 | EXPECT !output-device-assigned | |
613 | EXPECT !time-at-creation | |
614 | EXPECT !time-at-processing | |
615 | EXPECT !time-at-completed | |
616 | EXPECT !job-printer-up-time | |
617 | EXPECT !date-time-at-creation | |
618 | EXPECT !date-time-at-processing | |
619 | EXPECT !date-time-at-completed | |
620 | EXPECT !number-of-intervening-jobs | |
621 | EXPECT !job-message-from-operator | |
622 | EXPECT !job-k-octets | |
623 | EXPECT !job-impressions | |
624 | EXPECT !job-media-sheets | |
625 | EXPECT !job-k-octets-processed | |
626 | EXPECT !job-impressions-completed | |
627 | EXPECT !job-media-sheets-completed | |
628 | ||
629 | EXPECT !copies | |
630 | EXPECT !finishings | |
631 | EXPECT !job-hold-until | |
632 | EXPECT !job-priority | |
633 | EXPECT !job-sheets | |
634 | EXPECT !media | |
635 | EXPECT !multiple-document-handling | |
636 | EXPECT !number-up | |
637 | EXPECT !orientation-requested | |
638 | EXPECT !pages-ranges | |
639 | EXPECT !print-quality | |
640 | EXPECT !printer-resolution | |
641 | EXPECT !sides | |
642 | } | |
643 | ||
644 | ||
f8b3a85b MS |
645 | # Test Get-Jobs operation |
646 | # | |
647 | # Required by: RFC 2911 section 3.2.6 | |
648 | { | |
83e08001 | 649 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (which-jobs=completed)" |
f8b3a85b MS |
650 | OPERATION Get-Jobs |
651 | GROUP operation-attributes-tag | |
652 | ATTR charset attributes-charset utf-8 | |
653 | ATTR naturalLanguage attributes-natural-language en | |
654 | ATTR uri printer-uri $uri | |
655 | ATTR name requesting-user-name $user | |
656 | ATTR keyword which-jobs completed | |
c7017ecc | 657 | DELAY 20 |
f8b3a85b MS |
658 | |
659 | STATUS successful-ok | |
660 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 661 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
662 | EXPECT !job-printer-uri |
663 | EXPECT !job-more-info | |
664 | EXPECT !job-name | |
665 | EXPECT !job-originating-user-name | |
666 | EXPECT !job-state | |
667 | EXPECT !job-state-reasons | |
668 | EXPECT !job-state-message | |
669 | EXPECT !job-detailed-status-messages | |
670 | EXPECT !number-of-documents | |
671 | EXPECT !output-device-assigned | |
672 | EXPECT !time-at-creation | |
673 | EXPECT !time-at-processing | |
674 | EXPECT !time-at-completed | |
675 | EXPECT !job-printer-up-time | |
676 | EXPECT !date-time-at-creation | |
677 | EXPECT !date-time-at-processing | |
678 | EXPECT !date-time-at-completed | |
679 | EXPECT !number-of-intervening-jobs | |
680 | EXPECT !job-message-from-operator | |
681 | EXPECT !job-k-octets | |
682 | EXPECT !job-impressions | |
683 | EXPECT !job-media-sheets | |
684 | EXPECT !job-k-octets-processed | |
685 | EXPECT !job-impressions-completed | |
686 | EXPECT !job-media-sheets-completed | |
687 | ||
688 | EXPECT !copies | |
689 | EXPECT !finishings | |
690 | EXPECT !job-hold-until | |
691 | EXPECT !job-priority | |
692 | EXPECT !job-sheets | |
693 | EXPECT !media | |
694 | EXPECT !multiple-document-handling | |
695 | EXPECT !number-up | |
696 | EXPECT !orientation-requested | |
697 | EXPECT !pages-ranges | |
698 | EXPECT !print-quality | |
699 | EXPECT !printer-resolution | |
700 | EXPECT !sides | |
701 | } | |
702 | ||
703 | ||
83e08001 MS |
704 | # Test Get-Jobs operation |
705 | # | |
706 | # Required by: RFC 2911 section 3.2.6 | |
707 | { | |
708 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED | |
709 | ||
710 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (which-jobs, requested-attributes)" | |
711 | OPERATION Get-Jobs | |
712 | GROUP operation-attributes-tag | |
713 | ATTR charset attributes-charset utf-8 | |
714 | ATTR naturalLanguage attributes-natural-language en | |
715 | ATTR uri printer-uri $uri | |
716 | ATTR name requesting-user-name $user | |
717 | ATTR keyword requested-attributes all | |
718 | ATTR keyword which-jobs completed | |
719 | ||
720 | STATUS successful-ok | |
721 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
722 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" | |
723 | EXPECT job-printer-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" | |
724 | EXPECT ?job-more-info OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
725 | EXPECT job-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
726 | EXPECT job-originating-user-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
727 | EXPECT job-state OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >2,<10 | |
728 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
729 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
730 | EXPECT ?job-detailed-status-messages OF-TYPE text IN-GROUP job-attributes-tag | |
731 | EXPECT ?number-of-documents OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
732 | EXPECT ?output-device-assigned OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
733 | EXPECT time-at-creation OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE no-value,>-1 | |
734 | EXPECT time-at-processing OF-TYPE no-value,integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE no-value,>-1 | |
735 | EXPECT time-at-completed OF-TYPE no-value,integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE no-value,>-1 | |
736 | EXPECT job-printer-up-time OF-TYPE no-value,integer IN-GROUP job-attributes-tag COUNT 1 | |
737 | EXPECT ?date-time-at-creation OF-TYPE no-value,dateTime IN-GROUP job-attributes-tag COUNT 1 | |
738 | EXPECT ?date-time-at-processing OF-TYPE no-value,dateTime IN-GROUP job-attributes-tag COUNT 1 | |
739 | EXPECT ?date-time-at-completed OF-TYPE no-value,dateTime IN-GROUP job-attributes-tag COUNT 1 | |
740 | EXPECT ?number-of-intervening-jobs OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
741 | EXPECT ?job-message-from-operator OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
742 | EXPECT ?job-k-octets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
743 | EXPECT ?job-impressions OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
744 | EXPECT ?job-media-sheets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
745 | EXPECT ?job-k-octets-processed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
746 | EXPECT ?job-impressions-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
747 | EXPECT ?job-media-sheets-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
748 | ||
749 | EXPECT ?copies OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
750 | EXPECT ?finishings OF-TYPE enum IN-GROUP job-attributes-tag | |
751 | EXPECT ?job-hold-until OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
752 | EXPECT ?job-priority OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
753 | EXPECT ?job-sheets OF-TYPE keyword|name IN-GROUP job-attributes-tag | |
754 | EXPECT ?media OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
755 | EXPECT ?multiple-document-handling OF-TYPE keyword IN-GROUP job-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
756 | EXPECT ?number-up OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
757 | EXPECT ?orientation-requested OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 | |
758 | EXPECT ?pages-ranges OF-TYPE rangeOfInteger IN-GROUP job-attributes-tag | |
759 | EXPECT ?print-quality OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
760 | EXPECT ?printer-resolution OF-TYPE resolution IN-GROUP job-attributes-tag COUNT 1 | |
761 | EXPECT ?sides OF-TYPE keyword IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
762 | } | |
763 | ||
764 | ||
f8b3a85b MS |
765 | # Test Cancel-Job operation |
766 | # | |
767 | # Required by: RFC 2911 section 3.3.3 | |
768 | { | |
83e08001 | 769 | NAME "RFC 2911 section 3.3.3: Cancel-Job Operation (completed job)" |
f8b3a85b MS |
770 | OPERATION Cancel-Job |
771 | GROUP operation-attributes-tag | |
772 | ATTR charset attributes-charset utf-8 | |
773 | ATTR naturalLanguage attributes-natural-language en | |
774 | ATTR uri printer-uri $uri | |
775 | ATTR integer job-id $job-id | |
776 | ATTR name requesting-user-name $user | |
777 | ||
778 | STATUS client-error-not-possible | |
779 | } | |
780 | ||
781 | ||
782 | # Test Print-Job operation | |
783 | # | |
784 | # Required by: RFC 2911 section 3.2.1 | |
785 | { | |
83e08001 | 786 | NAME "RFC 2911 section 3.2.1: Print-Job Operation" |
f8b3a85b MS |
787 | OPERATION Print-Job |
788 | GROUP operation-attributes-tag | |
789 | ATTR charset attributes-charset utf-8 | |
790 | ATTR naturalLanguage attributes-natural-language en | |
791 | ATTR uri printer-uri $uri | |
792 | ATTR name requesting-user-name $user | |
793 | ATTR name job-name $filename | |
794 | ATTR boolean ipp-attribute-fidelity false | |
795 | ATTR name document-name $filename | |
796 | ATTR keyword compression none | |
83e08001 | 797 | ATTR mimeMediaType document-format $filetype |
f8b3a85b MS |
798 | FILE $filename |
799 | ||
800 | STATUS successful-ok | |
801 | STATUS client-error-document-format-not-supported | |
83e08001 MS |
802 | STATUS server-error-job-canceled |
803 | STATUS server-error-busy REPEAT-MATCH | |
804 | ||
f99f3698 | 805 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
806 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag |
807 | WITH-VALUE >0 | |
808 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
809 | WITH-VALUE 3,4,5,6,7,8,9 | |
810 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
811 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
812 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
813 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
814 | } | |
815 | ||
816 | ||
817 | # Test Cancel-Job operation | |
818 | # | |
819 | # Required by: RFC 2911 section 3.3.3 | |
820 | { | |
83e08001 | 821 | NAME "RFC 2911 section 3.3.3: Cancel-Job Operation (pending/processing job)" |
f8b3a85b MS |
822 | OPERATION Cancel-Job |
823 | GROUP operation-attributes-tag | |
824 | ATTR charset attributes-charset utf-8 | |
825 | ATTR naturalLanguage attributes-natural-language en | |
826 | ATTR uri printer-uri $uri | |
827 | ATTR integer job-id $job-id | |
828 | ATTR name requesting-user-name $user | |
829 | ||
830 | STATUS successful-ok | |
c779abb0 | 831 | STATUS client-error-not-possible |
f8b3a85b MS |
832 | } |
833 | ||
834 | ||
835 | # Test Get-Job-Attributes operation | |
836 | # | |
837 | # Required by: RFC 2911 section 3.3.4 | |
838 | { | |
83e08001 | 839 | NAME "RFC 2911 section 3.3.4: Get-Job-Attributes Operation" |
f8b3a85b MS |
840 | OPERATION Get-Job-Attributes |
841 | GROUP operation-attributes-tag | |
842 | ATTR charset attributes-charset utf-8 | |
843 | ATTR naturalLanguage attributes-natural-language en | |
844 | ATTR uri printer-uri $uri | |
845 | ATTR integer job-id $job-id | |
846 | ATTR name requesting-user-name $user | |
847 | ||
848 | STATUS successful-ok | |
849 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 850 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
83e08001 MS |
851 | EXPECT job-printer-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
852 | EXPECT ?job-more-info OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
f8b3a85b MS |
853 | EXPECT job-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 |
854 | EXPECT job-originating-user-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
855 | EXPECT job-state OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >2,<10 | |
856 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
857 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
858 | EXPECT ?job-detailed-status-messages OF-TYPE text IN-GROUP job-attributes-tag | |
859 | EXPECT ?number-of-documents OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
860 | EXPECT ?output-device-assigned OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
861 | EXPECT time-at-creation OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE no-value,>-1 | |
862 | EXPECT time-at-processing OF-TYPE no-value,integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE no-value,>-1 | |
863 | EXPECT time-at-completed OF-TYPE no-value,integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE no-value,>-1 | |
864 | EXPECT job-printer-up-time OF-TYPE no-value,integer IN-GROUP job-attributes-tag COUNT 1 | |
865 | EXPECT ?date-time-at-creation OF-TYPE no-value,dateTime IN-GROUP job-attributes-tag COUNT 1 | |
866 | EXPECT ?date-time-at-processing OF-TYPE no-value,dateTime IN-GROUP job-attributes-tag COUNT 1 | |
867 | EXPECT ?date-time-at-completed OF-TYPE no-value,dateTime IN-GROUP job-attributes-tag COUNT 1 | |
868 | EXPECT ?number-of-intervening-jobs OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
869 | EXPECT ?job-message-from-operator OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
870 | EXPECT ?job-k-octets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
871 | EXPECT ?job-impressions OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
872 | EXPECT ?job-media-sheets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
873 | EXPECT ?job-k-octets-processed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
874 | EXPECT ?job-impressions-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
875 | EXPECT ?job-media-sheets-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
876 | ||
877 | EXPECT ?copies OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
878 | EXPECT ?finishings OF-TYPE enum IN-GROUP job-attributes-tag | |
879 | EXPECT ?job-hold-until OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
880 | EXPECT ?job-priority OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
881 | EXPECT ?job-sheets OF-TYPE keyword|name IN-GROUP job-attributes-tag | |
882 | EXPECT ?media OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
883 | EXPECT ?multiple-document-handling OF-TYPE keyword IN-GROUP job-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
884 | EXPECT ?number-up OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
885 | EXPECT ?orientation-requested OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 | |
886 | EXPECT ?pages-ranges OF-TYPE rangeOfInteger IN-GROUP job-attributes-tag | |
887 | EXPECT ?print-quality OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
888 | EXPECT ?printer-resolution OF-TYPE resolution IN-GROUP job-attributes-tag COUNT 1 | |
889 | EXPECT ?sides OF-TYPE keyword IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
890 | } | |
891 | ||
892 | ||
83e08001 MS |
893 | # Test Print-URI operation |
894 | # | |
895 | # Defined by: RFC 2911 section 3.2.2 | |
896 | { | |
897 | SKIP-IF-NOT-DEFINED OPTIONAL_PRINT_URI | |
898 | SKIP-IF-NOT-DEFINED document-uri | |
899 | ||
900 | NAME "RFC 2911 section 3.2.2: Print-URI Operation" | |
901 | OPERATION Print-URI | |
902 | GROUP operation-attributes-tag | |
903 | ATTR charset attributes-charset utf-8 | |
904 | ATTR naturalLanguage attributes-natural-language en | |
905 | ATTR uri printer-uri $uri | |
906 | ATTR name requesting-user-name $user | |
907 | ATTR name job-name $filename | |
908 | ATTR boolean ipp-attribute-fidelity false | |
909 | ATTR name document-name $filename | |
910 | ATTR keyword compression none | |
911 | ATTR uri document-uri $document-uri | |
912 | ||
913 | STATUS successful-ok | |
914 | STATUS server-error-job-canceled | |
915 | STATUS server-error-busy REPEAT-MATCH | |
916 | ||
917 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
918 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
919 | WITH-VALUE >0 | |
920 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
921 | WITH-VALUE 3,4,5,6,7,8,9 | |
922 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
923 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
924 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
925 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
926 | } | |
927 | ||
928 | ||
929 | # Test Print-URI operation with bad document-uri | |
930 | # | |
931 | # Defined by: RFC 2911 section 3.2.2 | |
932 | { | |
933 | SKIP-IF-NOT-DEFINED OPTIONAL_PRINT_URI | |
934 | ||
935 | NAME "Print-URI with bad URI: Print-URI Operation" | |
936 | OPERATION Print-URI | |
937 | GROUP operation-attributes-tag | |
938 | ATTR charset attributes-charset utf-8 | |
939 | ATTR naturalLanguage attributes-natural-language en | |
940 | ATTR uri printer-uri $uri | |
941 | ATTR name requesting-user-name $user | |
942 | ATTR name job-name $filename | |
943 | ATTR boolean ipp-attribute-fidelity false | |
944 | ATTR name document-name $filename | |
945 | ATTR keyword compression none | |
946 | ATTR uri document-uri "bogus://bogus" | |
947 | ||
948 | STATUS client-error-uri-scheme-not-supported | |
949 | ||
950 | EXPECT !job-uri | |
951 | EXPECT !job-id | |
952 | EXPECT !job-state | |
953 | EXPECT !job-state-reasons | |
954 | EXPECT !job-state-message | |
955 | } | |
956 | ||
957 | ||
958 | # Test Create-Job and Send-Document operations | |
959 | # | |
960 | # Defined by: RFC 2911 section 3.2.4 and 3.3.1 | |
961 | { | |
962 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
963 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
964 | ||
965 | NAME "RFC 2911 section 3.2.4: Create-Job Operation" | |
966 | OPERATION Create-Job | |
967 | GROUP operation-attributes-tag | |
968 | ATTR charset attributes-charset utf-8 | |
969 | ATTR naturalLanguage attributes-natural-language en | |
970 | ATTR uri printer-uri $uri | |
971 | ATTR name requesting-user-name $user | |
972 | ATTR name job-name $filename | |
973 | ATTR boolean ipp-attribute-fidelity false | |
974 | ||
975 | STATUS successful-ok | |
976 | ||
977 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
978 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
979 | WITH-VALUE >0 | |
980 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
981 | WITH-VALUE 3,4,5,6,7,8,9 | |
982 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
983 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
984 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
985 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
986 | } | |
987 | ||
988 | { | |
989 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
990 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
9b66acc5 | 991 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
992 | |
993 | NAME "RFC 2911 section 3.3.1: Send-Document Operation" | |
994 | OPERATION Send-Document | |
995 | GROUP operation-attributes-tag | |
996 | ATTR charset attributes-charset utf-8 | |
997 | ATTR naturalLanguage attributes-natural-language en | |
998 | ATTR uri printer-uri $uri | |
999 | ATTR integer job-id $job-id | |
1000 | ATTR name requesting-user-name $user | |
1001 | ATTR boolean last-document true | |
1002 | ATTR name document-name $filename | |
1003 | ATTR keyword compression none | |
1004 | ATTR mimeMediaType document-format $filetype | |
1005 | FILE $filename | |
1006 | ||
1007 | STATUS successful-ok | |
1008 | STATUS client-error-document-format-not-supported | |
1009 | STATUS server-error-job-canceled | |
1010 | } | |
1011 | ||
1012 | # Test Create-Job and Send-Document operations (no last-document) | |
1013 | # | |
1014 | # Defined by: RFC 2911 section 3.2.4 and 3.3.1 | |
1015 | { | |
1016 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1017 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
1018 | ||
1019 | NAME "Send-Document missing last-document: Create-Job Operation" | |
1020 | OPERATION Create-Job | |
1021 | GROUP operation-attributes-tag | |
1022 | ATTR charset attributes-charset utf-8 | |
1023 | ATTR naturalLanguage attributes-natural-language en | |
1024 | ATTR uri printer-uri $uri | |
1025 | ATTR name requesting-user-name $user | |
1026 | ATTR name job-name $filename | |
1027 | ATTR boolean ipp-attribute-fidelity false | |
1028 | ||
1029 | STATUS successful-ok | |
1030 | ||
1031 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1032 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1033 | WITH-VALUE >0 | |
1034 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1035 | WITH-VALUE 3,4,5,6,7,8,9 | |
1036 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1037 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1038 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1039 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1040 | } | |
1041 | ||
1042 | { | |
1043 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1044 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
9b66acc5 | 1045 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1046 | |
1047 | NAME "Send-Document missing last-document: Send-Document Operation" | |
1048 | OPERATION Send-Document | |
1049 | GROUP operation-attributes-tag | |
1050 | ATTR charset attributes-charset utf-8 | |
1051 | ATTR naturalLanguage attributes-natural-language en | |
1052 | ATTR uri printer-uri $uri | |
1053 | ATTR integer job-id $job-id | |
1054 | ATTR name requesting-user-name $user | |
1055 | ATTR name document-name $filename | |
1056 | ATTR keyword compression none | |
1057 | ATTR mimeMediaType document-format $filetype | |
1058 | FILE $filename | |
1059 | ||
1060 | STATUS client-error-bad-request | |
1061 | } | |
1062 | ||
1063 | { | |
1064 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1065 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
9b66acc5 | 1066 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1067 | |
1068 | NAME "RFC 2911 section 3.3.3: Cancel-Job Operation" | |
1069 | OPERATION Cancel-Job | |
1070 | GROUP operation-attributes-tag | |
1071 | ATTR charset attributes-charset utf-8 | |
1072 | ATTR naturalLanguage attributes-natural-language en | |
1073 | ATTR uri printer-uri $uri | |
1074 | ATTR integer job-id $job-id | |
1075 | ATTR name requesting-user-name $user | |
1076 | ||
1077 | STATUS successful-ok | |
1078 | STATUS server-error-job-canceled | |
1079 | } | |
1080 | ||
1081 | # Test Create-Job and Send-URI operations | |
1082 | # | |
1083 | # Defined by: RFC 2911 section 3.2.4 and 3.3.2 | |
1084 | { | |
1085 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1086 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
1087 | SKIP-IF-NOT-DEFINED document-uri | |
1088 | ||
1089 | NAME "RFC 2911 section 3.2.4: Create-Job Operation" | |
1090 | OPERATION Create-Job | |
1091 | GROUP operation-attributes-tag | |
1092 | ATTR charset attributes-charset utf-8 | |
1093 | ATTR naturalLanguage attributes-natural-language en | |
1094 | ATTR uri printer-uri $uri | |
1095 | ATTR name requesting-user-name $user | |
1096 | ATTR name job-name $filename | |
1097 | ATTR boolean ipp-attribute-fidelity false | |
1098 | ||
1099 | STATUS successful-ok | |
1100 | ||
1101 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1102 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1103 | WITH-VALUE >0 | |
1104 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1105 | WITH-VALUE 3,4,5,6,7,8,9 | |
1106 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1107 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1108 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1109 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1110 | } | |
1111 | ||
1112 | { | |
1113 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1114 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
1115 | SKIP-IF-NOT-DEFINED document-uri | |
9b66acc5 | 1116 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1117 | |
1118 | NAME "RFC 2911 section 3.3.2: Send-URI Operation" | |
1119 | OPERATION Send-URI | |
1120 | GROUP operation-attributes-tag | |
1121 | ATTR charset attributes-charset utf-8 | |
1122 | ATTR naturalLanguage attributes-natural-language en | |
1123 | ATTR uri printer-uri $uri | |
1124 | ATTR integer job-id $job-id | |
1125 | ATTR name requesting-user-name $user | |
1126 | ATTR boolean last-document true | |
1127 | ATTR name document-name $filename | |
1128 | ATTR keyword compression none | |
1129 | ATTR uri document-uri $document-uri | |
1130 | ||
1131 | STATUS successful-ok | |
1132 | STATUS server-error-job-canceled | |
1133 | } | |
1134 | ||
1135 | ||
1136 | # Test Create-Job and Send-URI operations (bad URI) | |
1137 | # | |
1138 | # Defined by: RFC 2911 section 3.2.4 and 3.3.2 | |
1139 | { | |
1140 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1141 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
1142 | ||
1143 | NAME "Send-URI with bad URI: Create-Job Operation" | |
1144 | OPERATION Create-Job | |
1145 | GROUP operation-attributes-tag | |
1146 | ATTR charset attributes-charset utf-8 | |
1147 | ATTR naturalLanguage attributes-natural-language en | |
1148 | ATTR uri printer-uri $uri | |
1149 | ATTR name requesting-user-name $user | |
1150 | ATTR name job-name $filename | |
1151 | ATTR boolean ipp-attribute-fidelity false | |
1152 | ||
1153 | STATUS successful-ok | |
1154 | ||
1155 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1156 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1157 | WITH-VALUE >0 | |
1158 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1159 | WITH-VALUE 3,4,5,6,7,8,9 | |
1160 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1161 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1162 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1163 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1164 | } | |
1165 | ||
1166 | { | |
1167 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1168 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
9b66acc5 | 1169 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1170 | |
1171 | NAME "Send-URI with bad URI: Send-URI Operation (bad URI)" | |
1172 | OPERATION Send-URI | |
1173 | GROUP operation-attributes-tag | |
1174 | ATTR charset attributes-charset utf-8 | |
1175 | ATTR naturalLanguage attributes-natural-language en | |
1176 | ATTR uri printer-uri $uri | |
1177 | ATTR integer job-id $job-id | |
1178 | ATTR name requesting-user-name $user | |
1179 | ATTR boolean last-document true | |
1180 | ATTR name document-name $filename | |
1181 | ATTR keyword compression none | |
1182 | ATTR mimeMediaType document-format $filetype | |
1183 | ATTR uri document-uri "bogus://bogus" | |
1184 | ||
1185 | STATUS client-error-uri-scheme-not-supported | |
1186 | } | |
1187 | ||
1188 | { | |
1189 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1190 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
9b66acc5 | 1191 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1192 | |
1193 | NAME "Send-URI with bad URI: Cancel-Job Operation" | |
1194 | OPERATION Cancel-Job | |
1195 | GROUP operation-attributes-tag | |
1196 | ATTR charset attributes-charset utf-8 | |
1197 | ATTR naturalLanguage attributes-natural-language en | |
1198 | ATTR uri printer-uri $uri | |
1199 | ATTR integer job-id $job-id | |
1200 | ATTR name requesting-user-name $user | |
1201 | ||
1202 | STATUS successful-ok | |
1203 | STATUS server-error-job-canceled | |
1204 | } | |
1205 | ||
1206 | ||
1207 | # Test multiple copy output | |
1208 | { | |
1209 | SKIP-IF-NOT-DEFINED OPTIONAL_COPIES | |
1210 | ||
1211 | NAME "Print-Job with copies" | |
1212 | OPERATION Print-Job | |
1213 | GROUP operation-attributes-tag | |
1214 | ATTR charset attributes-charset utf-8 | |
1215 | ATTR naturalLanguage attributes-natural-language en | |
1216 | ATTR uri printer-uri $uri | |
1217 | ATTR name requesting-user-name $user | |
1218 | ATTR name job-name $filename | |
1219 | ATTR boolean ipp-attribute-fidelity false | |
1220 | ATTR name document-name $filename | |
1221 | ATTR keyword compression none | |
1222 | ATTR mimeMediaType document-format $filetype | |
1223 | GROUP job-attributes-tag | |
1224 | ATTR integer copies 2 | |
1225 | FILE $filename | |
1226 | ||
1227 | STATUS successful-ok | |
1228 | STATUS client-error-document-format-not-supported | |
1229 | STATUS server-error-job-canceled | |
1230 | STATUS server-error-busy REPEAT-MATCH | |
1231 | ||
1232 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1233 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1234 | WITH-VALUE >0 | |
1235 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1236 | WITH-VALUE 3,4,5,6,7,8,9 | |
1237 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1238 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1239 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1240 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1241 | } | |
1242 | ||
1243 | ||
1244 | # Test PDF output | |
1245 | { | |
1246 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1247 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1248 | ||
1249 | NAME "Print-Job with A4 PDF" | |
1250 | OPERATION Print-Job | |
1251 | GROUP operation-attributes-tag | |
1252 | ATTR charset attributes-charset utf-8 | |
1253 | ATTR naturalLanguage attributes-natural-language en | |
1254 | ATTR uri printer-uri $uri | |
1255 | ATTR name requesting-user-name $user | |
1256 | ATTR name job-name "A4 Test Document" | |
1257 | ATTR boolean ipp-attribute-fidelity false | |
1258 | ATTR name document-name document-a4.pdf | |
1259 | ATTR keyword compression none | |
1260 | ATTR mimeMediaType document-format application/pdf | |
1261 | GROUP job-attributes-tag | |
9b66acc5 | 1262 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1263 | FILE document-a4.pdf |
1264 | ||
1265 | STATUS successful-ok | |
1266 | STATUS server-error-job-canceled | |
1267 | STATUS server-error-busy REPEAT-MATCH | |
1268 | ||
1269 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1270 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1271 | WITH-VALUE >0 | |
1272 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1273 | WITH-VALUE 3,4,5,6,7,8,9 | |
1274 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1275 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1276 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1277 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1278 | } | |
1279 | ||
1280 | { | |
1281 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1282 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1283 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1284 | ||
1285 | NAME "Print-Job with A4 PDF, Duplex" | |
1286 | OPERATION Print-Job | |
1287 | GROUP operation-attributes-tag | |
1288 | ATTR charset attributes-charset utf-8 | |
1289 | ATTR naturalLanguage attributes-natural-language en | |
1290 | ATTR uri printer-uri $uri | |
1291 | ATTR name requesting-user-name $user | |
1292 | ATTR name job-name "A4 Test Document, Duplex" | |
1293 | ATTR boolean ipp-attribute-fidelity false | |
1294 | ATTR name document-name document-a4.pdf | |
1295 | ATTR keyword compression none | |
1296 | ATTR mimeMediaType document-format application/pdf | |
1297 | GROUP job-attributes-tag | |
9b66acc5 | 1298 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1299 | ATTR keyword sides two-sided-long-edge |
1300 | FILE document-a4.pdf | |
1301 | ||
1302 | STATUS successful-ok | |
1303 | STATUS server-error-job-canceled | |
1304 | STATUS server-error-busy REPEAT-MATCH | |
1305 | ||
1306 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1307 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1308 | WITH-VALUE >0 | |
1309 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1310 | WITH-VALUE 3,4,5,6,7,8,9 | |
1311 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1312 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1313 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1314 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1315 | } | |
1316 | ||
1317 | { | |
1318 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1319 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1320 | ||
1321 | NAME "Print-Job with US Letter PDF" | |
1322 | OPERATION Print-Job | |
1323 | GROUP operation-attributes-tag | |
1324 | ATTR charset attributes-charset utf-8 | |
1325 | ATTR naturalLanguage attributes-natural-language en | |
1326 | ATTR uri printer-uri $uri | |
1327 | ATTR name requesting-user-name $user | |
1328 | ATTR name job-name "US Letter Test Document" | |
1329 | ATTR boolean ipp-attribute-fidelity false | |
1330 | ATTR name document-name document-letter.pdf | |
1331 | ATTR keyword compression none | |
1332 | ATTR mimeMediaType document-format application/pdf | |
1333 | GROUP job-attributes-tag | |
9b66acc5 | 1334 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1335 | FILE document-letter.pdf |
1336 | ||
1337 | STATUS successful-ok | |
1338 | STATUS server-error-job-canceled | |
1339 | STATUS server-error-busy REPEAT-MATCH | |
1340 | ||
1341 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1342 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1343 | WITH-VALUE >0 | |
1344 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1345 | WITH-VALUE 3,4,5,6,7,8,9 | |
1346 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1347 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1348 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1349 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1350 | } | |
1351 | ||
1352 | { | |
1353 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1354 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1355 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1356 | ||
1357 | NAME "Print-Job with US Letter PDF, Duplex" | |
1358 | OPERATION Print-Job | |
1359 | GROUP operation-attributes-tag | |
1360 | ATTR charset attributes-charset utf-8 | |
1361 | ATTR naturalLanguage attributes-natural-language en | |
1362 | ATTR uri printer-uri $uri | |
1363 | ATTR name requesting-user-name $user | |
1364 | ATTR name job-name "US Letter Test Document, Duplex" | |
1365 | ATTR boolean ipp-attribute-fidelity false | |
1366 | ATTR name document-name document-letter.pdf | |
1367 | ATTR keyword compression none | |
1368 | ATTR mimeMediaType document-format application/pdf | |
1369 | GROUP job-attributes-tag | |
9b66acc5 | 1370 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1371 | ATTR keyword sides two-sided-long-edge |
1372 | FILE document-letter.pdf | |
1373 | ||
1374 | STATUS successful-ok | |
1375 | STATUS server-error-job-canceled | |
1376 | STATUS server-error-busy REPEAT-MATCH | |
1377 | ||
1378 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1379 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1380 | WITH-VALUE >0 | |
1381 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1382 | WITH-VALUE 3,4,5,6,7,8,9 | |
1383 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1384 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1385 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1386 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1387 | } | |
1388 | ||
1389 | ||
1390 | # Test PostScript output | |
1391 | { | |
1392 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1393 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1394 | ||
1395 | NAME "Print-Job with A4 PostScript" | |
1396 | OPERATION Print-Job | |
1397 | GROUP operation-attributes-tag | |
1398 | ATTR charset attributes-charset utf-8 | |
1399 | ATTR naturalLanguage attributes-natural-language en | |
1400 | ATTR uri printer-uri $uri | |
1401 | ATTR name requesting-user-name $user | |
1402 | ATTR name job-name "A4 Test Document, Duplex" | |
1403 | ATTR boolean ipp-attribute-fidelity false | |
1404 | ATTR name document-name document-a4.ps | |
1405 | ATTR keyword compression none | |
1406 | ATTR mimeMediaType document-format application/postscript | |
1407 | GROUP job-attributes-tag | |
9b66acc5 | 1408 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1409 | FILE document-a4.ps |
1410 | ||
1411 | STATUS successful-ok | |
1412 | STATUS server-error-job-canceled | |
1413 | STATUS server-error-busy REPEAT-MATCH | |
1414 | ||
1415 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1416 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1417 | WITH-VALUE >0 | |
1418 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1419 | WITH-VALUE 3,4,5,6,7,8,9 | |
1420 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1421 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1422 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1423 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1424 | } | |
1425 | ||
1426 | { | |
1427 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1428 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1429 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1430 | ||
1431 | NAME "Print-Job with A4 PostScript, Duplex" | |
1432 | OPERATION Print-Job | |
1433 | GROUP operation-attributes-tag | |
1434 | ATTR charset attributes-charset utf-8 | |
1435 | ATTR naturalLanguage attributes-natural-language en | |
1436 | ATTR uri printer-uri $uri | |
1437 | ATTR name requesting-user-name $user | |
1438 | ATTR name job-name "US Letter Test Document" | |
1439 | ATTR boolean ipp-attribute-fidelity false | |
1440 | ATTR name document-name document-a4.ps | |
1441 | ATTR keyword compression none | |
1442 | ATTR mimeMediaType document-format application/postscript | |
1443 | GROUP job-attributes-tag | |
9b66acc5 | 1444 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1445 | ATTR keyword sides two-sided-long-edge |
1446 | FILE document-a4.ps | |
1447 | ||
1448 | STATUS successful-ok | |
1449 | STATUS server-error-job-canceled | |
1450 | STATUS server-error-busy REPEAT-MATCH | |
1451 | ||
1452 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1453 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1454 | WITH-VALUE >0 | |
1455 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1456 | WITH-VALUE 3,4,5,6,7,8,9 | |
1457 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1458 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1459 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1460 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1461 | } | |
1462 | ||
1463 | { | |
1464 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1465 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1466 | ||
1467 | NAME "Print-Job with US Letter PostScript" | |
1468 | OPERATION Print-Job | |
1469 | GROUP operation-attributes-tag | |
1470 | ATTR charset attributes-charset utf-8 | |
1471 | ATTR naturalLanguage attributes-natural-language en | |
1472 | ATTR uri printer-uri $uri | |
1473 | ATTR name requesting-user-name $user | |
1474 | ATTR name job-name "US Letter Test Document, Duplex" | |
1475 | ATTR boolean ipp-attribute-fidelity false | |
1476 | ATTR name document-name document-letter.ps | |
1477 | ATTR keyword compression none | |
1478 | ATTR mimeMediaType document-format application/postscript | |
1479 | GROUP job-attributes-tag | |
9b66acc5 | 1480 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1481 | FILE document-letter.ps |
1482 | ||
1483 | STATUS successful-ok | |
1484 | STATUS server-error-job-canceled | |
1485 | STATUS server-error-busy REPEAT-MATCH | |
1486 | ||
1487 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1488 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1489 | WITH-VALUE >0 | |
1490 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1491 | WITH-VALUE 3,4,5,6,7,8,9 | |
1492 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1493 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1494 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1495 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1496 | } | |
1497 | ||
1498 | { | |
1499 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1500 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1501 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1502 | ||
1503 | NAME "Print-Job with US Letter PostScript, Duplex" | |
1504 | OPERATION Print-Job | |
1505 | GROUP operation-attributes-tag | |
1506 | ATTR charset attributes-charset utf-8 | |
1507 | ATTR naturalLanguage attributes-natural-language en | |
1508 | ATTR uri printer-uri $uri | |
1509 | ATTR name requesting-user-name $user | |
1510 | ATTR name job-name "A4 Test Document" | |
1511 | ATTR boolean ipp-attribute-fidelity false | |
1512 | ATTR name document-name document-letter.ps | |
1513 | ATTR keyword compression none | |
1514 | ATTR mimeMediaType document-format application/postscript | |
1515 | GROUP job-attributes-tag | |
9b66acc5 | 1516 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1517 | ATTR keyword sides two-sided-long-edge |
1518 | FILE document-letter.ps | |
1519 | ||
1520 | STATUS successful-ok | |
1521 | STATUS server-error-job-canceled | |
1522 | STATUS server-error-busy REPEAT-MATCH | |
1523 | ||
1524 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1525 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1526 | WITH-VALUE >0 | |
1527 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1528 | WITH-VALUE 3,4,5,6,7,8,9 | |
1529 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1530 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1531 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1532 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1533 | } | |
1534 | ||
1535 | ||
1536 | # Test JPEG output | |
1537 | { | |
1538 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1539 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1540 | ||
1541 | NAME "Print-Job with Color JPEG on A4" | |
1542 | OPERATION Print-Job | |
1543 | GROUP operation-attributes-tag | |
1544 | ATTR charset attributes-charset utf-8 | |
1545 | ATTR naturalLanguage attributes-natural-language en | |
1546 | ATTR uri printer-uri $uri | |
1547 | ATTR name requesting-user-name $user | |
1548 | ATTR name job-name "Color JPEG on A4" | |
1549 | ATTR boolean ipp-attribute-fidelity false | |
1550 | ATTR name document-name color.jpg | |
1551 | ATTR keyword compression none | |
1552 | ATTR mimeMediaType document-format image/jpeg | |
1553 | GROUP job-attributes-tag | |
9b66acc5 | 1554 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1555 | FILE color.jpg |
1556 | ||
1557 | STATUS successful-ok | |
1558 | STATUS server-error-job-canceled | |
1559 | STATUS server-error-busy REPEAT-MATCH | |
1560 | ||
1561 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1562 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1563 | WITH-VALUE >0 | |
1564 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1565 | WITH-VALUE 3,4,5,6,7,8,9 | |
1566 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1567 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1568 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1569 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1570 | } | |
1571 | ||
1572 | { | |
1573 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1574 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1575 | ||
1576 | NAME "Print-Job with Color JPEG on US Letter" | |
1577 | OPERATION Print-Job | |
1578 | GROUP operation-attributes-tag | |
1579 | ATTR charset attributes-charset utf-8 | |
1580 | ATTR naturalLanguage attributes-natural-language en | |
1581 | ATTR uri printer-uri $uri | |
1582 | ATTR name requesting-user-name $user | |
1583 | ATTR name job-name "Color JPEG on US Letter" | |
1584 | ATTR boolean ipp-attribute-fidelity false | |
1585 | ATTR name document-name color.jpg | |
1586 | ATTR keyword compression none | |
1587 | ATTR mimeMediaType document-format image/jpeg | |
1588 | GROUP job-attributes-tag | |
9b66acc5 | 1589 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1590 | FILE color.jpg |
1591 | ||
1592 | STATUS successful-ok | |
1593 | STATUS server-error-job-canceled | |
1594 | STATUS server-error-busy REPEAT-MATCH | |
1595 | ||
1596 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1597 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1598 | WITH-VALUE >0 | |
1599 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1600 | WITH-VALUE 3,4,5,6,7,8,9 | |
1601 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1602 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1603 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1604 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1605 | } | |
1606 | ||
1607 | { | |
1608 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1609 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
1610 | ||
1611 | NAME "Print-Job with Color JPEG on 4x6" | |
1612 | OPERATION Print-Job | |
1613 | GROUP operation-attributes-tag | |
1614 | ATTR charset attributes-charset utf-8 | |
1615 | ATTR naturalLanguage attributes-natural-language en | |
1616 | ATTR uri printer-uri $uri | |
1617 | ATTR name requesting-user-name $user | |
1618 | ATTR name job-name "Color JPEG on 4x6" | |
1619 | ATTR boolean ipp-attribute-fidelity false | |
1620 | ATTR name document-name color.jpg | |
1621 | ATTR keyword compression none | |
1622 | ATTR mimeMediaType document-format image/jpeg | |
1623 | GROUP job-attributes-tag | |
9b66acc5 | 1624 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
1625 | FILE color.jpg |
1626 | ||
1627 | STATUS successful-ok | |
1628 | STATUS server-error-job-canceled | |
1629 | STATUS server-error-busy REPEAT-MATCH | |
1630 | ||
1631 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1632 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1633 | WITH-VALUE >0 | |
1634 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1635 | WITH-VALUE 3,4,5,6,7,8,9 | |
1636 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1637 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1638 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1639 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1640 | } | |
1641 | ||
1642 | { | |
1643 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1644 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1645 | ||
1646 | NAME "Print-Job with Grayscale JPEG on A4" | |
1647 | OPERATION Print-Job | |
1648 | GROUP operation-attributes-tag | |
1649 | ATTR charset attributes-charset utf-8 | |
1650 | ATTR naturalLanguage attributes-natural-language en | |
1651 | ATTR uri printer-uri $uri | |
1652 | ATTR name requesting-user-name $user | |
1653 | ATTR name job-name "Grayscale JPEG on A4" | |
1654 | ATTR boolean ipp-attribute-fidelity false | |
1655 | ATTR name document-name gray.jpg | |
1656 | ATTR keyword compression none | |
1657 | ATTR mimeMediaType document-format image/jpeg | |
1658 | GROUP job-attributes-tag | |
9b66acc5 | 1659 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1660 | FILE gray.jpg |
1661 | ||
1662 | STATUS successful-ok | |
1663 | STATUS server-error-job-canceled | |
1664 | STATUS server-error-busy REPEAT-MATCH | |
1665 | ||
1666 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1667 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1668 | WITH-VALUE >0 | |
1669 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1670 | WITH-VALUE 3,4,5,6,7,8,9 | |
1671 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1672 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1673 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1674 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1675 | } | |
1676 | ||
1677 | { | |
1678 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1679 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1680 | ||
1681 | NAME "Print-Job with Grayscale JPEG on US Letter" | |
1682 | OPERATION Print-Job | |
1683 | GROUP operation-attributes-tag | |
1684 | ATTR charset attributes-charset utf-8 | |
1685 | ATTR naturalLanguage attributes-natural-language en | |
1686 | ATTR uri printer-uri $uri | |
1687 | ATTR name requesting-user-name $user | |
1688 | ATTR name job-name "Grayscale JPEG on US Letter" | |
1689 | ATTR boolean ipp-attribute-fidelity false | |
1690 | ATTR name document-name gray.jpg | |
1691 | ATTR keyword compression none | |
1692 | ATTR mimeMediaType document-format image/jpeg | |
1693 | GROUP job-attributes-tag | |
9b66acc5 | 1694 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1695 | FILE gray.jpg |
1696 | ||
1697 | STATUS successful-ok | |
1698 | STATUS server-error-job-canceled | |
1699 | STATUS server-error-busy REPEAT-MATCH | |
1700 | ||
1701 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1702 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1703 | WITH-VALUE >0 | |
1704 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1705 | WITH-VALUE 3,4,5,6,7,8,9 | |
1706 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1707 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1708 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1709 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1710 | } | |
1711 | ||
1712 | { | |
1713 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1714 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
1715 | ||
1716 | NAME "Print-Job with Grayscale JPEG on 4x6" | |
1717 | OPERATION Print-Job | |
1718 | GROUP operation-attributes-tag | |
1719 | ATTR charset attributes-charset utf-8 | |
1720 | ATTR naturalLanguage attributes-natural-language en | |
1721 | ATTR uri printer-uri $uri | |
1722 | ATTR name requesting-user-name $user | |
1723 | ATTR name job-name "Grayscale JPEG on 4x6" | |
1724 | ATTR boolean ipp-attribute-fidelity false | |
1725 | ATTR name document-name gray.jpg | |
1726 | ATTR keyword compression none | |
1727 | ATTR mimeMediaType document-format image/jpeg | |
1728 | GROUP job-attributes-tag | |
9b66acc5 | 1729 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
1730 | FILE gray.jpg |
1731 | ||
1732 | STATUS successful-ok | |
1733 | STATUS server-error-job-canceled | |
1734 | STATUS server-error-busy REPEAT-MATCH | |
1735 | ||
1736 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1737 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1738 | WITH-VALUE >0 | |
1739 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1740 | WITH-VALUE 3,4,5,6,7,8,9 | |
1741 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1742 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1743 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1744 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1745 | } | |
1746 | ||
1747 | ||
1748 | # Print-Job with job-sheets | |
1749 | { | |
1750 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1751 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1752 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1753 | ||
1754 | NAME "Print-Job with A4 PDF and Standard Sheet" | |
1755 | OPERATION Print-Job | |
1756 | GROUP operation-attributes-tag | |
1757 | ATTR charset attributes-charset utf-8 | |
1758 | ATTR naturalLanguage attributes-natural-language en | |
1759 | ATTR uri printer-uri $uri | |
1760 | ATTR name requesting-user-name $user | |
1761 | ATTR name job-name "A4 Test Document w/Standard Sheet" | |
1762 | ATTR boolean ipp-attribute-fidelity false | |
1763 | ATTR name document-name document-a4.pdf | |
1764 | ATTR keyword compression none | |
1765 | ATTR mimeMediaType document-format application/pdf | |
1766 | GROUP job-attributes-tag | |
9b66acc5 | 1767 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1768 | ATTR keyword job-sheets standard |
1769 | FILE document-a4.pdf | |
1770 | ||
1771 | STATUS successful-ok | |
1772 | STATUS server-error-job-canceled | |
1773 | STATUS server-error-busy REPEAT-MATCH | |
1774 | ||
1775 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1776 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1777 | WITH-VALUE >0 | |
1778 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1779 | WITH-VALUE 3,4,5,6,7,8,9 | |
1780 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1781 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1782 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1783 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1784 | } | |
1785 | ||
1786 | { | |
1787 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1788 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1789 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1790 | ||
1791 | NAME "Print-Job with US Letter PDF and Standard Sheet" | |
1792 | OPERATION Print-Job | |
1793 | GROUP operation-attributes-tag | |
1794 | ATTR charset attributes-charset utf-8 | |
1795 | ATTR naturalLanguage attributes-natural-language en | |
1796 | ATTR uri printer-uri $uri | |
1797 | ATTR name requesting-user-name $user | |
1798 | ATTR name job-name "US Letter Test Document w/Standard Sheet" | |
1799 | ATTR boolean ipp-attribute-fidelity false | |
1800 | ATTR name document-name document-a4.pdf | |
1801 | ATTR keyword compression none | |
1802 | ATTR mimeMediaType document-format application/pdf | |
1803 | GROUP job-attributes-tag | |
9b66acc5 | 1804 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1805 | ATTR keyword job-sheets standard |
1806 | FILE document-a4.pdf | |
1807 | ||
1808 | STATUS successful-ok | |
1809 | STATUS server-error-job-canceled | |
1810 | STATUS server-error-busy REPEAT-MATCH | |
1811 | ||
1812 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1813 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1814 | WITH-VALUE >0 | |
1815 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1816 | WITH-VALUE 3,4,5,6,7,8,9 | |
1817 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1818 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1819 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1820 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1821 | } | |
1822 | ||
1823 | { | |
1824 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1825 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1826 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1827 | ||
1828 | NAME "Print-Job with A4 PDF and Standard Sheet" | |
1829 | OPERATION Print-Job | |
1830 | GROUP operation-attributes-tag | |
1831 | ATTR charset attributes-charset utf-8 | |
1832 | ATTR naturalLanguage attributes-natural-language en | |
1833 | ATTR uri printer-uri $uri | |
1834 | ATTR name requesting-user-name $user | |
1835 | ATTR name job-name "A4 Test Document w/Standard Sheet" | |
1836 | ATTR boolean ipp-attribute-fidelity false | |
1837 | ATTR name document-name document-a4.ps | |
1838 | ATTR keyword compression none | |
1839 | ATTR mimeMediaType document-format application/postscript | |
1840 | GROUP job-attributes-tag | |
9b66acc5 | 1841 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1842 | ATTR keyword job-sheets standard |
1843 | FILE document-a4.ps | |
1844 | ||
1845 | STATUS successful-ok | |
1846 | STATUS server-error-job-canceled | |
1847 | STATUS server-error-busy REPEAT-MATCH | |
1848 | ||
1849 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1850 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1851 | WITH-VALUE >0 | |
1852 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1853 | WITH-VALUE 3,4,5,6,7,8,9 | |
1854 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1855 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1856 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1857 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1858 | } | |
1859 | ||
1860 | { | |
1861 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1862 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1863 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1864 | ||
1865 | NAME "Print-Job with US Letter PDF and Standard Sheet" | |
1866 | OPERATION Print-Job | |
1867 | GROUP operation-attributes-tag | |
1868 | ATTR charset attributes-charset utf-8 | |
1869 | ATTR naturalLanguage attributes-natural-language en | |
1870 | ATTR uri printer-uri $uri | |
1871 | ATTR name requesting-user-name $user | |
1872 | ATTR name job-name "US Letter Test Document w/Standard Sheet" | |
1873 | ATTR boolean ipp-attribute-fidelity false | |
1874 | ATTR name document-name document-a4.ps | |
1875 | ATTR keyword compression none | |
1876 | ATTR mimeMediaType document-format application/postscript | |
1877 | GROUP job-attributes-tag | |
9b66acc5 | 1878 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1879 | ATTR keyword job-sheets standard |
1880 | FILE document-a4.ps | |
1881 | ||
1882 | STATUS successful-ok | |
1883 | STATUS server-error-job-canceled | |
1884 | STATUS server-error-busy REPEAT-MATCH | |
1885 | ||
1886 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1887 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1888 | WITH-VALUE >0 | |
1889 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1890 | WITH-VALUE 3,4,5,6,7,8,9 | |
1891 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1892 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1893 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1894 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1895 | } | |
1896 | ||
1897 | ||
1898 | # Test number-up output | |
1899 | { | |
1900 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1901 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1902 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
1903 | ||
1904 | NAME "Print-Job with A4 PDF, 2-Up" | |
1905 | OPERATION Print-Job | |
1906 | GROUP operation-attributes-tag | |
1907 | ATTR charset attributes-charset utf-8 | |
1908 | ATTR naturalLanguage attributes-natural-language en | |
1909 | ATTR uri printer-uri $uri | |
1910 | ATTR name requesting-user-name $user | |
1911 | ATTR name job-name "A4 Test Document, 2-Up" | |
1912 | ATTR boolean ipp-attribute-fidelity false | |
1913 | ATTR name document-name document-a4.pdf | |
1914 | ATTR keyword compression none | |
1915 | ATTR mimeMediaType document-format application/pdf | |
1916 | GROUP job-attributes-tag | |
9b66acc5 | 1917 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1918 | ATTR integer number-up 2 |
1919 | FILE document-a4.pdf | |
1920 | ||
1921 | STATUS successful-ok | |
1922 | STATUS server-error-job-canceled | |
1923 | STATUS server-error-busy REPEAT-MATCH | |
1924 | ||
1925 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1926 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1927 | WITH-VALUE >0 | |
1928 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1929 | WITH-VALUE 3,4,5,6,7,8,9 | |
1930 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1931 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1932 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1933 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1934 | } | |
1935 | ||
1936 | { | |
1937 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1938 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1939 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
1940 | ||
1941 | NAME "Print-Job with US Letter PDF, 2-Up" | |
1942 | OPERATION Print-Job | |
1943 | GROUP operation-attributes-tag | |
1944 | ATTR charset attributes-charset utf-8 | |
1945 | ATTR naturalLanguage attributes-natural-language en | |
1946 | ATTR uri printer-uri $uri | |
1947 | ATTR name requesting-user-name $user | |
1948 | ATTR name job-name "US Letter Test Document, 2-Up" | |
1949 | ATTR boolean ipp-attribute-fidelity false | |
1950 | ATTR name document-name document-letter.pdf | |
1951 | ATTR keyword compression none | |
1952 | ATTR mimeMediaType document-format application/pdf | |
1953 | GROUP job-attributes-tag | |
9b66acc5 | 1954 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1955 | ATTR integer number-up 2 |
1956 | FILE document-letter.pdf | |
1957 | ||
1958 | STATUS successful-ok | |
1959 | STATUS server-error-job-canceled | |
1960 | STATUS server-error-busy REPEAT-MATCH | |
1961 | ||
1962 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1963 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1964 | WITH-VALUE >0 | |
1965 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
1966 | WITH-VALUE 3,4,5,6,7,8,9 | |
1967 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1968 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1969 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1970 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1971 | } | |
1972 | ||
1973 | { | |
1974 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1975 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1976 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
1977 | ||
1978 | NAME "Print-Job with A4 PDF, 2-Up" | |
1979 | OPERATION Print-Job | |
1980 | GROUP operation-attributes-tag | |
1981 | ATTR charset attributes-charset utf-8 | |
1982 | ATTR naturalLanguage attributes-natural-language en | |
1983 | ATTR uri printer-uri $uri | |
1984 | ATTR name requesting-user-name $user | |
1985 | ATTR name job-name "A4 Test Document, 2-Up" | |
1986 | ATTR boolean ipp-attribute-fidelity false | |
1987 | ATTR name document-name document-a4.ps | |
1988 | ATTR keyword compression none | |
1989 | ATTR mimeMediaType document-format application/postscript | |
1990 | GROUP job-attributes-tag | |
9b66acc5 | 1991 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1992 | ATTR integer number-up 2 |
1993 | FILE document-a4.ps | |
1994 | ||
1995 | STATUS successful-ok | |
1996 | STATUS server-error-job-canceled | |
1997 | STATUS server-error-busy REPEAT-MATCH | |
1998 | ||
1999 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2000 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2001 | WITH-VALUE >0 | |
2002 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
2003 | WITH-VALUE 3,4,5,6,7,8,9 | |
2004 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2005 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2006 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2007 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2008 | } | |
2009 | ||
2010 | { | |
2011 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
2012 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
2013 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
2014 | ||
2015 | NAME "Print-Job with US Letter PDF, 2-Up" | |
2016 | OPERATION Print-Job | |
2017 | GROUP operation-attributes-tag | |
2018 | ATTR charset attributes-charset utf-8 | |
2019 | ATTR naturalLanguage attributes-natural-language en | |
2020 | ATTR uri printer-uri $uri | |
2021 | ATTR name requesting-user-name $user | |
2022 | ATTR name job-name "US Letter Test Document, 2-Up" | |
2023 | ATTR boolean ipp-attribute-fidelity false | |
2024 | ATTR name document-name document-letter.ps | |
2025 | ATTR keyword compression none | |
2026 | ATTR mimeMediaType document-format application/postscript | |
2027 | GROUP job-attributes-tag | |
9b66acc5 | 2028 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
2029 | ATTR integer number-up 2 |
2030 | FILE document-letter.ps | |
2031 | ||
2032 | STATUS successful-ok | |
2033 | STATUS server-error-job-canceled | |
2034 | STATUS server-error-busy REPEAT-MATCH | |
2035 | ||
2036 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2037 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2038 | WITH-VALUE >0 | |
2039 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
2040 | WITH-VALUE 3,4,5,6,7,8,9 | |
2041 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2042 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2043 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2044 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2045 | } | |
2046 | ||
2047 | ||
2048 | # Test output with print-quality... | |
2049 | { | |
2050 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
2051 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
2052 | SKIP-IF-NOT-DEFINED OPTIONAL_DRAFT_QUALITY | |
2053 | ||
2054 | NAME "Print-Job with JPEG on 4x6, Draft Quality" | |
2055 | OPERATION Print-Job | |
2056 | GROUP operation-attributes-tag | |
2057 | ATTR charset attributes-charset utf-8 | |
2058 | ATTR naturalLanguage attributes-natural-language en | |
2059 | ATTR uri printer-uri $uri | |
2060 | ATTR name requesting-user-name $user | |
2061 | ATTR name job-name "4x6 Color JPEG, Draft Quality" | |
2062 | ATTR boolean ipp-attribute-fidelity false | |
2063 | ATTR name document-name color.jpg | |
2064 | ATTR keyword compression none | |
2065 | ATTR mimeMediaType document-format image/jpeg | |
2066 | GROUP job-attributes-tag | |
9b66acc5 | 2067 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
2068 | ATTR enum print-quality 3 |
2069 | FILE color.jpeg | |
2070 | ||
2071 | STATUS successful-ok | |
2072 | STATUS server-error-job-canceled | |
2073 | STATUS server-error-busy REPEAT-MATCH | |
2074 | ||
2075 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2076 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2077 | WITH-VALUE >0 | |
2078 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
2079 | WITH-VALUE 3,4,5,6,7,8,9 | |
2080 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2081 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2082 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2083 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2084 | } | |
2085 | ||
2086 | { | |
2087 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
2088 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
2089 | SKIP-IF-NOT-DEFINED OPTIONAL_NORMAL_QUALITY | |
2090 | ||
2091 | NAME "Print-Job with JPEG on 4x6, Normal Quality" | |
2092 | OPERATION Print-Job | |
2093 | GROUP operation-attributes-tag | |
2094 | ATTR charset attributes-charset utf-8 | |
2095 | ATTR naturalLanguage attributes-natural-language en | |
2096 | ATTR uri printer-uri $uri | |
2097 | ATTR name requesting-user-name $user | |
2098 | ATTR name job-name "4x6 Color JPEG, Normal Quality" | |
2099 | ATTR boolean ipp-attribute-fidelity false | |
2100 | ATTR name document-name color.jpg | |
2101 | ATTR keyword compression none | |
2102 | ATTR mimeMediaType document-format image/jpeg | |
2103 | GROUP job-attributes-tag | |
9b66acc5 | 2104 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
2105 | ATTR enum print-quality 4 |
2106 | FILE color.jpeg | |
2107 | ||
2108 | STATUS successful-ok | |
2109 | STATUS server-error-job-canceled | |
2110 | STATUS server-error-busy REPEAT-MATCH | |
2111 | ||
2112 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2113 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2114 | WITH-VALUE >0 | |
2115 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
2116 | WITH-VALUE 3,4,5,6,7,8,9 | |
2117 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2118 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2119 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2120 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2121 | } | |
2122 | ||
2123 | { | |
2124 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
2125 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
2126 | SKIP-IF-NOT-DEFINED OPTIONAL_HIGH_QUALITY | |
2127 | ||
2128 | NAME "Print-Job with JPEG on 4x6, High Quality" | |
2129 | OPERATION Print-Job | |
2130 | GROUP operation-attributes-tag | |
2131 | ATTR charset attributes-charset utf-8 | |
2132 | ATTR naturalLanguage attributes-natural-language en | |
2133 | ATTR uri printer-uri $uri | |
2134 | ATTR name requesting-user-name $user | |
2135 | ATTR name job-name "4x6 Color JPEG, High Quality" | |
2136 | ATTR boolean ipp-attribute-fidelity false | |
2137 | ATTR name document-name color.jpg | |
2138 | ATTR keyword compression none | |
2139 | ATTR mimeMediaType document-format image/jpeg | |
2140 | GROUP job-attributes-tag | |
9b66acc5 | 2141 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
2142 | ATTR enum print-quality 5 |
2143 | FILE color.jpeg | |
2144 | ||
2145 | STATUS successful-ok | |
2146 | STATUS server-error-job-canceled | |
2147 | STATUS server-error-busy REPEAT-MATCH | |
2148 | ||
2149 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2150 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2151 | WITH-VALUE >0 | |
2152 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
2153 | WITH-VALUE 3,4,5,6,7,8,9 | |
2154 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2155 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2156 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2157 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2158 | } | |
2159 | ||
2160 | { | |
2161 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
2162 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
2163 | SKIP-IF-NOT-DEFINED OPTIONAL_DRAFT_QUALITY | |
2164 | ||
2165 | NAME "Print-Job with A4 PDF, Draft Quality" | |
2166 | OPERATION Print-Job | |
2167 | GROUP operation-attributes-tag | |
2168 | ATTR charset attributes-charset utf-8 | |
2169 | ATTR naturalLanguage attributes-natural-language en | |
2170 | ATTR uri printer-uri $uri | |
2171 | ATTR name requesting-user-name $user | |
2172 | ATTR name job-name "A4 Test Document, 2-Up" | |
2173 | ATTR boolean ipp-attribute-fidelity false | |
2174 | ATTR name document-name document-a4.pdf | |
2175 | ATTR keyword compression none | |
2176 | ATTR mimeMediaType document-format application/pdf | |
2177 | GROUP job-attributes-tag | |
9b66acc5 | 2178 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
2179 | ATTR enum print-quality 3 |
2180 | FILE document-a4.pdf | |
2181 | ||
2182 | STATUS successful-ok | |
2183 | STATUS server-error-job-canceled | |
2184 | STATUS server-error-busy REPEAT-MATCH | |
2185 | ||
2186 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2187 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2188 | WITH-VALUE >0 | |
2189 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
2190 | WITH-VALUE 3,4,5,6,7,8,9 | |
2191 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2192 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2193 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2194 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2195 | } | |
2196 | ||
2197 | { | |
2198 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
2199 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
2200 | SKIP-IF-NOT-DEFINED OPTIONAL_DRAFT_QUALITY | |
2201 | ||
2202 | NAME "Print-Job with US Letter PDF, Draft Quality" | |
2203 | OPERATION Print-Job | |
2204 | GROUP operation-attributes-tag | |
2205 | ATTR charset attributes-charset utf-8 | |
2206 | ATTR naturalLanguage attributes-natural-language en | |
2207 | ATTR uri printer-uri $uri | |
2208 | ATTR name requesting-user-name $user | |
2209 | ATTR name job-name "US Letter Test Document, 2-Up" | |
2210 | ATTR boolean ipp-attribute-fidelity false | |
2211 | ATTR name document-name document-letter.pdf | |
2212 | ATTR keyword compression none | |
2213 | ATTR mimeMediaType document-format application/pdf | |
2214 | GROUP job-attributes-tag | |
9b66acc5 | 2215 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
2216 | ATTR enum print-quality 3 |
2217 | FILE document-letter.pdf | |
2218 | ||
2219 | STATUS successful-ok | |
2220 | STATUS server-error-job-canceled | |
2221 | STATUS server-error-busy REPEAT-MATCH | |
2222 | ||
2223 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2224 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2225 | WITH-VALUE >0 | |
2226 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
2227 | WITH-VALUE 3,4,5,6,7,8,9 | |
2228 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2229 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2230 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2231 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2232 | } | |
2233 | ||
2234 | ||
9b66acc5 MS |
2235 | # Test hold/release in the context of Print-Job w/job-hold-until + Release-Job |
2236 | { | |
2237 | SKIP-IF-NOT-DEFINED OPTIONAL_HOLD_JOB | |
2238 | ||
2239 | NAME "Print-Job with job-hold-until" | |
2240 | OPERATION Print-Job | |
2241 | GROUP operation-attributes-tag | |
2242 | ATTR charset attributes-charset utf-8 | |
2243 | ATTR naturalLanguage attributes-natural-language en | |
2244 | ATTR uri printer-uri $uri | |
2245 | ATTR name requesting-user-name $user | |
2246 | ATTR name job-name "Test Document w/Hold" | |
2247 | ATTR name document-name $filename | |
2248 | ATTR keyword compression none | |
2249 | ATTR mimeMediaType document-format $filetype | |
2250 | GROUP job-attributes-tag | |
2251 | ATTR keyword job-hold-until indefinite | |
2252 | FILE $filename | |
2253 | ||
2254 | STATUS successful-ok | |
2255 | STATUS server-error-job-canceled | |
2256 | STATUS server-error-busy REPEAT-MATCH | |
2257 | ||
2258 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2259 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2260 | WITH-VALUE >0 | |
2261 | EXPECT job-state OF-TYPE enum COUNT 1 IN-GROUP job-attributes-tag | |
2262 | WITH-VALUE 3,4,5,6,7,8,9 | |
2263 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2264 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2265 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2266 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2267 | } | |
2268 | ||
2269 | { | |
2270 | SKIP-IF-NOT-DEFINED OPTIONAL_HOLD_JOB | |
2271 | ||
2272 | NAME "Release-Job" | |
2273 | OPERATION Release-Job | |
2274 | GROUP operation-attributes-tag | |
2275 | ATTR charset attributes-charset utf-8 | |
2276 | ATTR naturalLanguage attributes-natural-language en | |
2277 | ATTR uri printer-uri $uri | |
2278 | ATTR integer job-id $job-id | |
2279 | ATTR name requesting-user-name $user | |
2280 | ||
2281 | STATUS successful-ok | |
2282 | STATUS client-error-not-possible | |
2283 | } | |
2284 | ||
2285 | ||
f8b3a85b MS |
2286 | # |
2287 | # End of "$Id$". | |
2288 | # |