Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/lua-basexx lua-basexx: Support for testing
details: https://anonhg.NetBSD.org/pkgsrc/rev/89c4c844a103
branches: trunk
changeset: 435527:89c4c844a103
user: nia <nia%pkgsrc.org@localhost>
date: Wed Jul 08 16:26:06 2020 +0000
description:
lua-basexx: Support for testing
diffstat:
devel/lua-basexx/Makefile | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r a9186d41d888 -r 89c4c844a103 devel/lua-basexx/Makefile
--- a/devel/lua-basexx/Makefile Wed Jul 08 16:25:50 2020 +0000
+++ b/devel/lua-basexx/Makefile Wed Jul 08 16:26:06 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2020/07/02 14:36:29 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/08 16:26:06 nia Exp $
DISTNAME= lua-basexx-0.4.1
-PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/lua-//1}
CATEGORIES= devel lua
MASTER_SITES= ${MASTER_SITE_GITHUB:=aiq/}
GITHUB_PROJECT= basexx
@@ -12,6 +12,8 @@
COMMENT= BaseXX encoding and decoding library for Lua
LICENSE= mit
+TEST_DEPENDS+= ${LUA_PKGPREFIX}-busted-[0-9]*:../../devel/lua-busted
+
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}
USE_LANGUAGES= # none
NO_BUILD= yes
@@ -22,5 +24,8 @@
${INSTALL_DATA} ${WRKSRC}/lib/basexx.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/basexx.lua
+do-test:
+ cd ${WRKSRC} && ${PREFIX}/bin/busted${_LUA_DOT_VERSION}
+
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index