summaryrefslogtreecommitdiff
path: root/examples/print-job-media-col.test
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-04-26 11:05:27 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-04-26 11:05:27 -0400
commitf1ac9f5889e6a9a8996041ab46e6ca1e0cb8a238 (patch)
treeb28d47f3580aa4ea386b7a09c6c6340f16cdbd80 /examples/print-job-media-col.test
parenta76950482b3327f096e7188234173d739101aef1 (diff)
downloadcups-f1ac9f5889e6a9a8996041ab46e6ca1e0cb8a238.tar.gz
Move example ipptool files to the examples directory.
Build tools directory for IPP tools.
Diffstat (limited to 'examples/print-job-media-col.test')
-rw-r--r--examples/print-job-media-col.test46
1 files changed, 46 insertions, 0 deletions
diff --git a/examples/print-job-media-col.test b/examples/print-job-media-col.test
new file mode 100644
index 000000000..cafd291fb
--- /dev/null
+++ b/examples/print-job-media-col.test
@@ -0,0 +1,46 @@
+# Print a test page using Print-Job + media-col
+#
+# Usage:
+#
+# ./ipptest -f filename ipp://... print-job-media-col.test
+{
+ # The name of the test...
+ NAME "Print test page using Print-Job + media-col"
+
+ # The operation to use
+ OPERATION Print-Job
+
+ # Attributes, starting in the operation group...
+ GROUP operation-attributes-tag
+ ATTR charset attributes-charset utf-8
+ ATTR language attributes-natural-language en
+ ATTR uri printer-uri $uri
+ ATTR name requesting-user-name $user
+ ATTR mimetype document-format application/octet-stream
+
+ GROUP job-attributes-tag
+ ATTR collection media-col {
+ MEMBER collection media-size {
+ # 4x6
+ MEMBER integer x-dimension 10160
+ MEMBER integer y-dimension 15240
+ }
+
+ # Borderless
+ MEMBER integer media-left-margin 0
+ MEMBER integer media-right-margin 0
+ MEMBER integer media-top-margin 0
+ MEMBER integer media-bottom-margin 0
+ }
+ ATTR enum print-quality 5
+
+ FILE $filename
+
+ # What statuses are OK?
+ STATUS successful-ok
+ STATUS successful-ok-ignored-or-substituted-attributes
+
+ # What attributes do we expect?
+ EXPECT job-id OF-TYPE integer WITH-VALUE >0
+ EXPECT job-uri OF-TYPE uri
+}