pkgsrc-Changes archive

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

CVS commit: pkgsrc/time/lua-tz



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Jul  8 16:40:55 UTC 2020

Modified Files:
        pkgsrc/time/lua-tz: Makefile

Log Message:
lua-tz: Support for testing


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/time/lua-tz/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/time/lua-tz/Makefile
diff -u pkgsrc/time/lua-tz/Makefile:1.1 pkgsrc/time/lua-tz/Makefile:1.2
--- pkgsrc/time/lua-tz/Makefile:1.1     Wed Jul  8 11:13:40 2020
+++ pkgsrc/time/lua-tz/Makefile Wed Jul  8 16:40:55 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/08 11:13:40 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/08 16:40:55 nia Exp $
 
 DISTNAME=      lua-tz-0.4.1
 PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
@@ -12,6 +12,8 @@ HOMEPAGE=     https://daurnimator.github.io/
 COMMENT=       Lua library for time and date manipulation
 LICENSE=       mit
 
+TEST_DEPENDS+= ${LUA_PKGPREFIX}-busted-[0-9]*:../../devel/lua-busted
+
 WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG:S/^v//1}
 USE_LANGUAGES= # none
 NO_BUILD=      yes
@@ -22,5 +24,8 @@ do-install:
        ${INSTALL_DATA} ${WRKSRC}/luatz/* \
                ${DESTDIR}${PREFIX}/${LUA_LDIR}/luatz
 
+do-test:
+       cd ${WRKSRC} && TZ=GMT ${PREFIX}/bin/busted${_LUA_DOT_VERSION}
+
 .include "../../lang/lua/module.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index