#!/bin/bash python=${1-python} echo running $python osname=$($python -c 'import distutils.util as d; print d.get_platform()') version=$($python -c 'import sys; print "%s.%s" % sys.version_info[:2]') export PYTHONPATH="$(pwd):$(pwd)/build/lib.${osname}-${version}" echo $PYTHONPATH cd test $python test_base.py $python test_builtin.py cd .. if which py.test > /dev/null; then py.test test/test_misc.py py.test test/test_compactobject.py # py.test --exec ${python} test/test_compactobject.py else echo "can't find py.test, skipping" fi cd benchmark $python psycobench.py --unittest