Source

distutils2 / tests.sh

Full commit
#!/bin/sh
echo -n "Running tests for Python 2.4... "
rm -f distutils2/_backport/_hashlib.so
python2.4 setup.py build_ext -f -q 2> /dev/null > /dev/null
python2.4 -Wd runtests.py -q 2> /dev/null
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
    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
if [ $? -ne 0 ];then
    echo Failed
    exit 1
else
    echo Success
fi
echo "Good job, commit now! (or add tests)"