diff options
author | sbd <sbd> | 2010-04-30 07:27:16 +0000 |
---|---|---|
committer | sbd <sbd> | 2010-04-30 07:27:16 +0000 |
commit | 1bf08d05f92c5d000880029fac45a3bea76ee88d (patch) | |
tree | 72034272cce23a7ef8a6caa37d629ba2cd88dd05 /sysutils/lsof/Makefile | |
parent | a4f383394556a50605e2e5e0b5d1fd18712d5aa7 (diff) | |
download | pkgsrc-1bf08d05f92c5d000880029fac45a3bea76ee88d.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/Makefile')
-rw-r--r-- | sysutils/lsof/Makefile | 12 |
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" |