2017-03-01 15:29:20 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-01-15 21:41:17 +01:00
|
|
|
: "${PYTHON:=python3}"
|
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}"
|
2017-05-11 23:21:04 +02:00
|
|
|
"${PYTHON}" -m coverage run --rcfile=$ROOTDIR/ci/coveragerc -m unittest discover -s qubesadmin/tests -p '*.py' -v "$@"
|