• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Create a local (temporary) print queue
2#
3# Usage:
4#
5#    ipptool -tv -d name=... -d device=ipp://... ipp://localhost:port/ cups-create-local-printer.test
6{
7	# The name of the test...
8	NAME "Create local print queue"
9
10	# The operation to use
11	OPERATION CUPS-Create-Local-Printer
12
13	# Attributes, starting in the operation group...
14	GROUP operation-attributes-tag
15	ATTR charset attributes-charset utf-8
16	ATTR language attributes-natural-language en
17	ATTR uri printer-uri $uri
18	ATTR name requesting-user-name $user
19
20	GROUP printer-attributes-tag
21	ATTR name printer-name $name
22	ATTR uri device-uri $device
23
24	# What statuses are OK?
25	STATUS successful-ok
26
27	# What attributes do we expect?
28	EXPECT printer-is-accepting-jobs OF-TYPE boolean
29	EXPECT printer-state OF-TYPE enum
30	EXPECT printer-state-reasons OF-TYPE keyword
31	EXPECT printer-uri-supported OF-TYPE uri
32}
33