pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/lua-binaryheap
Module Name: pkgsrc
Committed By: nia
Date: Wed Jul 8 16:28:08 UTC 2020
Modified Files:
pkgsrc/devel/lua-binaryheap: Makefile
Log Message:
lua-binaryheap: Support for testing
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/lua-binaryheap/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/lua-binaryheap/Makefile
diff -u pkgsrc/devel/lua-binaryheap/Makefile:1.1 pkgsrc/devel/lua-binaryheap/Makefile:1.2
--- pkgsrc/devel/lua-binaryheap/Makefile:1.1 Thu Jul 2 14:52:33 2020
+++ pkgsrc/devel/lua-binaryheap/Makefile Wed Jul 8 16:28:08 2020
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2020/07/02 14:52:33 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/08 16:28:08 nia Exp $
DISTNAME= lua-binaryheap-0.4
-PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/lua-//1}
CATEGORIES= devel lua
MASTER_SITES= ${MASTER_SITE_GITHUB:=Tieske/}
GITHUB_PROJECT= binaryheap.lua
@@ -12,6 +12,8 @@ HOMEPAGE= https://tieske.github.io/binar
COMMENT= Binary heap implementation in Lua
LICENSE= mit
+TEST_DEPENDS+= ${LUA_PKGPREFIX}-busted-[0-9]*:../../devel/lua-busted
+
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
USE_LANGUAGES= # none
NO_BUILD= yes
@@ -22,5 +24,8 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/src/binaryheap.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/binaryheap.lua
+do-test:
+ cd ${WRKSRC} && ${PREFIX}/bin/busted${_LUA_DOT_VERSION} --no-coverage
+
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index