distutils2: Improve tests.sh.

http://hg.python.org/distutils2/rev/fce523641deb changeset: 1186:fce523641deb user: Éric Araujo <merwok@netwok.org> date: Wed Sep 21 16:35:33 2011 +0200 summary: Improve tests.sh. - When a run fails, re-run without quiet mode (wow automation it’s incredible) - 3.x versions are not tested, as this branch of d2 is only for 2.x (I’ll push a branch for 3.1-3.2 later) files: tests.sh | 68 +++++++++++--------------------------------- 1 files changed, 17 insertions(+), 51 deletions(-) diff --git a/tests.sh b/tests.sh --- a/tests.sh +++ b/tests.sh @@ -1,82 +1,48 @@ #!/bin/sh -echo -n "Running tests for Python 2.4... " -rm -f distutils2/_backport/_hashlib.so +echo -n "Running tests with Python 2.4... " python2.4 setup.py build_ext -f -q 2> /dev/null > /dev/null -python2.4 -Wd runtests.py -q 2> /dev/null +python2.4 -Wd runtests.py -q if [ $? -ne 0 ];then - echo Failed - rm -f distutils2/_backport/_hashlib.so + echo Failed, re-running + python2.4 -Wd runtests.py exit 1 else echo Success fi -echo -n "Running tests for Python 2.5... " -python2.5 -Wd runtests.py -q 2> /dev/null +echo -n "Running tests with Python 2.5... " +python2.5 -Wd runtests.py -q if [ $? -ne 0 ];then - echo Failed + echo Failed, re-running + python2.5 -Wd runtests.py exit 1 else echo Success fi -echo -n "Running tests for Python 2.6... " -python2.6 -Wd runtests.py -q 2> /dev/null +echo -n "Running tests with Python 2.6... " +python2.6 -Wd runtests.py -q if [ $? -ne 0 ];then - echo Failed + echo Failed, re-running + python2.6 -Wd runtests.py exit 1 else echo Success fi -echo -n "Running tests for Python 2.7... " -python2.7 -Wd -bb -3 runtests.py -q 2> /dev/null +echo -n "Running tests with Python 2.7... " +python2.7 -Wd -bb -3 runtests.py -q if [ $? -ne 0 ];then - echo Failed + echo Failed, re-running + python2.7 -Wd -bb -3 runtests.py exit 1 else echo Success fi -LIB=$( python3.1 -c "from distutils.util import get_platform; import sys; print('lib.%s-%s' % (get_platform(), sys.version[0:3]))" ) - - -echo -n "Running tests for Python 3.1... " -python3.1 setup.py build -q 2> /dev/null > /dev/null -cp runtests.py build/ -cd build -PYTHONPATH=${LIB} python3.1 runtests.py -q 2> /dev/null - if [ $? -ne 0 ];then echo Failed exit 1 else - echo Success + echo "Good job, commit now! (or add tests)" fi - -echo -n "Running tests for Python 3.2... " -python3.2 setup.py build -q 2> /dev/null > /dev/null -cp runtests.py build/ -cd build -PYTHONPATH=${LIB} python3.2 runtests.py -q 2> /dev/null - -if [ $? -ne 0 ];then - echo Failed - exit 1 -else - echo Success -fi - -echo -n "Running tests for Python 3.3... " -python3.2 setup.py build -q 2> /dev/null > /dev/null -cp runtests.py build/ -cd build -PYTHONPATH=${LIB} python3.3 runtests.py -q 2> /dev/null - -if [ $? -ne 0 ];then - echo Failed - exit 1 -else - echo Success -fi -echo "Good job, commit now! (or add tests)" -- Repository URL: http://hg.python.org/distutils2
participants (1)
-
eric.araujo