2017-03-01 15:29:20 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
: "${PYTHON:=python}"
|
2017-04-14 13:26:45 +02:00
|
|
|
: "${ROOTDIR:=.}"
|
|
|
|
: "${TESTPYTHONPATH:=$ROOTDIR/test-packages}"
|
2017-03-01 15:29:20 +01:00
|
|
|
|
|
|
|
PYTHONPATH="${TESTPYTHONPATH}:${PYTHONPATH}"
|
|
|
|
export PYTHONPATH
|
|
|
|
|
2017-04-14 13:26:45 +02:00
|
|
|
[ -r version ] || ln -s ${ROOTDIR}/version ./
|
|
|
|
[ -r setup.py ] || ln -s ${ROOTDIR}/setup.py ./
|
|
|
|
"${PYTHON}" ./setup.py egg_info --egg-base "${TESTPYTHONPATH}"
|
|
|
|
"${PYTHON}" -m coverage run --rcfile=$ROOTDIR/ci/coveragerc -m unittest discover -s qubesmgmt/tests -p '*.py' -v "$@"
|