Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Split test filter into --testwith and --testwithout #28
Instead of having users specify a "!test" syntax to exclude tests, let's try something like --testwith and --testwithout (or whatever sounds good). The switches should be mutually exclusive, meaning you can tell rpminspect to exclude 1 or more tests and run the remaining tests, or you explicitly say which tests you want run.
The purpose of this change is to avoid the !testname syntax to exclude a test from an rpminspect run. By default, all tests that apply will run. There are now the -T and -E options:
If you specify -T, then all tests are disabled by default and only the tests you specify on this option are enabled. You can pass "-T ALL" to enable all tests, but that is the default behavior.
If you specify -E, then all tests are enabled by default and only the tests you specify on this option are disabled. You can pass "-E ALL" to disable all tests, but that is sort of pointless because rpminspect ends
The options cannot be used together. The man page and README have been updated.