Skip to content

Commit

Permalink
distutils-r1.eclass: distutils_enable_tests, add 'setup.py' option
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Nov 20, 2019
1 parent 2d49e83 commit b2072f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eclass/distutils-r1.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ fi
#
# - nose: nosetests (dev-python/nose)
# - pytest: dev-python/pytest
# - setup.py: setup.py test (no deps included)
# - unittest: for built-in Python unittest module
#
# This function is meant as a helper for common use cases, and it only
Expand Down Expand Up @@ -268,6 +269,11 @@ distutils_enable_tests() {
pytest -vv || die "Tests fail with ${EPYTHON}"
}
;;
setup.py)
python_test() {
esetup.py test --verbose
}
;;
unittest)
python_test() {
"${EPYTHON}" -m unittest discover -v ||
Expand Down

0 comments on commit b2072f6

Please sign in to comment.