Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/lua-lustache lua-lustache: Support for testing
details: https://anonhg.NetBSD.org/pkgsrc/rev/2ec6aaaad3d3
branches: trunk
changeset: 435530:2ec6aaaad3d3
user: nia <nia%pkgsrc.org@localhost>
date: Wed Jul 08 16:33:31 2020 +0000
description:
lua-lustache: Support for testing
diffstat:
textproc/lua-lustache/Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r afea7dd4706a -r 2ec6aaaad3d3 textproc/lua-lustache/Makefile
--- a/textproc/lua-lustache/Makefile Wed Jul 08 16:29:43 2020 +0000
+++ b/textproc/lua-lustache/Makefile Wed Jul 08 16:33:31 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2020/07/02 10:26:19 nia Exp $
+# $NetBSD: Makefile,v 1.5 2020/07/08 16:33:31 nia Exp $
DISTNAME= lustache-1.3.1
PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME}
@@ -12,6 +12,8 @@
COMMENT= Logic-less mustache templates with Lua
LICENSE= mit
+TEST_DEPENDS+= ${LUA_PKGPREFIX}-busted-[0-9]*:../../devel/lua-busted
+
USE_LANGUAGES= # none
NO_BUILD= yes
@@ -22,5 +24,8 @@
${INSTALL_DATA} ${WRKSRC}/src/*.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}
${INSTALL_DATA} ${WRKSRC}/src/lustache/*.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/lustache
+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