OpenPrinting / OpenPrinting/libcups

ipptool: Add support for running sub-tests using xxx-supported values

Open
#11 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement priority-low
Dominant language
C
Stars
81
Forks
48
Avg merge
23h 58m
Merged PRs (30d)
2

Description

It would be useful to have ipptool support iteration over a series of supported values reported by the printer, e.g.:

EXPECT foo-supported OF-TYPE keyword TEST-VALUES variable "testfile"

or something like that, where ipptool would define the specified variable and then include the specified test file to perform additional tests.

Since we'd likely want to implement a test matrix from multiple attributes, the syntax should probably be something like:

EXPECT foo-supported OF-TYPE keyword TEST-VALUES foo-variable
EXPECT bar-supported OF-TYPE resolution TEST-VALUES bar-variable
TEST-SCRIPT "filename.test"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ipptool's handling of EXPECT and TEST-SCRIPT commands, using the proposed foo-supported and bar-supported examples as the behavioral outline. Define the iteration and variable-substitution requirements for included test files, including the multi-attribute test matrix, and consider the issue complete when the syntax and resulting behavior are specified and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.