summaryrefslogtreecommitdiffstats
path: root/share/mk/tap.test.mk
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2014-04-14 23:51:57 +0000
committerjmmv <jmmv@FreeBSD.org>2014-04-14 23:51:57 +0000
commit63fa6c9a5bcb0e744670fa34db16515102fe8431 (patch)
tree4a708e45badfa8bd5040762462d01df8f4160ae8 /share/mk/tap.test.mk
parent813864aadb85d56ff09c1dcac212be2307bba3ed (diff)
downloadFreeBSD-src-63fa6c9a5bcb0e744670fa34db16515102fe8431.zip
FreeBSD-src-63fa6c9a5bcb0e744670fa34db16515102fe8431.tar.gz
MFC refactoring of the *.test.mk files.
- r263161 Make bsd.test.mk the only public mk fragment for the building of tests. - r263172 Move FreeBSD Test Suite-specific code to a suite.test.mk file. - r263204 Add some documentation for bsd.test.mk. - r263217 Document support for TAP-compliant Perl test programs. This is "make tinderbox" clean.
Diffstat (limited to 'share/mk/tap.test.mk')
-rw-r--r--share/mk/tap.test.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/share/mk/tap.test.mk b/share/mk/tap.test.mk
index 9c1ef54..4c05661 100644
--- a/share/mk/tap.test.mk
+++ b/share/mk/tap.test.mk
@@ -1,12 +1,16 @@
# $FreeBSD$
#
+# You must include bsd.test.mk instead of this file from your Makefile.
+#
# Logic to build and install TAP-compliant test programs.
#
# This is provided to support existing tests in the FreeBSD source tree
# (particularly those coming from tools/regression/) that comply with the
# Test Anything Protocol. It should not be used for new tests.
-.include <bsd.init.mk>
+.if !target(__<bsd.test.mk>__)
+.error tap.test.mk cannot be included directly.
+.endif
# List of C, C++ and shell test programs to build.
#
@@ -87,5 +91,3 @@ ${_T}: ${TAP_TESTS_SH_SRC_${_T}}
mv ${.TARGET}.tmp ${.TARGET}
.endfor
.endif
-
-.include <bsd.test.mk>
OpenPOWER on IntegriCloud