3
# This runs the available unit-tests with all different supported
6
# To run this this must be 'cd'ed to the tests directory.
13
printf "Usage: %s: [-u]\n" $0
14
printf " -u: run test with unsupported python versions also\n"
17
function run_one_test()
20
PYTHON_EXECUTABLE=`echo $PYTHON | tr -d "-"`
21
echo "+++ Running tests with $PYTHON"
22
export LD_LIBRARY_PATH=./regression/installed/$PYTHON/lib
23
./regression/installed/$PYTHON/bin/$PYTHON_EXECUTABLE \
24
utests/run_all_tests.py
25
echo "--- Finished tests with $PYTHON"
28
function run_all_tests()
40
u) ENABLE_UNSUPPORTED=1;;
45
# Build the different python versions
46
(cd regression && make -j4 runtime-environment)
48
# Supported: when an unit test fails this should be seen as an error
49
PYTHON_SUPPORTED="python-2.4 python-2.5 python-2.6"
50
# Unsupported: failure should be seen as a hint
51
PYTHON_UNSUPPORTED="python-3.1"
53
export PYTHONPATH=`echo $PWD/../python/build/lib.*`:$PWD
56
run_all_tests $PYTHON_SUPPORTED
58
if test $ENABLE_UNSUPPORTED -eq 1
60
run_all_tests $PYTHON_UNSUPPORTED