diff options
author | ?ric Araujo <merwok@netwok.org> | 2011-09-21 16:35:33 +0200 |
---|---|---|
committer | ?ric Araujo <merwok@netwok.org> | 2011-09-21 16:35:33 +0200 |
commit | 712e667108a32aa8ef89993dfdf5f0e2cc4a9e30 (patch) | |
tree | 296c7f2e261da7dcc60b348c21a637efd1ba3619 /tests.sh | |
parent | 95eee035e628b927671bc3b686d951e12caca5df (diff) | |
download | disutils2-712e667108a32aa8ef89993dfdf5f0e2cc4a9e30.tar.gz |
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)
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 68 |
1 files changed, 17 insertions, 51 deletions
@@ -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 - exit 1 -else - echo Success -fi - -echo -n "Running tests for Python 2.5... " -python2.5 -Wd runtests.py -q 2> /dev/null -if [ $? -ne 0 ];then - echo Failed - exit 1 -else - echo Success -fi - -echo -n "Running tests for Python 2.6... " -python2.6 -Wd runtests.py -q 2> /dev/null -if [ $? -ne 0 ];then - echo Failed + echo Failed, re-running + python2.4 -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.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 -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 - +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 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 - +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 -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 + echo "Good job, commit now! (or add tests)" fi -echo "Good job, commit now! (or add tests)" |