Add a src.conf option to build and install the DTrace test suite.

Reviewed by:	gnn, ngie
Differential Revision:	https://reviews.freebsd.org/D3195
This commit is contained in:
Mark Johnston 2015-08-02 00:37:33 +00:00
parent 0996b15464
commit d912066c36
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286174
3 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <src.opts.mk>
.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/dtrace
PROG= dtrace
@ -22,4 +24,8 @@ CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \
LIBADD= dtrace
.if ${MK_DTRACE_TESTS} != "no"
SUBDIR+= tests
.endif
.include <bsd.prog.mk>

View File

@ -178,6 +178,7 @@ __DEFAULT_YES_OPTIONS = \
__DEFAULT_NO_OPTIONS = \
BSD_GREP \
CLANG_EXTRAS \
DTRACE_TESTS \
EISA \
HESIOD \
LLDB \
@ -318,6 +319,10 @@ MK_KERBEROS:= no
MK_AUTHPF:= no
.endif
.if ${MK_TESTS} == "no"
MK_DTRACE_TESTS:= no
.endif
.if ${MK_TEXTPROC} == "no"
MK_GROFF:= no
.endif

View File

@ -0,0 +1,5 @@
.\" $FreeBSD$
Set to build and install the DTrace test suite in
.Pa /usr/tests/cddl/usr.sbin/dtrace .
This test suite is considered experimental on architectures other than
amd64/amd64 and running it may cause system instability.