]> git.ipfire.org Git - thirdparty/cups.git/blame - test/get-jobs.test
Import CUPS v2.0b1
[thirdparty/cups.git] / test / get-jobs.test
CommitLineData
aaf19ab0 1#
1a18c85c 2# "$Id: get-jobs.test 11398 2013-11-06 20:11:11Z msweet $"
aaf19ab0
MS
3#
4# Get list of not-completed jobs.
5#
3e7fe0ca 6# Copyright 2007-2012 by Apple Inc.
aaf19ab0
MS
7# Copyright 2001-2006 by Easy Software Products. All rights reserved.
8#
9# These coded instructions, statements, and computer programs are the
10# property of Apple Inc. and are protected by Federal copyright
11# law. Distribution and use rights are outlined in the file "LICENSE.txt"
12# which should have been included with this file. If this file is
13# file is missing or damaged, see the license at "http://www.cups.org/".
14#
15# Usage:
16#
17# ./ipptool printer-uri get-jobs.test
18#
19
20
f7deaa1a 21{
22 # The name of the test...
aaf19ab0 23 NAME "Get pending jobs"
f7deaa1a 24
25 # The operation to use
26 OPERATION Get-Jobs
27
28 # Attributes, starting in the operation group...
aaf19ab0 29 GROUP operation-attributes-tag
f7deaa1a 30 ATTR charset attributes-charset utf-8
31 ATTR language attributes-natural-language en
32 ATTR uri printer-uri $uri
aaf19ab0 33 ATTR keyword requested-attributes
3e7fe0ca 34 job-id,job-state,job-state-reasons,job-name,job-originating-user-name,job-media-sheets,job-media-sheets-completed,job-impressions,job-impressions-completed
f7deaa1a 35
36 # What statuses are OK?
37 STATUS successful-ok
aaf19ab0
MS
38
39 # What attributes to display
40 DISPLAY job-id
39ff2fe7 41 DISPLAY job-state
aaf19ab0 42 DISPLAY job-name
aaf19ab0 43 DISPLAY job-originating-user-name
07ed0e9a
MS
44 DISPLAY job-impressions
45 DISPLAY job-impressions-completed
46 DISPLAY job-media-sheets
47 DISPLAY job-media-sheets-completed
f7deaa1a 48}
aaf19ab0
MS
49
50
51#
1a18c85c 52# End of "$Id: get-jobs.test 11398 2013-11-06 20:11:11Z msweet $".
aaf19ab0 53#