Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/lua-fifo lua-fifo: Support for testing
details: https://anonhg.NetBSD.org/pkgsrc/rev/afea7dd4706a
branches: trunk
changeset: 435529:afea7dd4706a
user: nia <nia%pkgsrc.org@localhost>
date: Wed Jul 08 16:29:43 2020 +0000
description:
lua-fifo: Support for testing
diffstat:
devel/lua-fifo/Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 678be1aaeee7 -r afea7dd4706a devel/lua-fifo/Makefile
--- a/devel/lua-fifo/Makefile Wed Jul 08 16:28:08 2020 +0000
+++ b/devel/lua-fifo/Makefile Wed Jul 08 16:29:43 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/02 14:52:49 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/08 16:29:43 nia Exp $
DISTNAME= lua-fifo-0.2
PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
@@ -11,6 +11,8 @@
COMMENT= FIFO library for Lua
LICENSE= mit
+TEST_DEPENDS+= ${LUA_PKGPREFIX}-busted-[0-9]*:../../devel/lua-busted
+
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}
USE_LANGUAGES= # none
NO_BUILD= yes
@@ -21,5 +23,8 @@
${INSTALL_DATA} ${WRKSRC}/fifo.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/fifo.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