From 21c069e73fc558f53dabed7a2faef2aaa2909c39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 17 May 2017 14:13:48 +0200 Subject: [PATCH] dev-python/pyalsaaudio: Include code for running tests --- dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) -- 2.26.2