diff options
author | dillo <dillo> | 2002-11-07 04:22:29 +0000 |
---|---|---|
committer | dillo <dillo> | 2002-11-07 04:22:29 +0000 |
commit | 4ba5dc7f7890e6504294a4bae061d0a47f56a99c (patch) | |
tree | 6d7df382093ef40a53f973cf21ee28ae008862cc /mk/bsd.pkg.defaults.mk | |
parent | 0d46ecb67c0a67c34f4e4967d62388dfb242e54d (diff) | |
download | pkgsrc-4ba5dc7f7890e6504294a4bae061d0a47f56a99c.tar.gz |
Add a test target to bsd.pkg.mk:
It runs pre-test, do-test, and post-test. The default pre-test and
post-test targets are empty; the default do-test target runs
TEST_TARGET (in each TEST_DIRS (defaults to BUILD_DIRS)) if it is set
and does nothing otherwise. Thus the test target defaults to doing
nothing.
The usual way to use this is to set TEST_TARGET to the target to run
(e.g. TEST_TARGET=check for GNU packages).
If PKGSRC_RUN_TEST is set to yes (in mk.conf, defaults to no),
the test target is run before install.
(approved by agc)
Diffstat (limited to 'mk/bsd.pkg.defaults.mk')
-rw-r--r-- | mk/bsd.pkg.defaults.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.pkg.defaults.mk b/mk/bsd.pkg.defaults.mk index 82dc39a080e..2ee8b5f5010 100644 --- a/mk/bsd.pkg.defaults.mk +++ b/mk/bsd.pkg.defaults.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.defaults.mk,v 1.101 2002/10/21 01:18:55 wiz Exp $ +# $NetBSD: bsd.pkg.defaults.mk,v 1.102 2002/11/07 04:22:29 dillo Exp $ # # A file providing defaults for pkgsrc and the packages collection. @@ -66,6 +66,11 @@ PKGSRC_SLEEPSECS?= 5 # Possible: defined, not defined # Default: not defined +PKGSRC_RUN_TEST?= no +# Run test target before install +# Possible: yes, no +# Default: no + #WRKOBJDIR= /usr/tmp # build here instead of in pkgsrc # Possible: any path |