dev-python/hiredis: Add python_test()
authorSven Wegener <swegener@gentoo.org>
Wed, 1 Apr 2020 21:33:44 +0000 (23:33 +0200)
committerSven Wegener <swegener@gentoo.org>
Wed, 1 Apr 2020 21:35:43 +0000 (23:35 +0200)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Sven Wegener <swegener@gentoo.org>
dev-python/hiredis/hiredis-1.0.1.ebuild

index bc7739eaeec7adc9c5a3a293ab03d17e7a83ae97..1e14c85fa3987f265513e088b895e136b1e16863 100644 (file)
@@ -22,3 +22,8 @@ PATCHES=(
        "${FILESDIR}"/${P}-system-libs.patch
        "${FILESDIR}"/${P}-api-0.14.patch
 )
+
+python_test() {
+       cd test
+       "${EPYTHON}" -m unittest reader.ReaderTest || die "tests failed"
+}