run-tests 437 B

12345678910111213
  1. #!/bin/sh
  2. : "${PYTHON:=python}"
  3. : "${ROOTDIR:=.}"
  4. : "${TESTPYTHONPATH:=$ROOTDIR/test-packages}"
  5. PYTHONPATH="${TESTPYTHONPATH}:${PYTHONPATH}"
  6. export PYTHONPATH
  7. [ -r version ] || ln -s ${ROOTDIR}/version ./
  8. [ -r setup.py ] || ln -s ${ROOTDIR}/setup.py ./
  9. "${PYTHON}" ./setup.py egg_info --egg-base "${TESTPYTHONPATH}"
  10. "${PYTHON}" -m coverage run --rcfile=$ROOTDIR/ci/coveragerc -m unittest discover -s qubesmgmt/tests -p '*.py' -v "$@"