Skip to content

tests: fix testfilters line counting and missing header#118

Closed
shreyanshtiwari4 wants to merge 2 commits intoOpenPrinting:masterfrom
shreyanshtiwari4:tests/testfilters-line-count
Closed

tests: fix testfilters line counting and missing header#118
shreyanshtiwari4 wants to merge 2 commits intoOpenPrinting:masterfrom
shreyanshtiwari4:tests/testfilters-line-count

Conversation

@shreyanshtiwari4
Copy link
Contributor

Fix testfilters.sh to parse and count the test-filter-cases.txt file automatically and in turn removing the need to hardcode the total number of testcases everytime any change is made to test-filter-cases.txt file, and if the testcases count was wrong the risk of skipping some testcases silently was there.

Also added the missing <sys/stat.h> include in header of testfilters.c file(which is required for S_IRUSR/S_IWUSR on some platforms).

Fix testfilters.sh to parse and count the test-filter-cases.txt file automatically and in turn removing the need to hardcode the total number of testcases everytime any change is made to test-filter-cases.txt file.

Also added the missing <sys/stat.h> include in header of testfilters.c file(which is required for S_IRUSR/S_IWUSR
on some platforms).
@shreyanshtiwari4 shreyanshtiwari4 force-pushed the tests/testfilters-line-count branch from 11614b3 to 48ae8fd Compare February 19, 2026 06:45
@shreyanshtiwari4
Copy link
Contributor Author

Added an optional FilterChain column to test-filter-cases.txt header, and will add a corresponding conditional logic in testfilters harness so that , if people have option to use cfFilterChain() with there own CUPS array created manually, instead of just using cfFilterUniversal().

And updated descriptive comments for Job-Id, User, Title and Copies
while appending optional FilterChain column.
@shreyanshtiwari4 shreyanshtiwari4 force-pushed the tests/testfilters-line-count branch from 48ae8fd to 30d5f2a Compare February 19, 2026 07:13
@shreyanshtiwari4 shreyanshtiwari4 deleted the tests/testfilters-line-count branch February 20, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant