From 7280f790881fa174e4d234266ff42f0fe3d847bc Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 21 Jan 2014 04:58:34 +0200 Subject: [PATCH] run-tests: Allow to run tests selectively via command line. --- tests/run-tests | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/run-tests b/tests/run-tests index ef1368725..752138ccc 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -10,7 +10,14 @@ numpassed=0 numfailed=0 namefailed= -for infile in basics/*.py io/*.py +if [ $# -eq 0 ] +then + tests="basics/*.py io/*.py" +else + tests="$@" +fi + +for infile in $tests do basename=`basename $infile .py` outfile=${basename}.out