summaryrefslogtreecommitdiff
path: root/sysutils/lsof
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2010-04-30 07:27:16 +0000
committersbd <sbd@pkgsrc.org>2010-04-30 07:27:16 +0000
commit3f18759107c40ceb2eaa98b9a702b4731e4c6f8c (patch)
tree72034272cce23a7ef8a6caa37d629ba2cd88dd05 /sysutils/lsof
parent896cb72512a7ab541e30124fe74b1b761d996c40 (diff)
downloadpkgsrc-3f18759107c40ceb2eaa98b9a702b4731e4c6f8c.tar.gz
Enable the tests, and add an "opt" targent so "make opt" can be used to run
the optional tests.
Diffstat (limited to 'sysutils/lsof')
-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"