Page MenuHomeFreeBSD

D3195.id7526.diff
No OneTemporary

D3195.id7526.diff

Index: cddl/usr.sbin/dtrace/Makefile
===================================================================
--- cddl/usr.sbin/dtrace/Makefile
+++ cddl/usr.sbin/dtrace/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <src.opts.mk>
+
.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/dtrace
PROG= dtrace
@@ -22,4 +24,8 @@
LIBADD= dtrace
+.if ${MK_DTRACE_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>
Index: share/mk/src.opts.mk
===================================================================
--- share/mk/src.opts.mk
+++ share/mk/src.opts.mk
@@ -178,6 +178,7 @@
__DEFAULT_NO_OPTIONS = \
BSD_GREP \
CLANG_EXTRAS \
+ DTRACE_TESTS \
EISA \
HESIOD \
LLDB \
@@ -319,6 +320,10 @@
MK_AUTHPF:= no
.endif
+.if ${MK_TESTS} == "no"
+MK_DTRACE_TESTS:= no
+.endif
+
.if ${MK_TEXTPROC} == "no"
MK_GROFF:= no
.endif
Index: tools/build/options/WITH_DTRACE_TESTS
===================================================================
--- /dev/null
+++ tools/build/options/WITH_DTRACE_TESTS
@@ -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 may cause system instability.

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 13, 4:03 PM (9 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31364084
Default Alt Text
D3195.id7526.diff (1 KB)

Event Timeline