]> git.ipfire.org Git - thirdparty/cups.git/blame - test/get-completed-jobs.test
Import CUPS v2.0rc1
[thirdparty/cups.git] / test / get-completed-jobs.test
CommitLineData
aaf19ab0 1#
5d2cc5d3 2# "$Id: get-completed-jobs.test 12088 2014-08-07 01:09:21Z msweet $"
aaf19ab0
MS
3#
4# Get list of completed jobs.
5#
5d2cc5d3 6# Copyright 2007-2014 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#
39ff2fe7 17# ./ipptool printer-uri get-completed-jobs.test
aaf19ab0
MS
18#
19
20
21{
22 # The name of the test...
23 NAME "Get completed jobs"
24
25 # The operation to use
26 OPERATION Get-Jobs
27
28 # Attributes, starting in the operation group...
29 GROUP operation-attributes-tag
30 ATTR charset attributes-charset utf-8
31 ATTR language attributes-natural-language en
32 ATTR uri printer-uri $uri
33 ATTR keyword which-jobs completed
34 ATTR keyword requested-attributes
5d2cc5d3 35 job-id,job-uri,job-state,job-state-reasons,job-name,job-originating-user-name,job-media-sheets-completed
aaf19ab0
MS
36
37 # What statuses are OK?
38 STATUS successful-ok
39
40 # What attributes to display
41 DISPLAY job-id
39ff2fe7 42 DISPLAY job-state
aaf19ab0 43 DISPLAY job-name
aaf19ab0 44 DISPLAY job-originating-user-name
39ff2fe7 45 DISPLAY job-media-sheets-completed
aaf19ab0
MS
46}
47
48
49#
5d2cc5d3 50# End of "$Id: get-completed-jobs.test 12088 2014-08-07 01:09:21Z msweet $".
aaf19ab0 51#