Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/lua-tz lua-tz: Support for testing
details: https://anonhg.NetBSD.org/pkgsrc/rev/08c72b86c813
branches: trunk
changeset: 435532:08c72b86c813
user: nia <nia%pkgsrc.org@localhost>
date: Wed Jul 08 16:40:55 2020 +0000
description:
lua-tz: Support for testing
diffstat:
time/lua-tz/Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r e9856a520a98 -r 08c72b86c813 time/lua-tz/Makefile
--- a/time/lua-tz/Makefile Wed Jul 08 16:36:04 2020 +0000
+++ b/time/lua-tz/Makefile Wed Jul 08 16:40:55 2020 +0000
@@ -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 @@
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 @@
${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