diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-03-23 09:14:46 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-16 06:31:26 +0200 |
| commit | 38a03a5ffc74c55536cf6d86a94b9758a1db076f (patch) | |
| tree | 85aaf7f4608db0edefa2b50ffd7f4d7c56266db7 /validation | |
| parent | 1d56c2e9dc70bf46b0224078aec865b0355f51ba (diff) | |
| download | sparse-dev-38a03a5ffc74c55536cf6d86a94b9758a1db076f.tar.gz | |
testsuite: allow extra/default options to test commands
This allow, for example, to simulate running the testsuite on a 32bit
machine or running the testsuite with some extra debugging flags.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
| -rwxr-xr-x | validation/test-suite | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/validation/test-suite b/validation/test-suite index e1ab1e65..f79a9023 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -233,6 +233,7 @@ echo echo "options:" echo " -a|--abort Abort the tests as soon as one fails." echo " -q|--quiet Be extra quiet while running the tests." +echo " --args='...' Add these options to the test command." echo echo "commands:" echo " [file ...] Runs the test suite on the given file(s)." @@ -545,6 +546,9 @@ while [ "$#" -gt "0" ]; do -q|--quiet) vquiet=1 ;; + --args=*) + default_args="${1#--args=}"; + ;; single|--single) arg_file "$2" |
