From: Michał Górny Date: Mon, 3 Oct 2016 16:23:33 +0000 (+0200) Subject: dev-python/lit: Support running self-tests X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=fa8286669df39e087112adfb9837fb806945dc3f;p=gentoo.git dev-python/lit: Support running self-tests --- 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 +}