pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/lua



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Mar  6 09:13:44 UTC 2022

Modified Files:
        pkgsrc/lang/lua: module.mk

Log Message:
lua/module.mk: Allow passing arguments to busted


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/lang/lua/module.mk

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

Modified files:

Index: pkgsrc/lang/lua/module.mk
diff -u pkgsrc/lang/lua/module.mk:1.13 pkgsrc/lang/lua/module.mk:1.14
--- pkgsrc/lang/lua/module.mk:1.13      Sat Feb 19 20:39:58 2022
+++ pkgsrc/lang/lua/module.mk   Sun Mar  6 09:13:44 2022
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.13 2022/02/19 20:39:58 nia Exp $
+# $NetBSD: module.mk,v 1.14 2022/03/06 09:13:44 nia Exp $
 #
 # This Makefile fragment is intended to be included by packages that
 # install Lua modules.
@@ -19,7 +19,10 @@
 #      Use busted to run tests and provide a do-test target.
 #
 #      Possible values: yes no
-#      Default: yes
+#      Default: no
+#
+# LUA_BUSTED_ARGS
+#      Arguments to pass to the busted command when LUA_USE_BUSTED.
 #
 # === Defined variables ===
 #
@@ -90,11 +93,15 @@ BUILDLINK_TRANSFORM+=       rm:-std=c89
 BUILDLINK_TRANSFORM+=  rm:-std=c90
 .endif
 
+LUA_USE_BUSTED?=       no
+
 .if !empty(LUA_USE_BUSTED:M[yY][eE][sS])
 TEST_DEPENDS+= ${LUA_PKGPREFIX}-busted-[0-9]*:../../devel/lua-busted
 
 do-test:
-       cd ${WRKSRC} && ${PREFIX}/bin/busted${_LUA_DOT_VERSION}
+       cd ${WRKSRC} && ${TEST_ENV} \
+           ${PREFIX}/bin/busted${_LUA_DOT_VERSION} \
+           ${LUA_BUSTED_ARGS}
 .endif # LUA_USE_BUSTED
 
 .endif # LUA_MODULE_MK



Home | Main Index | Thread Index | Old Index