]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # "$Id$" | |
3 | # | |
4 | # IPP Everywhere Printer Self-Certification Manual 1.0: Section 7: Document Data Tests. | |
5 | # | |
6 | # Copyright 2014 by The Printer Working Group. | |
7 | # Copyright 2007-2013 by Apple Inc. | |
8 | # Copyright 2001-2006 by Easy Software Products. All rights reserved. | |
9 | # | |
10 | # These coded instructions, statements, and computer programs are the | |
11 | # property of Apple Inc. and are protected by Federal copyright | |
12 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
13 | # which should have been included with this file. If this file is | |
14 | # file is missing or damaged, see the license at "http://www.cups.org/". | |
15 | # | |
16 | # Usage: | |
17 | # | |
18 | # ./ipptool -tI printer-uri document-tests.test | |
19 | # | |
20 | # This test file depends on document data files available at: | |
21 | # | |
22 | # http://ftp.pwg.org/pub/pwg/ipp/examples | |
23 | # | |
24 | # The ZIP files should be extracted in the same directory as the test files, | |
25 | # for example the 600dpi files will exist in a directory called | |
26 | # "pwg-raster-samples-600dpi-20111130". The script used to generate the raster | |
27 | # data is available in the "everywhere" subdirectory of the CUPS source code. | |
28 | # | |
29 | ||
30 | FILE-ID "org.pwg.ipp-everywhere.20140826.document" | |
31 | ||
32 | { | |
33 | NAME "D-1. PWG Raster Format Tests (mandatory)" | |
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 | ATTR name requesting-user-name $user | |
40 | ||
41 | STATUS successful-ok | |
42 | ||
43 | EXPECT compression-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "deflate" DEFINE-MATCH HAVE_DEFLATE | |
44 | EXPECT compression-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "gzip" DEFINE-MATCH HAVE_GZIP | |
45 | ||
46 | EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag WITH-VALUE "image/pwg-raster" | |
47 | ||
48 | EXPECT pwg-raster-document-resolution-supported OF-TYPE resolution IN-GROUP printer-attributes-tag DEFINE-VALUE RASTER_RESOLUTION | |
49 | ||
50 | EXPECT pwg-raster-document-type-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "black-1" DEFINE-MATCH HAVE_BLACK | |
51 | EXPECT pwg-raster-document-type-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "sgray-8" DEFINE-MATCH HAVE_SGRAY | |
52 | EXPECT pwg-raster-document-type-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "srgb-8" DEFINE-MATCH HAVE_SRGB | |
53 | EXPECT pwg-raster-document-type-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "cmyk-8" DEFINE-MATCH HAVE_CMYK | |
54 | } | |
55 | ||
56 | #### 1.1 NO COMPRESSION #### | |
57 | { | |
58 | SKIP-IF-NOT-DEFINED HAVE_BLACK | |
59 | NAME "D-1.1 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, black-1" | |
60 | OPERATION Print-Job | |
61 | GROUP operation-attributes-tag | |
62 | ATTR charset attributes-charset utf-8 | |
63 | ATTR naturalLanguage attributes-natural-language en | |
64 | ATTR uri printer-uri $uri | |
65 | ATTR name requesting-user-name $user | |
66 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, black-1" | |
67 | ATTR mimeMediaType document-format "image/pwg-raster" | |
68 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/black-1/color.jpg-4x6-black-1-600dpi.pwg" | |
69 | STATUS successful-ok | |
70 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
71 | } | |
72 | { | |
73 | SKIP-IF-NOT-DEFINED HAVE_SGRAY | |
74 | NAME "D-1.1 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, sgray-8" | |
75 | OPERATION Print-Job | |
76 | GROUP operation-attributes-tag | |
77 | ATTR charset attributes-charset utf-8 | |
78 | ATTR naturalLanguage attributes-natural-language en | |
79 | ATTR uri printer-uri $uri | |
80 | ATTR name requesting-user-name $user | |
81 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, sgray-8" | |
82 | ATTR mimeMediaType document-format "image/pwg-raster" | |
83 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/sgray-8/color.jpg-4x6-sgray-8-600dpi.pwg" | |
84 | STATUS successful-ok | |
85 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
86 | } | |
87 | { | |
88 | SKIP-IF-NOT-DEFINED HAVE_SRGB | |
89 | NAME "D-1.1 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, srgb-8" | |
90 | OPERATION Print-Job | |
91 | GROUP operation-attributes-tag | |
92 | ATTR charset attributes-charset utf-8 | |
93 | ATTR naturalLanguage attributes-natural-language en | |
94 | ATTR uri printer-uri $uri | |
95 | ATTR name requesting-user-name $user | |
96 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, srgb-8" | |
97 | ATTR mimeMediaType document-format "image/pwg-raster" | |
98 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/srgb-8/color.jpg-4x6-srgb-8-600dpi.pwg" | |
99 | STATUS successful-ok | |
100 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
101 | } | |
102 | { | |
103 | SKIP-IF-NOT-DEFINED HAVE_CMYK | |
104 | NAME "D-1.1 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, cmyk-8" | |
105 | OPERATION Print-Job | |
106 | GROUP operation-attributes-tag | |
107 | ATTR charset attributes-charset utf-8 | |
108 | ATTR naturalLanguage attributes-natural-language en | |
109 | ATTR uri printer-uri $uri | |
110 | ATTR name requesting-user-name $user | |
111 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, cmyk-8" | |
112 | ATTR mimeMediaType document-format "image/pwg-raster" | |
113 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/cmyk-8/color.jpg-4x6-cmyk-8-600dpi.pwg" | |
114 | STATUS successful-ok | |
115 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
116 | } | |
117 | ||
118 | #### 1.2 DEFLATE COMPRESSION #### | |
119 | { | |
120 | SKIP-IF-NOT-DEFINED HAVE_BLACK | |
121 | SKIP-IF-NOT-DEFINED HAVE_DEFLATE | |
122 | NAME "D-1.2 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, black-1, deflate" | |
123 | OPERATION Print-Job | |
124 | GROUP operation-attributes-tag | |
125 | ATTR charset attributes-charset utf-8 | |
126 | ATTR naturalLanguage attributes-natural-language en | |
127 | ATTR uri printer-uri $uri | |
128 | ATTR name requesting-user-name $user | |
129 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, black-1\, deflate" | |
130 | ATTR mimeMediaType document-format "image/pwg-raster" | |
131 | ATTR keyword compression deflate | |
132 | COMPRESSION deflate | |
133 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/black-1/color.jpg-4x6-black-1-600dpi.pwg" | |
134 | STATUS successful-ok | |
135 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
136 | } | |
137 | { | |
138 | SKIP-IF-NOT-DEFINED HAVE_SGRAY | |
139 | SKIP-IF-NOT-DEFINED HAVE_DEFLATE | |
140 | NAME "D-1.2 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, sgray-8, deflate" | |
141 | OPERATION Print-Job | |
142 | GROUP operation-attributes-tag | |
143 | ATTR charset attributes-charset utf-8 | |
144 | ATTR naturalLanguage attributes-natural-language en | |
145 | ATTR uri printer-uri $uri | |
146 | ATTR name requesting-user-name $user | |
147 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, sgray-8\, deflate" | |
148 | ATTR mimeMediaType document-format "image/pwg-raster" | |
149 | ATTR keyword compression deflate | |
150 | COMPRESSION deflate | |
151 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/sgray-8/color.jpg-4x6-sgray-8-600dpi.pwg" | |
152 | STATUS successful-ok | |
153 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
154 | } | |
155 | { | |
156 | SKIP-IF-NOT-DEFINED HAVE_SRGB | |
157 | SKIP-IF-NOT-DEFINED HAVE_DEFLATE | |
158 | NAME "D-1.2 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, srgb-8, deflate" | |
159 | OPERATION Print-Job | |
160 | GROUP operation-attributes-tag | |
161 | ATTR charset attributes-charset utf-8 | |
162 | ATTR naturalLanguage attributes-natural-language en | |
163 | ATTR uri printer-uri $uri | |
164 | ATTR name requesting-user-name $user | |
165 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, srgb-8\, deflate" | |
166 | ATTR mimeMediaType document-format "image/pwg-raster" | |
167 | ATTR keyword compression deflate | |
168 | COMPRESSION deflate | |
169 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/srgb-8/color.jpg-4x6-srgb-8-600dpi.pwg" | |
170 | STATUS successful-ok | |
171 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
172 | } | |
173 | { | |
174 | SKIP-IF-NOT-DEFINED HAVE_CMYK | |
175 | SKIP-IF-NOT-DEFINED HAVE_DEFLATE | |
176 | NAME "D-1.2 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, cmyk-8, deflate" | |
177 | OPERATION Print-Job | |
178 | GROUP operation-attributes-tag | |
179 | ATTR charset attributes-charset utf-8 | |
180 | ATTR naturalLanguage attributes-natural-language en | |
181 | ATTR uri printer-uri $uri | |
182 | ATTR name requesting-user-name $user | |
183 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, cmyk-8\, deflate" | |
184 | ATTR mimeMediaType document-format "image/pwg-raster" | |
185 | ATTR keyword compression deflate | |
186 | COMPRESSION deflate | |
187 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/cmyk-8/color.jpg-4x6-cmyk-8-600dpi.pwg" | |
188 | STATUS successful-ok | |
189 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
190 | } | |
191 | ||
192 | #### 1.3 GZIP COMPRESSION #### | |
193 | { | |
194 | SKIP-IF-NOT-DEFINED HAVE_BLACK | |
195 | SKIP-IF-NOT-DEFINED HAVE_GZIP | |
196 | NAME "D-1.3 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, black-1, gzip" | |
197 | OPERATION Print-Job | |
198 | GROUP operation-attributes-tag | |
199 | ATTR charset attributes-charset utf-8 | |
200 | ATTR naturalLanguage attributes-natural-language en | |
201 | ATTR uri printer-uri $uri | |
202 | ATTR name requesting-user-name $user | |
203 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, black-1\, gzip" | |
204 | ATTR mimeMediaType document-format "image/pwg-raster" | |
205 | ATTR keyword compression gzip | |
206 | COMPRESSION gzip | |
207 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/black-1/color.jpg-4x6-black-1-600dpi.pwg" | |
208 | STATUS successful-ok | |
209 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
210 | } | |
211 | { | |
212 | SKIP-IF-NOT-DEFINED HAVE_SGRAY | |
213 | SKIP-IF-NOT-DEFINED HAVE_GZIP | |
214 | NAME "D-1.3 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, sgray-8, gzip" | |
215 | OPERATION Print-Job | |
216 | GROUP operation-attributes-tag | |
217 | ATTR charset attributes-charset utf-8 | |
218 | ATTR naturalLanguage attributes-natural-language en | |
219 | ATTR uri printer-uri $uri | |
220 | ATTR name requesting-user-name $user | |
221 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, sgray-8\, gzip" | |
222 | ATTR mimeMediaType document-format "image/pwg-raster" | |
223 | ATTR keyword compression gzip | |
224 | COMPRESSION gzip | |
225 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/sgray-8/color.jpg-4x6-sgray-8-600dpi.pwg" | |
226 | STATUS successful-ok | |
227 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
228 | } | |
229 | { | |
230 | SKIP-IF-NOT-DEFINED HAVE_SRGB | |
231 | SKIP-IF-NOT-DEFINED HAVE_GZIP | |
232 | NAME "D-1.3 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, srgb-8, gzip" | |
233 | OPERATION Print-Job | |
234 | GROUP operation-attributes-tag | |
235 | ATTR charset attributes-charset utf-8 | |
236 | ATTR naturalLanguage attributes-natural-language en | |
237 | ATTR uri printer-uri $uri | |
238 | ATTR name requesting-user-name $user | |
239 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, srgb-8\, gzip" | |
240 | ATTR mimeMediaType document-format "image/pwg-raster" | |
241 | ATTR keyword compression gzip | |
242 | COMPRESSION gzip | |
243 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/srgb-8/color.jpg-4x6-srgb-8-600dpi.pwg" | |
244 | STATUS successful-ok | |
245 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
246 | } | |
247 | { | |
248 | SKIP-IF-NOT-DEFINED HAVE_CMYK | |
249 | SKIP-IF-NOT-DEFINED HAVE_GZIP | |
250 | NAME "D-1.3 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, cmyk-8, gzip" | |
251 | OPERATION Print-Job | |
252 | GROUP operation-attributes-tag | |
253 | ATTR charset attributes-charset utf-8 | |
254 | ATTR naturalLanguage attributes-natural-language en | |
255 | ATTR uri printer-uri $uri | |
256 | ATTR name requesting-user-name $user | |
257 | ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, cmyk-8\, gzip" | |
258 | ATTR mimeMediaType document-format "image/pwg-raster" | |
259 | ATTR keyword compression gzip | |
260 | COMPRESSION gzip | |
261 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/cmyk-8/color.jpg-4x6-cmyk-8-600dpi.pwg" | |
262 | STATUS successful-ok | |
263 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
264 | } | |
265 | ||
266 | #### 1.4 A4 TESTS #### | |
267 | { | |
268 | SKIP-IF-NOT-DEFINED HAVE_BLACK | |
269 | NAME "D-1.4 Print document-a4.pwg @ $RASTER_RESOLUTION, black-1" | |
270 | OPERATION Print-Job | |
271 | GROUP operation-attributes-tag | |
272 | ATTR charset attributes-charset utf-8 | |
273 | ATTR naturalLanguage attributes-natural-language en | |
274 | ATTR uri printer-uri $uri | |
275 | ATTR name requesting-user-name $user | |
276 | ATTR name job-name "document-a4.pwg @ $RASTER_RESOLUTION\, black-1" | |
277 | ATTR mimeMediaType document-format "image/pwg-raster" | |
278 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/black-1/document-a4-black-1-600dpi.pwg" | |
279 | STATUS successful-ok | |
280 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
281 | } | |
282 | { | |
283 | SKIP-IF-NOT-DEFINED HAVE_SGRAY | |
284 | NAME "D-1.4 Print document-a4.pwg @ $RASTER_RESOLUTION, sgray-8" | |
285 | OPERATION Print-Job | |
286 | GROUP operation-attributes-tag | |
287 | ATTR charset attributes-charset utf-8 | |
288 | ATTR naturalLanguage attributes-natural-language en | |
289 | ATTR uri printer-uri $uri | |
290 | ATTR name requesting-user-name $user | |
291 | ATTR name job-name "document-a4.pwg @ $RASTER_RESOLUTION\, sgray-8" | |
292 | ATTR mimeMediaType document-format "image/pwg-raster" | |
293 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/sgray-8/document-a4-sgray-8-600dpi.pwg" | |
294 | STATUS successful-ok | |
295 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
296 | } | |
297 | { | |
298 | SKIP-IF-NOT-DEFINED HAVE_SRGB | |
299 | NAME "D-1.4 Print document-a4.pwg @ $RASTER_RESOLUTION, srgb-8" | |
300 | OPERATION Print-Job | |
301 | GROUP operation-attributes-tag | |
302 | ATTR charset attributes-charset utf-8 | |
303 | ATTR naturalLanguage attributes-natural-language en | |
304 | ATTR uri printer-uri $uri | |
305 | ATTR name requesting-user-name $user | |
306 | ATTR name job-name "document-a4.pwg @ $RASTER_RESOLUTION\, srgb-8" | |
307 | ATTR mimeMediaType document-format "image/pwg-raster" | |
308 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/srgb-8/document-a4-srgb-8-600dpi.pwg" | |
309 | STATUS successful-ok | |
310 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
311 | } | |
312 | { | |
313 | SKIP-IF-NOT-DEFINED HAVE_CMYK | |
314 | NAME "D-1.4 Print document-a4.pwg @ $RASTER_RESOLUTION, cmyk-8" | |
315 | OPERATION Print-Job | |
316 | GROUP operation-attributes-tag | |
317 | ATTR charset attributes-charset utf-8 | |
318 | ATTR naturalLanguage attributes-natural-language en | |
319 | ATTR uri printer-uri $uri | |
320 | ATTR name requesting-user-name $user | |
321 | ATTR name job-name "document-a4.pwg @ $RASTER_RESOLUTION\, cmyk-8" | |
322 | ATTR mimeMediaType document-format "image/pwg-raster" | |
323 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/cmyk-8/document-a4-cmyk-8-600dpi.pwg" | |
324 | STATUS successful-ok | |
325 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
326 | } | |
327 | ||
328 | #### 1.5 US Letter TESTS #### | |
329 | { | |
330 | SKIP-IF-NOT-DEFINED HAVE_BLACK | |
331 | NAME "D-1.5 Print document-letter.pwg @ $RASTER_RESOLUTION, black-1" | |
332 | OPERATION Print-Job | |
333 | GROUP operation-attributes-tag | |
334 | ATTR charset attributes-charset utf-8 | |
335 | ATTR naturalLanguage attributes-natural-language en | |
336 | ATTR uri printer-uri $uri | |
337 | ATTR name requesting-user-name $user | |
338 | ATTR name job-name "document-letter.pwg @ $RASTER_RESOLUTION\, black-1" | |
339 | ATTR mimeMediaType document-format "image/pwg-raster" | |
340 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/black-1/document-letter-black-1-600dpi.pwg" | |
341 | STATUS successful-ok | |
342 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
343 | } | |
344 | { | |
345 | SKIP-IF-NOT-DEFINED HAVE_SGRAY | |
346 | NAME "D-1.5 Print document-letter.pwg @ $RASTER_RESOLUTION, sgray-8" | |
347 | OPERATION Print-Job | |
348 | GROUP operation-attributes-tag | |
349 | ATTR charset attributes-charset utf-8 | |
350 | ATTR naturalLanguage attributes-natural-language en | |
351 | ATTR uri printer-uri $uri | |
352 | ATTR name requesting-user-name $user | |
353 | ATTR name job-name "document-letter.pwg @ $RASTER_RESOLUTION\, sgray-8" | |
354 | ATTR mimeMediaType document-format "image/pwg-raster" | |
355 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/sgray-8/document-letter-sgray-8-600dpi.pwg" | |
356 | STATUS successful-ok | |
357 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
358 | } | |
359 | { | |
360 | SKIP-IF-NOT-DEFINED HAVE_SRGB | |
361 | NAME "D-1.5 Print document-letter.pwg @ $RASTER_RESOLUTION, srgb-8" | |
362 | OPERATION Print-Job | |
363 | GROUP operation-attributes-tag | |
364 | ATTR charset attributes-charset utf-8 | |
365 | ATTR naturalLanguage attributes-natural-language en | |
366 | ATTR uri printer-uri $uri | |
367 | ATTR name requesting-user-name $user | |
368 | ATTR name job-name "document-letter.pwg @ $RASTER_RESOLUTION\, srgb-8" | |
369 | ATTR mimeMediaType document-format "image/pwg-raster" | |
370 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/srgb-8/document-letter-srgb-8-600dpi.pwg" | |
371 | STATUS successful-ok | |
372 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
373 | } | |
374 | { | |
375 | SKIP-IF-NOT-DEFINED HAVE_CMYK | |
376 | NAME "D-1.5 Print document-letter.pwg @ $RASTER_RESOLUTION, cmyk-8" | |
377 | OPERATION Print-Job | |
378 | GROUP operation-attributes-tag | |
379 | ATTR charset attributes-charset utf-8 | |
380 | ATTR naturalLanguage attributes-natural-language en | |
381 | ATTR uri printer-uri $uri | |
382 | ATTR name requesting-user-name $user | |
383 | ATTR name job-name "document-letter.pwg @ $RASTER_RESOLUTION\, cmyk-8" | |
384 | ATTR mimeMediaType document-format "image/pwg-raster" | |
385 | FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/cmyk-8/document-letter-cmyk-8-600dpi.pwg" | |
386 | STATUS successful-ok | |
387 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
388 | } | |
389 | ||
390 | #### JPEG Tests | |
391 | { | |
392 | NAME "D-2. JPEG Tests (mandatory)" | |
393 | OPERATION Get-Printer-Attributes | |
394 | GROUP operation-attributes-tag | |
395 | ATTR charset attributes-charset utf-8 | |
396 | ATTR naturalLanguage attributes-natural-language en | |
397 | ATTR uri printer-uri $uri | |
398 | ATTR name requesting-user-name $user | |
399 | ||
400 | STATUS successful-ok | |
401 | ||
402 | EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag WITH-VALUE "image/jpeg" | |
403 | } | |
404 | { | |
405 | NAME "D-2.1 Print color.jpg with defaults" | |
406 | OPERATION Print-Job | |
407 | GROUP operation-attributes-tag | |
408 | ATTR charset attributes-charset utf-8 | |
409 | ATTR naturalLanguage attributes-natural-language en | |
410 | ATTR uri printer-uri $uri | |
411 | ATTR name requesting-user-name $user | |
412 | ATTR name job-name "color.jpg with defaults" | |
413 | ATTR mimeMediaType document-format "image/jpeg" | |
414 | FILE "color.jpg" | |
415 | ||
416 | STATUS successful-ok | |
417 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
418 | } | |
419 | { | |
420 | NAME "D-2.2 Print color.jpg with copies=2" | |
421 | OPERATION Print-Job | |
422 | GROUP operation-attributes-tag | |
423 | ATTR charset attributes-charset utf-8 | |
424 | ATTR naturalLanguage attributes-natural-language en | |
425 | ATTR uri printer-uri $uri | |
426 | ATTR name requesting-user-name $user | |
427 | ATTR name job-name "color.jpg with copies=2" | |
428 | ATTR mimeMediaType document-format "image/jpeg" | |
429 | GROUP job-attributes-tag | |
430 | ATTR integer copies 2 | |
431 | FILE "color.jpg" | |
432 | ||
433 | STATUS successful-ok | |
434 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
435 | } | |
436 | { | |
437 | NAME "D-2.3 Print color.jpg with print-color-mode=monochrome" | |
438 | OPERATION Print-Job | |
439 | GROUP operation-attributes-tag | |
440 | ATTR charset attributes-charset utf-8 | |
441 | ATTR naturalLanguage attributes-natural-language en | |
442 | ATTR uri printer-uri $uri | |
443 | ATTR name requesting-user-name $user | |
444 | ATTR name job-name "color.jpg with print-color-mode=monochrome" | |
445 | ATTR mimeMediaType document-format "image/jpeg" | |
446 | GROUP job-attributes-tag | |
447 | ATTR keyword print-color-mode monochrome | |
448 | FILE "color.jpg" | |
449 | ||
450 | STATUS successful-ok | |
451 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
452 | } | |
453 | { | |
454 | NAME "D-2.4 Print color.jpg with media=na_letter_8.5x11in and ipp-attribute-fidelity=true" | |
455 | OPERATION Print-Job | |
456 | GROUP operation-attributes-tag | |
457 | ATTR charset attributes-charset utf-8 | |
458 | ATTR naturalLanguage attributes-natural-language en | |
459 | ATTR uri printer-uri $uri | |
460 | ATTR name requesting-user-name $user | |
461 | ATTR name job-name "color.jpg with media=na_letter_8.5x11in and ipp-attribute-fidelity=true" | |
462 | ATTR mimeMediaType document-format "image/jpeg" | |
463 | ATTR boolean ipp-attribute-fidelity true | |
464 | GROUP job-attributes-tag | |
465 | ATTR keyword media na_letter_8.5x11in | |
466 | FILE "color.jpg" | |
467 | ||
468 | STATUS successful-ok | |
469 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
470 | } | |
471 | { | |
472 | NAME "D-2.5 Print color.jpg with media=iso_a4_210x297mm and ipp-attribute-fidelity=true" | |
473 | OPERATION Print-Job | |
474 | GROUP operation-attributes-tag | |
475 | ATTR charset attributes-charset utf-8 | |
476 | ATTR naturalLanguage attributes-natural-language en | |
477 | ATTR uri printer-uri $uri | |
478 | ATTR name requesting-user-name $user | |
479 | ATTR name job-name "color.jpg with media=iso_a4_210x297mm and ipp-attribute-fidelity=true" | |
480 | ATTR mimeMediaType document-format "image/jpeg" | |
481 | ATTR boolean ipp-attribute-fidelity true | |
482 | GROUP job-attributes-tag | |
483 | ATTR keyword media iso_a4_210x297mm | |
484 | FILE "color.jpg" | |
485 | ||
486 | STATUS successful-ok | |
487 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
488 | } | |
489 | ||
490 | #### PDF Tests | |
491 | { | |
492 | NAME "D-3. PDF Tests (if PDF is supported)" | |
493 | OPERATION Get-Printer-Attributes | |
494 | GROUP operation-attributes-tag | |
495 | ATTR charset attributes-charset utf-8 | |
496 | ATTR naturalLanguage attributes-natural-language en | |
497 | ATTR uri printer-uri $uri | |
498 | ATTR name requesting-user-name $user | |
499 | ||
500 | STATUS successful-ok | |
501 | ||
502 | EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag WITH-VALUE "application/pdf" DEFINE-MATCH HAVE_PDF | |
503 | EXPECT sides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "two-sided-long-edge" DEFINE-MATCH HAVE_DUPLEX | |
504 | } | |
505 | { | |
506 | SKIP-IF-NOT-DEFINED HAVE_PDF | |
507 | NAME "D-3.1 Print document-letter.pdf with defaults" | |
508 | OPERATION Print-Job | |
509 | GROUP operation-attributes-tag | |
510 | ATTR charset attributes-charset utf-8 | |
511 | ATTR naturalLanguage attributes-natural-language en | |
512 | ATTR uri printer-uri $uri | |
513 | ATTR name requesting-user-name $user | |
514 | ATTR name job-name "document-letter.pdf with defaults" | |
515 | ATTR mimeMediaType document-format "application/pdf" | |
516 | FILE "document-letter.pdf" | |
517 | ||
518 | STATUS successful-ok | |
519 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
520 | } | |
521 | { | |
522 | SKIP-IF-NOT-DEFINED HAVE_PDF | |
523 | NAME "D-3.2 Print document-letter.pdf with copies=2" | |
524 | OPERATION Print-Job | |
525 | GROUP operation-attributes-tag | |
526 | ATTR charset attributes-charset utf-8 | |
527 | ATTR naturalLanguage attributes-natural-language en | |
528 | ATTR uri printer-uri $uri | |
529 | ATTR name requesting-user-name $user | |
530 | ATTR name job-name "document-letter.pdf with copies=2" | |
531 | ATTR mimeMediaType document-format "application/pdf" | |
532 | GROUP job-attributes-tag | |
533 | ATTR integer copies 2 | |
534 | FILE "document-letter.pdf" | |
535 | ||
536 | STATUS successful-ok | |
537 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
538 | } | |
539 | { | |
540 | SKIP-IF-NOT-DEFINED HAVE_PDF | |
541 | NAME "D-3.3 Print document-letter.pdf with page-ranges=3-3 and print-color-mode=monochrome" | |
542 | OPERATION Print-Job | |
543 | GROUP operation-attributes-tag | |
544 | ATTR charset attributes-charset utf-8 | |
545 | ATTR naturalLanguage attributes-natural-language en | |
546 | ATTR uri printer-uri $uri | |
547 | ATTR name requesting-user-name $user | |
548 | ATTR name job-name "document-letter.pdf with page-ranges=3-3 and print-color-mode=monochrome" | |
549 | ATTR mimeMediaType document-format "application/pdf" | |
550 | GROUP job-attributes-tag | |
551 | ATTR rangeOfInteger page-ranges 3-3 | |
552 | ATTR keyword print-color-mode monochrome | |
553 | FILE "document-letter.pdf" | |
554 | ||
555 | STATUS successful-ok | |
556 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
557 | } | |
558 | { | |
559 | SKIP-IF-NOT-DEFINED HAVE_PDF | |
560 | SKIP-IF-NOT-DEFINED HAVE_DUPLEX | |
561 | NAME "D-3.4 Print document-letter.pdf with sides=two-sided-long-edge" | |
562 | OPERATION Print-Job | |
563 | GROUP operation-attributes-tag | |
564 | ATTR charset attributes-charset utf-8 | |
565 | ATTR naturalLanguage attributes-natural-language en | |
566 | ATTR uri printer-uri $uri | |
567 | ATTR name requesting-user-name $user | |
568 | ATTR name job-name "document-letter.pdf with sides=two-sided-long-edge" | |
569 | ATTR mimeMediaType document-format "application/pdf" | |
570 | GROUP job-attributes-tag | |
571 | ATTR keyword sides two-sided-long-edge | |
572 | FILE "document-letter.pdf" | |
573 | ||
574 | STATUS successful-ok | |
575 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
576 | } | |
577 | { | |
578 | SKIP-IF-NOT-DEFINED HAVE_PDF | |
579 | NAME "D-3.5 Print document-letter.pdf with media=iso_a4_210x297mm and ipp-attribute-fidelity=true" | |
580 | OPERATION Print-Job | |
581 | GROUP operation-attributes-tag | |
582 | ATTR charset attributes-charset utf-8 | |
583 | ATTR naturalLanguage attributes-natural-language en | |
584 | ATTR uri printer-uri $uri | |
585 | ATTR name requesting-user-name $user | |
586 | ATTR name job-name "document-letter.pdf with media=iso_a4_210x297mm and ipp-attribute-fidelity=true" | |
587 | ATTR mimeMediaType document-format "application/pdf" | |
588 | ATTR boolean ipp-attribute-fidelity true | |
589 | GROUP job-attributes-tag | |
590 | ATTR keyword media iso_a4_210x297mm | |
591 | FILE "document-letter.pdf" | |
592 | ||
593 | STATUS successful-ok | |
594 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
595 | } | |
596 | { | |
597 | SKIP-IF-NOT-DEFINED HAVE_PDF | |
598 | NAME "D-3.6 Print document-a4.pdf with media=na_letter_8.5x11in and ipp-attribute-fidelity=true" | |
599 | OPERATION Print-Job | |
600 | GROUP operation-attributes-tag | |
601 | ATTR charset attributes-charset utf-8 | |
602 | ATTR naturalLanguage attributes-natural-language en | |
603 | ATTR uri printer-uri $uri | |
604 | ATTR name requesting-user-name $user | |
605 | ATTR name job-name "document-a4.pdf with media=na_letter_8.5x11in and ipp-attribute-fidelity=true" | |
606 | ATTR mimeMediaType document-format "application/pdf" | |
607 | ATTR boolean ipp-attribute-fidelity true | |
608 | GROUP job-attributes-tag | |
609 | ATTR keyword media na_letter_8.5x11in | |
610 | FILE "document-a4.pdf" | |
611 | ||
612 | STATUS successful-ok | |
613 | STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30 | |
614 | } | |
615 | ||
616 | # | |
617 | # End of "$Id$". | |
618 | # |