summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-04-20 19:30:39 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-04-20 19:31:49 +0200
commit634204bdc782faddce74f6131a1e99dbb457805d (patch)
tree3ef526dc509b2ddb5e87d67d7c9c8f3e00699df9 /app-emacs
parentgnome-extra/gnome-shell-extension-dash-to-panel: add 47 (diff)
downloadgentoo-634204bdc782faddce74f6131a1e99dbb457805d.tar.gz
gentoo-634204bdc782faddce74f6131a1e99dbb457805d.tar.bz2
gentoo-634204bdc782faddce74f6131a1e99dbb457805d.zip
app-emacs/projectile: enable tests
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/projectile/projectile-2.5.0.ebuild12
1 files 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}"/