diff options
author | jmmv <jmmv@FreeBSD.org> | 2014-04-14 23:51:57 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2014-04-14 23:51:57 +0000 |
commit | 63fa6c9a5bcb0e744670fa34db16515102fe8431 (patch) | |
tree | 4a708e45badfa8bd5040762462d01df8f4160ae8 /share/mk/plain.test.mk | |
parent | 813864aadb85d56ff09c1dcac212be2307bba3ed (diff) | |
download | FreeBSD-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/plain.test.mk')
-rw-r--r-- | share/mk/plain.test.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/share/mk/plain.test.mk b/share/mk/plain.test.mk index 2e2752d..99685ef 100644 --- a/share/mk/plain.test.mk +++ b/share/mk/plain.test.mk @@ -1,10 +1,14 @@ # $FreeBSD$ # +# You must include bsd.test.mk instead of this file from your Makefile. +# # Logic to build and install plain test programs. A plain test programs it not # supposed to use any specific testing framework: all it does is run some code # and report the test's pass or fail status via a 0 or 1 exit code. -.include <bsd.init.mk> +.if !target(__<bsd.test.mk>__) +.error plain.test.mk cannot be included directly. +.endif # List of C, C++ and shell test programs to build. # @@ -58,5 +62,3 @@ ${_T}: ${PLAIN_TESTS_SH_SRC_${_T}} mv ${.TARGET}.tmp ${.TARGET} .endfor .endif - -.include <bsd.test.mk> |