libcups icon indicating copy to clipboard operation
libcups copied to clipboard

ipptool: Add predicate for testing the number of occurrences of an attribute

Open michaelrsweet opened this issue 3 years ago • 0 comments

One of OpenPrinting's GSoC students asked about the ability to test the number of objects that operations like Get-Jobs return, however ipptool cannot do that yet.

Suggested syntax would be something like:

EXPECT-ALL attribute OCCURS 42
EXPECT-ALL attribute OCCURS >1
EXPECT-ALL attribute OCCURS <42

The OCCURS predicate would count the number of occurrences and then compare equality (42), greater than (>1), or less than (<42).

Would also be useful for validating support for the limit attribute...

michaelrsweet avatar May 17 '22 14:05 michaelrsweet