dev-python/pytest-cache: Add tests
authorJustin Lecher <jlec@gentoo.org>
Mon, 9 Nov 2015 08:35:26 +0000 (09:35 +0100)
committerJustin Lecher <jlec@gentoo.org>
Mon, 9 Nov 2015 11:49:41 +0000 (12:49 +0100)
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/pytest-cache/pytest-cache-1.0.ebuild

index d63baad1180929615d92169749fc09c61582e95b..2ac38abff73a90f8cbb8cbdbb13fb5a35c7e253c 100644 (file)
@@ -15,9 +15,17 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 SLOT="0"
 LICENSE="MIT"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
+IUSE="test"
 
 RDEPEND=""
 DEPEND="${RDEPEND}
        dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( dev-python/pytest[${PYTHON_USEDEP}] )
        "
+
+# https://bitbucket.org/hpk42/pytest-cache/issues/12
+RESTRICT=test
+
+python_test() {
+       PYTEST_PLUGINS="pytest_cache" py.test -v -v || die
+}