2014-12-10 06:36:27 +01:00
|
|
|
#!/bin/bash
|
|
|
|
. tests/bot-ci/scripts/common/main.sh
|
|
|
|
|
2015-02-20 23:51:58 +01:00
|
|
|
: ${USER:=`id -un`}
|
|
|
|
: ${HOME:=`getent passwd $USER | cut -d: -f6`}
|
|
|
|
|
|
|
|
export USER HOME
|
|
|
|
|
2013-03-09 13:16:00 +01:00
|
|
|
FAILED=0
|
2014-12-10 06:36:27 +01:00
|
|
|
|
2015-02-21 00:00:13 +01:00
|
|
|
if test "$TRAVIS" = true ; then
|
|
|
|
export PATH="/opt/fish/bin:${PATH}"
|
2015-01-02 11:40:04 +01:00
|
|
|
|
2015-02-21 00:00:13 +01:00
|
|
|
if test "$PYTHON_IMPLEMENTATION" = "CPython" ; then
|
|
|
|
export PATH="/opt/zsh-${PYTHON_MM}${USE_UCS2_PYTHON:+-ucs2}/bin:${PATH}"
|
|
|
|
fi
|
2015-01-02 01:43:57 +01:00
|
|
|
|
2015-02-21 00:00:13 +01:00
|
|
|
if test -n "$USE_UCS2_PYTHON" ; then
|
|
|
|
export LD_LIBRARY_PATH="/opt/cpython-ucs2-$UCS2_PYTHON_VARIANT/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
|
|
|
set +e
|
|
|
|
. virtualenvwrapper.sh
|
|
|
|
workon cpython-ucs2-$UCS2_PYTHON_VARIANT
|
|
|
|
set -e
|
|
|
|
fi
|
2014-12-10 06:36:27 +01:00
|
|
|
fi
|
|
|
|
|
2014-08-29 20:22:39 +02:00
|
|
|
export PYTHON="${PYTHON:=python}"
|
2015-01-02 22:04:11 +01:00
|
|
|
export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}`realpath .`"
|
2014-08-29 20:22:39 +02:00
|
|
|
for script in tests/run_*_tests.sh ; do
|
|
|
|
if ! sh $script ; then
|
|
|
|
echo "Failed $script"
|
2013-03-09 13:16:00 +01:00
|
|
|
FAILED=1
|
|
|
|
fi
|
2013-03-17 10:55:31 +01:00
|
|
|
done
|
2013-03-09 13:16:00 +01:00
|
|
|
exit $FAILED
|