Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2023 16:22:44 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2ce2ca5b6143 - main - biology/locarna: Fix tests
Message-ID:  <202307171622.36HGMiDb046989@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2ce2ca5b614344cfd29081d6acb1e3d80211fb1f

commit 2ce2ca5b614344cfd29081d6acb1e3d80211fb1f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-17 15:09:11 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-17 16:22:42 +0000

    biology/locarna: Fix tests
---
 biology/locarna/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/biology/locarna/Makefile b/biology/locarna/Makefile
index 6c6c008b2384..4483c3792d59 100644
--- a/biology/locarna/Makefile
+++ b/biology/locarna/Makefile
@@ -14,15 +14,23 @@ BUILD_DEPENDS=	${LOCALBASE}/lib/libRNA.a:biology/viennarna
 LIB_DEPENDS=	libgmp.so:math/gmp \
 		libgsl.so:math/gsl \
 		libmpfr.so:math/mpfr
+TEST_DEPENDS=	bash:shells/bash \
+		catch>0:devel/catch
 
 USES=		autoreconf gmake libtool perl5 pkgconfig shebangfix
 USE_LDCONFIG=	yes
 
-SHEBANG_FILES=	src/Utils/locarna_mcc
+CXXFLAGS+=	-I${LOCALBASE}/include/catch2 # use external catch
+
+SHEBANG_FILES=	src/Utils/locarna_mcc \
+		src/Tests/test_programs
 
 GNU_CONFIGURE=	yes
 
 INSTALL_TARGET=	install-strip
-TEST_TARGET=	check # tests fail to compile, see https://github.com/s-will/LocARNA/issues/80
+TEST_TARGET=	check # one test fails, see https://github.com/s-will/LocARNA/issues/81
+
+post-extract: # unbundle catch, see https://github.com/s-will/LocARNA/issues/80
+	@${RM} ${WRKSRC}/src/Tests/catch.hpp
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307171622.36HGMiDb046989>