summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-10-03 18:23:33 +0200
committerMichał Górny <mgorny@gentoo.org>2016-10-03 18:37:42 +0200
commitfa8286669df39e087112adfb9837fb806945dc3f (patch)
tree9bf7e01bcddf4a5df92ad70ce7e52f042472be73 /dev-python/lit
parentprofile/package.mask: remove binary hashcat variants and dead gui for same (diff)
downloadgentoo-fa8286669df39e087112adfb9837fb806945dc3f.tar.gz
gentoo-fa8286669df39e087112adfb9837fb806945dc3f.tar.bz2
gentoo-fa8286669df39e087112adfb9837fb806945dc3f.zip
dev-python/lit: Support running self-tests
Diffstat (limited to 'dev-python/lit')
-rw-r--r--dev-python/lit/lit-9999.ebuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/dev-python/lit/lit-9999.ebuild b/dev-python/lit/lit-9999.ebuild
index 90492901184f..c98d8f20b11d 100644
--- a/dev-python/lit/lit-9999.ebuild
+++ b/dev-python/lit/lit-9999.ebuild
@@ -16,8 +16,18 @@ EGIT_REPO_URI="http://llvm.org/git/llvm.git
LICENSE="UoI-NCSA"
SLOT="0"
KEYWORDS=""
-IUSE=""
+IUSE="test"
S=${WORKDIR}/${P}/utils/lit
+# Tests require 'FileCheck' and 'not' utilities (from llvm)
+DEPEND="
+ test? (
+ dev-python/psutil[${PYTHON_USEDEP}]
+ sys-devel/llvm )"
+
# TODO: move the manpage generation here (from sys-devel/llvm)
+
+python_test() {
+ ./lit.py -sv tests || die
+}