pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

catch: Add test target



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Feb 24 03:48:33 2016 +0100
Changeset:	d5363f97fb3963684420e15ccbf6ca55df49c83d

Modified Files:
	catch/Makefile

Log Message:
catch: Add test target

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d5363f97fb3963684420e15ccbf6ca55df49c83d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 catch/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diffs:
diff --git a/catch/Makefile b/catch/Makefile
index b6f943e..dcab14f 100644
--- a/catch/Makefile
+++ b/catch/Makefile
@@ -13,6 +13,10 @@ LICENSE=	boost-license
 
 WRKSRC=		${WRKDIR}/${DISTNAME}
 
+USE_TOOLS+=	gmake
+
+USE_LANGUAGES=	c c++
+
 NO_BUILD=	yes
 
 AUTO_MKDIRS=	yes
@@ -21,4 +25,8 @@ do-install:
 	${RUN} ${INSTALL_DATA} ${WRKSRC}/single_include/catch.hpp \
 		${DESTDIR}${PREFIX}/include
 
+do-test:
+	${RUN} cd ${WRKSRC}/projects/SelfTest && \
+		${GMAKE} -f makefile && ./CatchSelfTest
+
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index