#!/bin/bash
set -e
OS=${1:-macosx}

for PYTHON in \
    python2.4 \
    python2.5 \
    python2.6 \
    python3.1
do
    if which $PYTHON >/dev/null
    then
        ${PYTHON} setup_makefile.py ${OS} tmp.mak
        make -f tmp.mak clean
        make -f tmp.mak test
    fi
done
