diff options
author | nia <nia@pkgsrc.org> | 2020-07-08 16:40:55 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-07-08 16:40:55 +0000 |
commit | e51d45ca49e2ca3ef1b0967df3294516b3a25037 (patch) | |
tree | 0568ac8d70606453f75a0bb1003b509c2824989a /time | |
parent | d8a66fb98ad774b0f9854c0cd084642243543eaa (diff) | |
download | pkgsrc-e51d45ca49e2ca3ef1b0967df3294516b3a25037.tar.gz |
lua-tz: Support for testing
Diffstat (limited to 'time')
-rw-r--r-- | time/lua-tz/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/time/lua-tz/Makefile b/time/lua-tz/Makefile index 0af6f83d92d..827fdfbad77 100644 --- a/time/lua-tz/Makefile +++ b/time/lua-tz/Makefile @@ -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/luatz/ 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" |