summaryrefslogtreecommitdiff
path: root/test/run.sh
blob: 529956fda0ece8a104b33fa99121df3cd22438d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e;

# ensure we can use unicode filenames in the test
export LC_ALL=en_US.UTF-8
THISDIR=`dirname $0`
export PYTHONPATH=${THISDIR}/..

PYTHONS="python2.7 python3.5 bad"

for pyver in $PYTHONS; do
    if which $pyver > /dev/null; then
        $pyver ${THISDIR}/test.py
    else
        echo "version $pyver not found"

    fi
done