Open
Conversation
Instead of relying on num_tests which implicitly hold the same count as the number of extra arguments, use the built in counter in argp which counts just that. It will increment for each ARGP_KEY_ARG.
Contributor
Author
|
Changed to a much simpler solution after discussion. Let "--run" take no indices to run all test cases. |
Instead of throwing a "not enough arguments" error, run all the test cases if no indexes are supplied when using --run. This way it simpler to e.g. attach a debugger to a specific binary without using testrunner. Usable in environments where gdb-server is not available.
02aebb3 to
9afb6b5
Compare
Thus user may run "-dr" to do a debug run where all test cases are run and output is not redirected, but visible to user. Add a no-redirect name "<INLINE>" to display when output is not redirected to file.
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.
Currently the user has to specify a list of test cases to run in the
test module. In some scenarios it would be benefitial to run all
test cases, e.g. when debugging testcases in an environment where
gdbserver is not available.
Add option "--run-all" to enable this.
For this to work properly we first have to remove the implicit relationship between the
"parsed_args->num_tests" and the check for lack of arguments for "--run". Do this
by utilizing the built in counter state->arg_num in argp.