Files
rk35xx-android14/external/libcups/examples/cups-create-local-printer.test
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

33 lines
860 B
Plaintext

# 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
}