- fixup regress dependds

- simplify do-regress
This commit is contained in:
jasper 2012-08-12 17:26:16 +00:00
parent 7678df490b
commit 81b25b55e4

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.11 2012/07/10 15:22:44 jasper Exp $ # $OpenBSD: Makefile,v 1.12 2012/08/12 17:26:16 jasper Exp $
COMMENT = lua binding of libevent COMMENT = lua binding of libevent
SHARED_ONLY = Yes SHARED_ONLY = Yes
@ -25,6 +25,8 @@ MODULES = lang/lua
MODLUA_REGRESS_DEPENDS += devel/luaevent MODLUA_REGRESS_DEPENDS += devel/luaevent
MODLUA_RUN_DEPENDS += net/luasocket MODLUA_RUN_DEPENDS += net/luasocket
REGRESS_FILES = basic event_buffer-tests timertest
CFLAGS += -I${MODLUA_INCL_DIR} -I../include CFLAGS += -I${MODLUA_INCL_DIR} -I../include
LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
@ -33,9 +35,9 @@ do-build:
event_buffer.c event_callback.c utility.c ${MODLUA_LIB} -levent event_buffer.c event_callback.c utility.c ${MODLUA_LIB} -levent
do-regress: do-regress:
cd ${WRKDIST}/test && ${MODLUA_BIN} basic.lua .for r in ${REGRESS_FILES}
cd ${WRKDIST}/test && ${MODLUA_BIN} event_buffer-tests.lua cd ${WRKDIST}/test && ${MODLUA_BIN} $r.lua
cd ${WRKDIST}/test && ${MODLUA_BIN} timertest.lua .endfor
do-install: do-install:
${INSTALL_DATA_DIR} ${MODLUA_DATADIR} ${INSTALL_DATA_DIR} ${MODLUA_DATADIR}