Ipp test is not skipped for resolution attribute.
ipptool: Bad resolution value "" on line 14 of 'resolution.test'.
Here is the content of resolution.test file.
{ SKIP-IF-NOT-DEFINED PRINTER_RESOLUTION NAME "Validate-Job: resolution" OPERATION Validate-Job GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR naturalLanguage attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format application/octet-stream
GROUP job-attributes-tag
ATTR resolution printer-resolution $PRINTER_RESOLUTION
# ATTR keyword sides $PRINTER_RESOLUTION #This line is for testing if the test is skipped.
STATUS successful-ok
}
run this using below command to reproduce the issue.
ipptool -vt ipp://
By defining PRINTER_RESOLUTION test case passes but how to skip the resolution.
ipptool -vt ipp://
Note: It works for the keyword attribute.
This is probably because an empty string is a valid keyword value but not a valid resolution value... Will see what we can do here...
[master 4816d4ca2] Allow empty string for resolution values (Issue #63)