Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2019 21:45:56 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r517987 - head/devel/tig
Message-ID:  <201911192145.xAJLjucj014980@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Nov 19 21:45:56 2019
New Revision: 517987
URL: https://svnweb.freebsd.org/changeset/ports/517987

Log:
  devel/tig: Hook up tests

Modified:
  head/devel/tig/Makefile

Modified: head/devel/tig/Makefile
==============================================================================
--- head/devel/tig/Makefile	Tue Nov 19 21:44:19 2019	(r517986)
+++ head/devel/tig/Makefile	Tue Nov 19 21:45:56 2019	(r517987)
@@ -12,6 +12,8 @@ COMMENT=	Text-mode interface for git
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+TEST_DEPENDS=	git:devel/git
+
 USES=		iconv gmake ncurses readline:port
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	${ICONV_CONFIGURE_BASE}
@@ -34,5 +36,11 @@ GIT_VARS_OFF=	PKGMESSAGE="${.CURDIR}/pkg-message-git"
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tig
+
+do-test:
+# Tests fail when running as part of a non-interactive Poudriere
+# build, but using script(1) seems to be a good enough workaround and
+# allows them to run successfully anyway.
+	@/usr/bin/script -q /dev/null ${GMAKE} -C ${WRKSRC} test
 
 .include <bsd.port.mk>



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