#
# Script to create an IPP printer pointing to a PCL device.
#
# Usage:
#
#     ipptool -t -d device-uri=socket://IP-ADDRESS SYSTEM-URI create-printer-pcl.test
#

{
	NAME "Create-Printer for PCL $device-uri"

	OPERATION Create-Printer
	VERSION 2.0

	GROUP operation-attributes-tag
	ATTR charset attributes-charset utf-8
	ATTR naturalLanguage attributes-natural-language en
	ATTR uri system-uri $uri
	ATTR keyword printer-service-type print

	GROUP printer-attributes-tag
	ATTR name printer-name PCL
	ATTR name smi2699-device-command ipptransform
	ATTR mimeMediaType smi2699-device-format application/vnd.hp-pcl
	ATTR uri smi2699-device-uri $device-uri

	STATUS successful-ok
	EXPECT printer-state OF-TYPE enum
	EXPECT printer-state-reasons OF-TYPE keyword
	EXPECT printer-xri-supported OF-TYPE collection
	DISPLAY printer-xri-supported
}
