From: Michał Górny Date: Wed, 17 May 2017 12:13:48 +0000 (+0200) Subject: dev-python/pyalsaaudio: Include code for running tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=21c069e73fc558f53dabed7a2faef2aaa2909c39;p=gentoo.git dev-python/pyalsaaudio: Include code for running tests --- diff --git a/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild b/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild index 74e394c49f63..5470b7f46c42 100644 --- a/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild +++ b/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild @@ -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 )