Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-binaryheap lua-binaryheap: Support for testing



details:   https://anonhg.NetBSD.org/pkgsrc/rev/678be1aaeee7
branches:  trunk
changeset: 435528:678be1aaeee7
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 08 16:28:08 2020 +0000

description:
lua-binaryheap: Support for testing

diffstat:

 devel/lua-binaryheap/Makefile |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 89c4c844a103 -r 678be1aaeee7 devel/lua-binaryheap/Makefile
--- a/devel/lua-binaryheap/Makefile     Wed Jul 08 16:26:06 2020 +0000
+++ b/devel/lua-binaryheap/Makefile     Wed Jul 08 16:28:08 2020 +0000
@@ -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 @@
 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 @@
        ${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