summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-07-08 16:36:04 +0000
committernia <nia@pkgsrc.org>2020-07-08 16:36:04 +0000
commitd8a66fb98ad774b0f9854c0cd084642243543eaa (patch)
treea5e267124e2ebdaecc616acb77438cfbfd85c393 /time
parent9f953fec43ec9751c64402d244bbeef826a1c10e (diff)
downloadpkgsrc-d8a66fb98ad774b0f9854c0cd084642243543eaa.tar.gz
lua-date: Support for testing
Diffstat (limited to 'time')
-rw-r--r--time/lua-date/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/time/lua-date/Makefile b/time/lua-date/Makefile
index 622aed5bebd..25043400500 100644
--- a/time/lua-date/Makefile
+++ b/time/lua-date/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/08 11:03:57 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/08 16:36:04 nia Exp $
DISTNAME= lua-date-2.1.2
PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
@@ -12,6 +12,8 @@ HOMEPAGE= https://tieske.github.io/date/
COMMENT= Date and Time module for Lua 5.x
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}/date.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/date.lua
+do-test:
+ cd ${WRKSRC} && ${PREFIX}/bin/busted${_LUA_DOT_VERSION}
+
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"