]> git.ipfire.org Git - thirdparty/cups.git/blame - everywhere/document-tests.test
Add a (non-shipping) man page for ippserver.
[thirdparty/cups.git] / everywhere / document-tests.test
CommitLineData
6b2419da 1#
c2c30ebc 2# "$Id$"
6b2419da 3#
a654c79d 4# IPP Everywhere Printer Self-Certification Manual 1.0: Section 7: Document Data Tests.
6b2419da 5#
a654c79d
MS
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.
6b2419da 9#
a654c79d
MS
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/".
6b2419da
MS
15#
16# Usage:
17#
a654c79d 18# ./ipptool -tI printer-uri document-tests.test
6b2419da 19#
a654c79d
MS
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.
6b2419da 28#
6b2419da 29
276762cd 30FILE-ID "org.pwg.ipp-everywhere.20140826.document"
8288bfd0 31
6b2419da 32{
8288bfd0 33 NAME "D-1. PWG Raster Format Tests (mandatory)"
a654c79d 34 OPERATION Get-Printer-Attributes
6b2419da
MS
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
6b2419da
MS
40
41 STATUS successful-ok
6b2419da 42
a654c79d
MS
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
6b2419da 45
a654c79d 46 EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag WITH-VALUE "image/pwg-raster"
6b2419da 47
a654c79d
MS
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
6b2419da
MS
54}
55
a654c79d 56#### 1.1 NO COMPRESSION ####
6b2419da 57{
a654c79d 58 SKIP-IF-NOT-DEFINED HAVE_BLACK
8288bfd0 59 NAME "D-1.1 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, black-1"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 69 STATUS successful-ok
a654c79d 70 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 71}
6b2419da 72{
a654c79d 73 SKIP-IF-NOT-DEFINED HAVE_SGRAY
8288bfd0 74 NAME "D-1.1 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, sgray-8"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 84 STATUS successful-ok
a654c79d 85 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 86}
6b2419da 87{
a654c79d 88 SKIP-IF-NOT-DEFINED HAVE_SRGB
8288bfd0 89 NAME "D-1.1 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, srgb-8"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 99 STATUS successful-ok
a654c79d 100 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 101}
6b2419da 102{
a654c79d 103 SKIP-IF-NOT-DEFINED HAVE_CMYK
8288bfd0 104 NAME "D-1.1 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, cmyk-8"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 114 STATUS successful-ok
a654c79d 115 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da
MS
116}
117
a654c79d 118#### 1.2 DEFLATE COMPRESSION ####
6b2419da 119{
a654c79d 120 SKIP-IF-NOT-DEFINED HAVE_BLACK
6b2419da 121 SKIP-IF-NOT-DEFINED HAVE_DEFLATE
8288bfd0 122 NAME "D-1.2 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, black-1, deflate"
6b2419da
MS
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
a654c79d
MS
129 ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, black-1\, deflate"
130 ATTR mimeMediaType document-format "image/pwg-raster"
6b2419da 131 ATTR keyword compression deflate
6b2419da 132 COMPRESSION deflate
a654c79d 133 FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/black-1/color.jpg-4x6-black-1-600dpi.pwg"
6b2419da 134 STATUS successful-ok
a654c79d 135 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 136}
6b2419da 137{
a654c79d 138 SKIP-IF-NOT-DEFINED HAVE_SGRAY
6b2419da 139 SKIP-IF-NOT-DEFINED HAVE_DEFLATE
8288bfd0 140 NAME "D-1.2 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, sgray-8, deflate"
6b2419da
MS
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
a654c79d
MS
147 ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, sgray-8\, deflate"
148 ATTR mimeMediaType document-format "image/pwg-raster"
6b2419da 149 ATTR keyword compression deflate
6b2419da 150 COMPRESSION deflate
a654c79d 151 FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/sgray-8/color.jpg-4x6-sgray-8-600dpi.pwg"
6b2419da 152 STATUS successful-ok
a654c79d 153 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 154}
6b2419da 155{
a654c79d 156 SKIP-IF-NOT-DEFINED HAVE_SRGB
6b2419da 157 SKIP-IF-NOT-DEFINED HAVE_DEFLATE
8288bfd0 158 NAME "D-1.2 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, srgb-8, deflate"
6b2419da
MS
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
a654c79d
MS
165 ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, srgb-8\, deflate"
166 ATTR mimeMediaType document-format "image/pwg-raster"
6b2419da 167 ATTR keyword compression deflate
6b2419da 168 COMPRESSION deflate
a654c79d 169 FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/srgb-8/color.jpg-4x6-srgb-8-600dpi.pwg"
6b2419da 170 STATUS successful-ok
a654c79d 171 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 172}
6b2419da 173{
a654c79d 174 SKIP-IF-NOT-DEFINED HAVE_CMYK
6b2419da 175 SKIP-IF-NOT-DEFINED HAVE_DEFLATE
8288bfd0 176 NAME "D-1.2 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, cmyk-8, deflate"
6b2419da
MS
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
a654c79d
MS
183 ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, cmyk-8\, deflate"
184 ATTR mimeMediaType document-format "image/pwg-raster"
6b2419da 185 ATTR keyword compression deflate
6b2419da 186 COMPRESSION deflate
a654c79d 187 FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/cmyk-8/color.jpg-4x6-cmyk-8-600dpi.pwg"
6b2419da 188 STATUS successful-ok
a654c79d 189 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da
MS
190}
191
a654c79d 192#### 1.3 GZIP COMPRESSION ####
6b2419da 193{
a654c79d 194 SKIP-IF-NOT-DEFINED HAVE_BLACK
6b2419da 195 SKIP-IF-NOT-DEFINED HAVE_GZIP
8288bfd0 196 NAME "D-1.3 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, black-1, gzip"
6b2419da
MS
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
a654c79d
MS
203 ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, black-1\, gzip"
204 ATTR mimeMediaType document-format "image/pwg-raster"
6b2419da 205 ATTR keyword compression gzip
6b2419da 206 COMPRESSION gzip
a654c79d 207 FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/black-1/color.jpg-4x6-black-1-600dpi.pwg"
6b2419da 208 STATUS successful-ok
a654c79d 209 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 210}
6b2419da 211{
a654c79d
MS
212 SKIP-IF-NOT-DEFINED HAVE_SGRAY
213 SKIP-IF-NOT-DEFINED HAVE_GZIP
8288bfd0 214 NAME "D-1.3 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, sgray-8, gzip"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 226 STATUS successful-ok
a654c79d 227 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 228}
6b2419da 229{
a654c79d
MS
230 SKIP-IF-NOT-DEFINED HAVE_SRGB
231 SKIP-IF-NOT-DEFINED HAVE_GZIP
8288bfd0 232 NAME "D-1.3 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, srgb-8, gzip"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 244 STATUS successful-ok
a654c79d 245 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 246}
6b2419da 247{
a654c79d 248 SKIP-IF-NOT-DEFINED HAVE_CMYK
6b2419da 249 SKIP-IF-NOT-DEFINED HAVE_GZIP
8288bfd0 250 NAME "D-1.3 Print color.jpg-4x6.pwg @ $RASTER_RESOLUTION, cmyk-8, gzip"
6b2419da
MS
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
a654c79d
MS
257 ATTR name job-name "color.jpg-4x6.pwg @ $RASTER_RESOLUTION\, cmyk-8\, gzip"
258 ATTR mimeMediaType document-format "image/pwg-raster"
6b2419da 259 ATTR keyword compression gzip
6b2419da 260 COMPRESSION gzip
a654c79d 261 FILE "pwg-raster-samples-${RASTER_RESOLUTION}-20111130/cmyk-8/color.jpg-4x6-cmyk-8-600dpi.pwg"
6b2419da 262 STATUS successful-ok
a654c79d 263 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da
MS
264}
265
a654c79d 266#### 1.4 A4 TESTS ####
6b2419da 267{
a654c79d 268 SKIP-IF-NOT-DEFINED HAVE_BLACK
8288bfd0 269 NAME "D-1.4 Print document-a4.pwg @ $RASTER_RESOLUTION, black-1"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 279 STATUS successful-ok
a654c79d 280 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 281}
6b2419da 282{
a654c79d 283 SKIP-IF-NOT-DEFINED HAVE_SGRAY
8288bfd0 284 NAME "D-1.4 Print document-a4.pwg @ $RASTER_RESOLUTION, sgray-8"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 294 STATUS successful-ok
a654c79d 295 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 296}
6b2419da 297{
a654c79d 298 SKIP-IF-NOT-DEFINED HAVE_SRGB
8288bfd0 299 NAME "D-1.4 Print document-a4.pwg @ $RASTER_RESOLUTION, srgb-8"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 309 STATUS successful-ok
a654c79d 310 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 311}
6b2419da 312{
a654c79d 313 SKIP-IF-NOT-DEFINED HAVE_CMYK
8288bfd0 314 NAME "D-1.4 Print document-a4.pwg @ $RASTER_RESOLUTION, cmyk-8"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 324 STATUS successful-ok
a654c79d 325 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da
MS
326}
327
a654c79d 328#### 1.5 US Letter TESTS ####
6b2419da 329{
a654c79d 330 SKIP-IF-NOT-DEFINED HAVE_BLACK
8288bfd0 331 NAME "D-1.5 Print document-letter.pwg @ $RASTER_RESOLUTION, black-1"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 341 STATUS successful-ok
a654c79d 342 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 343}
6b2419da 344{
a654c79d 345 SKIP-IF-NOT-DEFINED HAVE_SGRAY
8288bfd0 346 NAME "D-1.5 Print document-letter.pwg @ $RASTER_RESOLUTION, sgray-8"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 356 STATUS successful-ok
a654c79d 357 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 358}
6b2419da 359{
a654c79d 360 SKIP-IF-NOT-DEFINED HAVE_SRGB
8288bfd0 361 NAME "D-1.5 Print document-letter.pwg @ $RASTER_RESOLUTION, srgb-8"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 371 STATUS successful-ok
a654c79d 372 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da 373}
6b2419da 374{
a654c79d 375 SKIP-IF-NOT-DEFINED HAVE_CMYK
8288bfd0 376 NAME "D-1.5 Print document-letter.pwg @ $RASTER_RESOLUTION, cmyk-8"
6b2419da
MS
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
a654c79d
MS
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"
6b2419da 386 STATUS successful-ok
a654c79d 387 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
6b2419da
MS
388}
389
952fa13d 390#### JPEG Tests
a654c79d 391{
8288bfd0 392 NAME "D-2. JPEG Tests (mandatory)"
a654c79d 393 OPERATION Get-Printer-Attributes
6b2419da
MS
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
6b2419da
MS
399
400 STATUS successful-ok
6b2419da 401
a654c79d
MS
402 EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag WITH-VALUE "image/jpeg"
403}
952fa13d 404{
8288bfd0 405 NAME "D-2.1 Print color.jpg with defaults"
952fa13d
MS
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{
8288bfd0 420 NAME "D-2.2 Print color.jpg with copies=2"
952fa13d
MS
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{
8288bfd0 437 NAME "D-2.3 Print color.jpg with print-color-mode=monochrome"
952fa13d
MS
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{
8288bfd0 454 NAME "D-2.4 Print color.jpg with media=na_letter_8.5x11in and ipp-attribute-fidelity=true"
952fa13d
MS
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"
6b2419da 467
952fa13d
MS
468 STATUS successful-ok
469 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
470}
471{
8288bfd0 472 NAME "D-2.5 Print color.jpg with media=iso_a4_210x297mm and ipp-attribute-fidelity=true"
952fa13d
MS
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"
6b2419da 485
952fa13d
MS
486 STATUS successful-ok
487 STATUS server-error-busy REPEAT-MATCH REPEAT-LIMIT 30
488}
6b2419da 489
952fa13d 490#### PDF Tests
6b2419da 491{
8288bfd0 492 NAME "D-3. PDF Tests (if PDF is supported)"
a654c79d 493 OPERATION Get-Printer-Attributes
6b2419da
MS
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
6b2419da
MS
499
500 STATUS successful-ok
6b2419da 501
a654c79d 502 EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag WITH-VALUE "application/pdf" DEFINE-MATCH HAVE_PDF
952fa13d
MS
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
8288bfd0 507 NAME "D-3.1 Print document-letter.pdf with defaults"
952fa13d
MS
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
8288bfd0 523 NAME "D-3.2 Print document-letter.pdf with copies=2"
952fa13d
MS
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
8288bfd0 541 NAME "D-3.3 Print document-letter.pdf with page-ranges=3-3 and print-color-mode=monochrome"
952fa13d
MS
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
8288bfd0 561 NAME "D-3.4 Print document-letter.pdf with sides=two-sided-long-edge"
952fa13d
MS
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
8288bfd0 579 NAME "D-3.5 Print document-letter.pdf with media=iso_a4_210x297mm and ipp-attribute-fidelity=true"
952fa13d
MS
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
8288bfd0 598 NAME "D-3.6 Print document-a4.pdf with media=na_letter_8.5x11in and ipp-attribute-fidelity=true"
952fa13d
MS
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
a654c79d 614}
6b2419da
MS
615
616#
c2c30ebc 617# End of "$Id$".
6b2419da 618#