Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/lua-date lua-date: Support for testing



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e9856a520a98
branches:  trunk
changeset: 435531:e9856a520a98
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 08 16:36:04 2020 +0000

description:
lua-date: Support for testing

diffstat:

 time/lua-date/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 2ec6aaaad3d3 -r e9856a520a98 time/lua-date/Makefile
--- a/time/lua-date/Makefile    Wed Jul 08 16:33:31 2020 +0000
+++ b/time/lua-date/Makefile    Wed Jul 08 16:36:04 2020 +0000
@@ -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 @@
 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 @@
        ${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"



Home | Main Index | Thread Index | Old Index