run-tests: Allow to run tests selectively via command line.

This commit is contained in:
Paul Sokolovsky 2014-01-21 04:58:34 +02:00
parent 4c316552c1
commit 7280f79088

View File

@ -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