summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-21 04:58:34 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-21 05:02:58 +0200
commit7280f790881fa174e4d234266ff42f0fe3d847bc (patch)
tree1886155190f5d9d3a376e67735dd7c4144335eae
parent4c316552c16fa2bcb77e007d330dc32beaf6e652 (diff)
downloadmicropython-7280f790881fa174e4d234266ff42f0fe3d847bc.tar.gz
micropython-7280f790881fa174e4d234266ff42f0fe3d847bc.zip
run-tests: Allow to run tests selectively via command line.
-rwxr-xr-xtests/run-tests9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/run-tests b/tests/run-tests
index ef1368725f..752138ccc6 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