2017-05-20 13:05:54 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
: "${PYTHON:=python3}"
|
|
|
|
: "${ROOTDIR:=.}"
|
|
|
|
: "${TESTPYTHONPATH:=$ROOTDIR/test-packages}"
|
|
|
|
|
|
|
|
PYTHONPATH="${TESTPYTHONPATH}:${PYTHONPATH}"
|
|
|
|
export PYTHONPATH
|
|
|
|
|
|
|
|
[ -r version ] || ln -s ${ROOTDIR}/version ./
|
|
|
|
[ -r setup.py ] || ln -s ${ROOTDIR}/setup.py ./
|
|
|
|
"${PYTHON}" ./setup.py egg_info --egg-base "${TESTPYTHONPATH}"
|
2018-03-06 00:05:55 +01:00
|
|
|
"${PYTHON}" -m coverage run -m unittest discover -p 'test_*.py' -v "$@"
|