cmd/mfp-test: Phase 4 - test matrix and batch/quick/single modes - #101
Open
ArmxG wants to merge 3 commits into
Open
cmd/mfp-test: Phase 4 - test matrix and batch/quick/single modes#101ArmxG wants to merge 3 commits into
ArmxG wants to merge 3 commits into
Conversation
Add PrinterCaps, TestConfig structs and QueryPrinterCaps to query IPP printer attributes. Add BatchMatrix, QuickMatrix, SingleConfig for generating test configurations.
Add TestResult struct and RunTest function that sends a print job with specific IPP attributes and waits for capture. Add Reset() to DocumentCapture so it can be reused across multiple test runs.
Add --quick flag. Wire all four modes to the test matrix: --list prints configs and exits, --batch runs all combinations, --quick runs reduced matrix, --single runs one specific configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements Phase 4 of the print system testing pipeline.
Changes:
1.Add QueryPrinterCaps to query IPP printer attributes (sides, color modes, formats)
2. Add BatchMatrix, QuickMatrix, SingleConfig for test matrix generation
3 Add --quick flag (reduced matrix: all sides × all color modes, first format)
4 Add RunTest runner with TestResult struct
5 Add Reset() to DocumentCapture for reuse across multiple test runs
6 Wire --list, --batch, --quick, --single modes in command.go
Note: RunTest score is a placeholder until Phase 5 adds raster conversion.