summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-09 17:23:51 +0100
committerSam James <sam@gentoo.org>2023-05-09 18:46:19 +0100
commitc9692b45bbc2a47f2b3b9767ff2f895a9ad0fa62 (patch)
tree1c663f87d172b01c71555011f65be8a6753296a6 /dev-util/cunit
parentmedia-sound/ncmpc: wire up tests (diff)
downloadgentoo-c9692b45bbc2a47f2b3b9767ff2f895a9ad0fa62.tar.gz
gentoo-c9692b45bbc2a47f2b3b9767ff2f895a9ad0fa62.tar.bz2
gentoo-c9692b45bbc2a47f2b3b9767ff2f895a9ad0fa62.zip
dev-util/cunit: wire up tests
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/cunit')
-rw-r--r--dev-util/cunit/cunit-2.1_p3-r1.ebuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/dev-util/cunit/cunit-2.1_p3-r1.ebuild b/dev-util/cunit/cunit-2.1_p3-r1.ebuild
index 5636bc17460a..ad8ebdb97407 100644
--- a/dev-util/cunit/cunit-2.1_p3-r1.ebuild
+++ b/dev-util/cunit/cunit-2.1_p3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -16,7 +16,8 @@ SRC_URI="mirror://sourceforge/cunit/${MY_P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE="ncurses static-libs"
+IUSE="ncurses static-libs test"
+RESTRICT="!test? ( test )"
RDEPEND="ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] )"
DEPEND="${RDEPEND}"
@@ -52,7 +53,15 @@ multilib_src_configure() {
econf \
$(use_enable static-libs static) \
--disable-debug \
- $(use_enable ncurses curses)
+ $(use_enable ncurses curses) \
+ $(use_enable test)
+}
+
+multilib_src_test() {
+ default
+
+ cd CUnit/Sources/Test || die
+ ./test_cunit || die
}
multilib_src_install_all() {