pkgsrc-WIP-changes archive

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

nim: Add test target



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Sep 18 02:18:11 2016 +0200
Changeset:	27e953aedfb756edee32305799fa3b2ce2c2588e

Modified Files:
	nim/Makefile

Log Message:
nim: 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=27e953aedfb756edee32305799fa3b2ce2c2588e

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

diffstat:
 nim/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diffs:
diff --git a/nim/Makefile b/nim/Makefile
index fe1bb27..53ecfa5 100644
--- a/nim/Makefile
+++ b/nim/Makefile
@@ -21,4 +21,8 @@ do-install:
 	cd ${WRKSRC} && sh ./install.sh ${DESTDIR}${PREFIX}
 	${INSTALL_SCRIPT} ${WRKSRC}/nim-wrapper.sh ${DESTDIR}${PREFIX}/bin/nim
 
+do-test:
+	cd ${WRKSRC} && ./bin/nim compile koch.nim
+	cd ${WRKSRC} && LD_LIBRARY_PATH=$PREFIX/lib ./koch tests
+
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index