From 3f18759107c40ceb2eaa98b9a702b4731e4c6f8c Mon Sep 17 00:00:00 2001 From: sbd Date: Fri, 30 Apr 2010 07:27:16 +0000 Subject: Enable the tests, and add an "opt" targent so "make opt" can be used to run the optional tests. --- sysutils/lsof/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sysutils/lsof') diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile index 83dbf00efff..a2c8eba1c41 100644 --- a/sysutils/lsof/Makefile +++ b/sysutils/lsof/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.104 2010/04/30 06:53:06 sbd Exp $ +# $NetBSD: Makefile,v 1.105 2010/04/30 07:27:16 sbd Exp $ DISTNAME= lsof_4.78 PKGNAME= ${DISTNAME:S/_/-/}.${OS_VERSION} @@ -38,6 +38,10 @@ USE_TOOLS+= gtar pax perl:run PKG_INSTALLATION_TYPES= overwrite pkgviews +TEST_DIRS= tests +TEST_TARGET= test +INTERACTIVE_STAGE+= test + .include "../../mk/bsd.prefs.mk" .include "options.mk" @@ -76,4 +80,10 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${DESTDIR}${PREFIX}/share/lsof @${CHMOD} 0444 ${DESTDIR}${PREFIX}/share/lsof/00* +opt: +.for _dir_ in ${TEST_DIRS} + ${RUN}${_ULIMIT_CMD} \ + cd ${WRKSRC} && cd ${_dir_} && \ + ${TEST_MAKE_CMD} opt +.endfor .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3