summaryrefslogtreecommitdiff
path: root/examples/get-jobs.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/get-jobs.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/get-jobs.test')
-rw-r--r--examples/get-jobs.test33
1 files changed, 33 insertions, 0 deletions
diff --git a/examples/get-jobs.test b/examples/get-jobs.test
new file mode 100644
index 000000000..6dbfc74ea
--- /dev/null
+++ b/examples/get-jobs.test
@@ -0,0 +1,33 @@
+# Get list of not-completed jobs.
+#
+# Usage:
+#
+# ./ipptool printer-uri get-jobs.test
+{
+ # The name of the test...
+ NAME "Get pending jobs"
+
+ # The operation to use
+ OPERATION Get-Jobs
+
+ # 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 keyword requested-attributes
+ job-id,job-uri,job-state,job-state-reasons,job-name,job-originating-user-name,job-media-sheets,job-media-sheets-completed,job-impressions,job-impressions-completed
+
+ # What statuses are OK?
+ STATUS successful-ok
+
+ # What attributes to display
+ DISPLAY job-id
+ DISPLAY job-state
+ DISPLAY job-name
+ DISPLAY job-originating-user-name
+ DISPLAY job-impressions
+ DISPLAY job-impressions-completed
+ DISPLAY job-media-sheets
+ DISPLAY job-media-sheets-completed
+}