summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.test.mk
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-15 17:58:10 +0000
committerngie <ngie@FreeBSD.org>2015-12-15 17:58:10 +0000
commit73da3a2835e4c2509c09cad036ba1c10eb3e5fa7 (patch)
treefffa13c76d7bb2ac803455212c635edf03b98d0d /share/mk/bsd.test.mk
parent60b291250b8b9f88952c75fecfd4d76b908969f4 (diff)
downloadFreeBSD-src-73da3a2835e4c2509c09cad036ba1c10eb3e5fa7.zip
FreeBSD-src-73da3a2835e4c2509c09cad036ba1c10eb3e5fa7.tar.gz
MFC r284408,r289151,r289158:
r284408: Ensure TESTSDIR is defined before bsd.test.mk is .include'd r289151: Simplify netbsd-tests.test.mk - projects/bmake and subsequent commits provide SRCTOP; there's no need to manually specify it now. - Compute a sane default for OBJTOP based on .OBJDIR and RELDIR. Manually specifying this is probably no longer needed, but it persists just in case (supporting commits will need to be made to move it out of some of the meta .mk files). - Compute a sane default for TESTSRC. Error out if the path cannot be found. Sponsored by: EMC / Isilon Storage Division r289158: Default TESTSDIR to /usr/tests/${RELDIR:H} When run from bin/ls/tests, for example, the value of TESTSDIR would be ${TESTSBASE}/${RELDIR:H} -> /usr/tests/bin/ls/tests/.. -> /usr/tests/bin/ls Document the new behavior in bsd.README. While here, also document TESTSBASE Relnotes: yes Differential Revision: D1022 Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share/mk/bsd.test.mk')
-rw-r--r--share/mk/bsd.test.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.test.mk b/share/mk/bsd.test.mk
index af12418..6f20d3d 100644
--- a/share/mk/bsd.test.mk
+++ b/share/mk/bsd.test.mk
@@ -10,6 +10,9 @@
__<bsd.test.mk>__:
+# Tests install directory
+TESTSDIR?= ${TESTSBASE}/${RELDIR:H}
+
# List of subdirectories containing tests into which to recurse. This has the
# same semantics as SUBDIR at build-time. However, the directories listed here
# get registered into the run-time test suite definitions so that the test
OpenPOWER on IntegriCloud