Blame test/ipp-2.2.test

Packit 2fc92b
#
Packit 2fc92b
# IPP/2.2 test suite.
Packit 2fc92b
#
Packit 2fc92b
# Copyright 2007-2017 by Apple Inc.
Packit 2fc92b
# Copyright 2001-2006 by Easy Software Products. All rights reserved.
Packit 2fc92b
#
Packit 2fc92b
# These coded instructions, statements, and computer programs are the
Packit 2fc92b
# property of Apple Inc. and are protected by Federal copyright
Packit 2fc92b
# law.  Distribution and use rights are outlined in the file "LICENSE.txt"
Packit 2fc92b
# which should have been included with this file.  If this file is
Packit 2fc92b
# file is missing or damaged, see the license at "http://www.cups.org/".
Packit 2fc92b
#
Packit 2fc92b
# Usage:
Packit 2fc92b
#
Packit 2fc92b
#   ./ipptool -V 2.2 -f filename -t printer-uri ipp-2.2.test
Packit 2fc92b
#
Packit 2fc92b
Packit 2fc92b
# Do all of the IPP/1.1, IPP/2.0, and IPP/2.1 tests as an IPP/2.2 client
Packit 2fc92b
INCLUDE "ipp-2.1.test"
Packit 2fc92b
Packit 2fc92b
Packit 2fc92b
# Test required printer description attribute support.
Packit 2fc92b
#
Packit 2fc92b
# Required by: PWG 5100.12 section 6.4
Packit 2fc92b
{
Packit 2fc92b
	NAME "PWG 5100.12 section 6.4 - Required Printer Description Attributes"
Packit 2fc92b
	OPERATION Get-Printer-Attributes
Packit 2fc92b
	GROUP operation-attributes-tag
Packit 2fc92b
	ATTR charset attributes-charset utf-8
Packit 2fc92b
	ATTR naturalLanguage attributes-natural-language en
Packit 2fc92b
	ATTR uri printer-uri $uri
Packit 2fc92b
	ATTR name requesting-user-name $user
Packit 2fc92b
	ATTR mimeMediaType document-format application/octet-stream
Packit 2fc92b
Packit 2fc92b
	STATUS successful-ok
Packit 2fc92b
Packit 2fc92b
	# Job template attributes
Packit 2fc92b
	EXPECT number-up-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0
Packit 2fc92b
	EXPECT number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0
Packit 2fc92b
	EXPECT overrides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "document-numbers"
Packit 2fc92b
	EXPECT overrides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "pages"
Packit 2fc92b
	EXPECT page-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 1
Packit 2fc92b
Packit 2fc92b
	# Printer description attributes
Packit 2fc92b
	EXPECT job-creation-attributes-supported OF-TYPE keyword IN-GROUP printer-attributes-tag
Packit 2fc92b
	EXPECT job-ids-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 1
Packit 2fc92b
	EXPECT media-col-ready
Packit 2fc92b
	EXPECT media-ready
Packit 2fc92b
	EXPECT multiple-document-jobs-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 1
Packit 2fc92b
	EXPECT printer-alert OF-TYPE octetString IN-GROUP printer-attributes-tag
Packit 2fc92b
	EXPECT printer-alert-description OF-TYPE text IN-GROUP printer-attributes-tag SAME-COUNT-AS printer-alert
Packit 2fc92b
	EXPECT printer-device-id OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1
Packit 2fc92b
	EXPECT printer-message-from-operator OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/"
Packit 2fc92b
	EXPECT which-jobs-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "completed"
Packit 2fc92b
	EXPECT which-jobs-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "proof-print"
Packit 2fc92b
	EXPECT which-jobs-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "not-completed"
Packit 2fc92b
Packit 2fc92b
	# Operations
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0024 # Pause-Printer-After-Current-Job
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0025 # Hold-New-Jobs
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0026 # Release-Held-New-Jobs
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0029 # Restart-Printer
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x002A # Shutdown-Printer
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x002B # Startup-Printer
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x002C # Reprocess-Job
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x002D # Cancel-Current-Job
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x002E # Suspend-Current-Job
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x002F # Resume-Job
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0030 # Promote-Job
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0031 # Schedule-Job-After
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0033 # Cancel-Document
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0034 # Get-Document-Attributes
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0035 # Get-Documents
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0037 # Set-Document-Attributes
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0038 # Cancel-Jobs
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x0039 # Cancel-My-Jobs
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x003A # Resubmit-Job
Packit 2fc92b
	EXPECT operations-supported WITH-VALUE 0x003B # Close-Job
Packit 2fc92b
}