run-tests 387 B

12345678910111213
  1. #!/bin/sh
  2. : "${PYTHON:=python3}"
  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 -m unittest discover -p '*.py' -v "$@"