File: cups-create-local-printer.test

package info (click to toggle)
ippsample 0.0~git20220607.72f89b3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 36,580 kB
  • sloc: ansic: 108,192; sh: 3,417; makefile: 1,163
file content (32 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Create a local (temporary) print queue
#
# Usage:
#
#    ipptool -tv -d name=... -d device=ipp://... ipp://localhost:port/ cups-create-local-printer.test
{
	# The name of the test...
	NAME "Create local print queue"

	# The operation to use
	OPERATION CUPS-Create-Local-Printer

	# Attributes, starting in the operation group...
	GROUP operation-attributes-tag
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR name requesting-user-name $user

	GROUP printer-attributes-tag
	ATTR name printer-name $name
	ATTR uri device-uri $device

	# What statuses are OK?
	STATUS successful-ok

	# What attributes do we expect?
	EXPECT printer-is-accepting-jobs OF-TYPE boolean
	EXPECT printer-state OF-TYPE enum
	EXPECT printer-state-reasons OF-TYPE keyword
	EXPECT printer-uri-supported OF-TYPE uri
}