dev-python/pyalsaaudio: Include code for running tests

This commit is contained in:
Michał Górny
2017-05-17 14:13:48 +02:00
parent abc4d07f73
commit 21c069e73f

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -31,6 +31,10 @@ python_compile() {
distutils-r1_python_compile
}
python_test() {
"${PYTHON}" test.py -v || die "Tests fail with ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( doc/html/. )
local EXAMPLES=( *test.py )