From c9692b45bbc2a47f2b3b9767ff2f895a9ad0fa62 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 9 May 2023 17:23:51 +0100 Subject: dev-util/cunit: wire up tests Signed-off-by: Sam James --- dev-util/cunit/cunit-2.1_p3-r1.ebuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'dev-util/cunit') 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() { -- cgit v1.2.3-65-gdbad