summaryrefslogtreecommitdiff
path: root/sysutils/lsof/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/lsof/Makefile')
-rw-r--r--sysutils/lsof/Makefile12
1 files changed, 11 insertions, 1 deletions
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"