OpenPrinting / libcups

OpenPrinting CUPS Library Sources
https://openprinting.github.io/cups/cups3.html
Apache License 2.0
35 stars 17 forks source link

ipptool: Provide a way to run a subset of tests #13

Open michaelrsweet opened 2 years ago

michaelrsweet commented 2 years ago

From @KurtPfeifle in ippsample issue 60:

After meanwhile quite a few ipp-1.1.test runs and being entangled in related debugging activities, I think the following would be beneficial for future testers:

This way it would be more easy to run specific tests individually, especially when it comes to debugging the respective parts of the now biiiig ipp-1.1.test file.

It would also allow to make a meaningful use of ipptool's capability to test with multiple test files within one run as its usage hint suggests:

 Usage: ipptool [options] URI filename [ ... filenameN ] 
wifiprintguy commented 2 years ago

I'm glad you came around. 😊 The biggest issue is handling the dependency graph between DEFINEs used in a test and making sure earlier tests are also run. If they are spread across files that may make things awkward but might be fine if just done carefully.