]> git.ipfire.org Git - thirdparty/cups.git/blob - test/print-job-media-col.test
Merge changes from CUPS 1.5svn-r9041.
[thirdparty/cups.git] / test / print-job-media-col.test
1 # Print a test page using Print-Job + media-col
2 #
3 # Usage:
4 #
5 # ./ipptest -f filename ipp://... print-job-media-col.test
6 {
7 # The name of the test...
8 NAME "Print test page using Print-Job + media-col"
9
10 # The operation to use
11 OPERATION Print-Job
12
13 # Attributes, starting in the operation group...
14 GROUP operation-attributes-tag
15 ATTR charset attributes-charset utf-8
16 ATTR language attributes-natural-language en
17 ATTR uri printer-uri $uri
18 ATTR name requesting-user-name $user
19 ATTR mimetype document-format application/octet-stream
20
21 GROUP job-attributes-tag
22 ATTR collection media-col {
23 MEMBER collection media-size {
24 # 4x6
25 MEMBER integer x-dimension 10160
26 MEMBER integer y-dimension 15240
27 }
28 }
29
30 FILE $filename
31
32 # What statuses are OK?
33 STATUS successful-ok
34 STATUS successful-ok-ignored-or-substituted-attributes
35
36 # What attributes do we expect?
37 EXPECT job-id OF-TYPE integer WITH-VALUE >0
38 EXPECT job-uri OF-TYPE uri
39 }