208: Made output of run-tests.bash a bit easier to read and also added python2.6 to versions tested

This commit is contained in:
Jason Gerard DeRose 2008-08-28 01:15:27 +00:00
parent 5da1d4bb86
commit a50f618548

View File

@ -1,17 +1,29 @@
#!/bin/bash #!/bin/bash
# Hackish script to run unit tests under both Python 2.4 and 2.5 # Script to run nosetests under multiple versions of Python
interpreters="python2.4 python2.5" versions="python2.4 python2.5 python2.6"
for name in $interpreters for name in $versions
do do
echo ""
executable="/usr/bin/$name" executable="/usr/bin/$name"
if [[ -f $executable ]] if [[ -f $executable ]]; then
then echo "[ $name: Starting tests... ]"
echo "[ $0: running unit tests under $name ]" if $executable /usr/bin/nosetests
$executable /usr/bin/nosetests then
echo "[ $name: Tests OK ]"
else
echo "[ $name: Tests FAILED ]"
((failures += 1))
fi
else else
echo "[ $0: $name not found ]" echo "[ $name: Not found ]"
fi fi
done done
if [ $failures ]; then
echo ""
echo "[ FAILED under $failures version(s) ]"
exit $failures
fi