Add a test target.
This commit is contained in:
parent
be3218168d
commit
230617ea56
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2016/03/18 20:49:27 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2016/05/16 20:51:46 jca Exp $
|
||||
|
||||
COMMENT= JSON support for Lua
|
||||
|
||||
@ -15,7 +15,7 @@ MODULES= lang/lua
|
||||
|
||||
MASTER_SITES= http://www.kyne.com.au/~mark/software/download/
|
||||
|
||||
NO_TEST= Yes
|
||||
TEST_DEPENDS= ${FULLPKGNAME}:${BUILD_PKGPATH}
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/Makefile ${WRKSRC}/lua/*.lua
|
||||
@ -28,4 +28,8 @@ do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/lua/$s.lua ${PREFIX}/bin/$s.lua${MODLUA_VERSION}
|
||||
.endfor
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MODLUA_BIN} test.lua \
|
||||
> ${WRKDIR}/test2.log
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user