diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-29 01:20:42 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-29 01:20:42 +0800 |
commit | ff2e1513055cac9087cc18a9abf2580c32f0498b (patch) | |
tree | acb73643f4fe5f57790ed056215bc1db842b57ce /Mk/bsd.options.mk | |
parent | cca6c325aeb2ff3ff53127a2b3a415a6273ef856 (diff) | |
download | freebsd-ports-gnome-ff2e1513055cac9087cc18a9abf2580c32f0498b.tar.gz freebsd-ports-gnome-ff2e1513055cac9087cc18a9abf2580c32f0498b.tar.zst freebsd-ports-gnome-ff2e1513055cac9087cc18a9abf2580c32f0498b.zip |
Implemented complete support for test target.
You can now `make test' on any port to run test sequence, no-op by default.
If a port defines TEST_TARGET, it'll run sub-make with specified target,
usually `check' or `test', useful if upstream supports that. The port may
instead define custom do-test target, as well as usual satellite targets:
{pre,do,post}-test, {pre,do,post}-test-OPT, {pre,do,post}-test-OPT-off
`make test' builds and stages port first, so test may use both WRKDIR and
STAGEDIR, and both BUILD and RUN depends are available for test target.
Additionally, TEST_DEPENDS is now properly supported and may be used to
define additional depends specifically for testing.
Framework may define default tests for specific cases. For instance,
perl5.mk and cran.mk already provide default test target on their own.
This commit also converts my ports which have tests to this new framework.
Approved by: portmgr (bapt)
Differential Revision: D3680
Diffstat (limited to 'Mk/bsd.options.mk')
-rw-r--r-- | Mk/bsd.options.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk index 594e8b4432bb..b299e548f43e 100644 --- a/Mk/bsd.options.mk +++ b/Mk/bsd.options.mk @@ -162,6 +162,7 @@ _OPTIONS_TARGETS= fetch:300:pre fetch:500:do fetch:700:post \ configure:300:pre configure:500:do configure:700:post \ build:300:pre build:500:do build:700:post \ install:300:pre install:500:do install:700:post \ + test:300:pre test:500:do test:700:post \ package:300:pre package:500:do package:700:post \ stage:800:post |