commit: 634204bdc782faddce74f6131a1e99dbb457805d Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Wed Apr 20 17:30:39 2022 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Wed Apr 20 17:31:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=634204bd
app-emacs/projectile: enable tests Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> app-emacs/projectile/projectile-2.5.0.ebuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app-emacs/projectile/projectile-2.5.0.ebuild b/app-emacs/projectile/projectile-2.5.0.ebuild index 6a9e19ad606d..9ebbdf6b49f5 100644 --- a/app-emacs/projectile/projectile-2.5.0.ebuild +++ b/app-emacs/projectile/projectile-2.5.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -14,10 +14,18 @@ SRC_URI="https://github.com/bbatsov/projectile/archive/refs/tags/v${PV}.tar.gz - LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( app-emacs/buttercup )" SITEFILE="50projectile-gentoo.el" DOCS=( README.md ) -RESTRICT="test" # tests require buttercup which is not packaged + +src_test() { + mkdir -p "${HOME}"/.emacs.d || die # For "projectile--directory-p" test + buttercup -L . -L test --traceback full || die +} src_install() { elisp-make-autoload-file "${S}"/${PN}-autoload.el "${S}"/