pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/lua-fifo



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Jul  8 16:29:43 UTC 2020

Modified Files:
        pkgsrc/devel/lua-fifo: Makefile

Log Message:
lua-fifo: Support for testing


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

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

Modified files:

Index: pkgsrc/devel/lua-fifo/Makefile
diff -u pkgsrc/devel/lua-fifo/Makefile:1.1 pkgsrc/devel/lua-fifo/Makefile:1.2
--- pkgsrc/devel/lua-fifo/Makefile:1.1  Thu Jul  2 14:52:49 2020
+++ pkgsrc/devel/lua-fifo/Makefile      Wed Jul  8 16:29:43 2020
@@ -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 @@ HOMEPAGE=     https://github.com/daurnimator
 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 @@ do-install:
        ${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