Reviewed by: gnn, ngie
Differential Revision: https://reviews.freebsd.org/D3195
# $FreeBSD$
+.include <src.opts.mk>
+
.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/dtrace
PROG= dtrace
LIBADD= dtrace
+.if ${MK_DTRACE_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>
__DEFAULT_NO_OPTIONS = \
BSD_GREP \
CLANG_EXTRAS \
+ DTRACE_TESTS \
EISA \
HESIOD \
LLDB \
MK_AUTHPF:= no
.endif
+.if ${MK_TESTS} == "no"
+MK_DTRACE_TESTS:= no
+.endif
+
.if ${MK_TEXTPROC} == "no"
MK_GROFF:= no
.endif
--- /dev/null
+.\" $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.