From edbec18e345019372db033cc95c1e4bb59888089 Mon Sep 17 00:00:00 2001 From: markj Date: Wed, 22 May 2019 03:42:03 +0000 Subject: [PATCH] Hook up the existing i386 DTrace tests to the build. Now that it's relatively easy to do so, we might as well. MFC after: 1 week Event: Waterloo Hackathon 2019 --- cddl/usr.sbin/dtrace/tests/Makefile | 4 +++ cddl/usr.sbin/dtrace/tests/i386/Makefile | 12 +++++++++ .../dtrace/tests/i386/arrays/Makefile | 19 ++++++++++++++ .../usr.sbin/dtrace/tests/i386/funcs/Makefile | 22 ++++++++++++++++ cddl/usr.sbin/dtrace/tests/i386/pid/Makefile | 23 ++++++++++++++++ .../dtrace/tests/i386/ustack/Makefile | 26 +++++++++++++++++++ etc/mtree/BSD.tests.dist | 10 +++++++ 7 files changed, 116 insertions(+) create mode 100644 cddl/usr.sbin/dtrace/tests/i386/Makefile create mode 100644 cddl/usr.sbin/dtrace/tests/i386/arrays/Makefile create mode 100644 cddl/usr.sbin/dtrace/tests/i386/funcs/Makefile create mode 100644 cddl/usr.sbin/dtrace/tests/i386/pid/Makefile create mode 100644 cddl/usr.sbin/dtrace/tests/i386/ustack/Makefile diff --git a/cddl/usr.sbin/dtrace/tests/Makefile b/cddl/usr.sbin/dtrace/tests/Makefile index ba5a7365840e..46c8436ebff3 100644 --- a/cddl/usr.sbin/dtrace/tests/Makefile +++ b/cddl/usr.sbin/dtrace/tests/Makefile @@ -4,6 +4,10 @@ TESTS_SUBDIRS+= common +.if ${MACHINE_CPUARCH} == "i386" +TESTS_SUBDIRS+= i386 +.endif + .PATH: ${SRCTOP}/tests KYUAFILE= yes diff --git a/cddl/usr.sbin/dtrace/tests/i386/Makefile b/cddl/usr.sbin/dtrace/tests/i386/Makefile new file mode 100644 index 000000000000..bd6f7cf5ad5c --- /dev/null +++ b/cddl/usr.sbin/dtrace/tests/i386/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +TESTSDIR= ${TESTSBASE}/cddl/usr.sbin/dtrace/i386 +TESTS_SUBDIRS+= arrays \ + funcs \ + pid \ + ustack + +.PATH: ${.CURDIR:H:H:H:H:H}/tests +KYUAFILE= YES + +.include diff --git a/cddl/usr.sbin/dtrace/tests/i386/arrays/Makefile b/cddl/usr.sbin/dtrace/tests/i386/arrays/Makefile new file mode 100644 index 000000000000..e97c9c64fbba --- /dev/null +++ b/cddl/usr.sbin/dtrace/tests/i386/arrays/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +# +# This Makefile was generated by $srcdir/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh. +# + +PACKAGE= tests + +${PACKAGE}FILES= \ + tst.uregsarray.d \ + +TESTEXES= \ + + +CFILES= \ + + + +.include "../../dtrace.test.mk" diff --git a/cddl/usr.sbin/dtrace/tests/i386/funcs/Makefile b/cddl/usr.sbin/dtrace/tests/i386/funcs/Makefile new file mode 100644 index 000000000000..64a00fa57d8b --- /dev/null +++ b/cddl/usr.sbin/dtrace/tests/i386/funcs/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ + +# +# This Makefile was generated by $srcdir/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh. +# + +PACKAGE= tests + +${PACKAGE}FILES= \ + tst.badcopyin.d \ + tst.badcopyinstr.d \ + tst.badcopyout.d \ + tst.badcopyoutstr.d \ + +TESTEXES= \ + + +CFILES= \ + + + +.include "../../dtrace.test.mk" diff --git a/cddl/usr.sbin/dtrace/tests/i386/pid/Makefile b/cddl/usr.sbin/dtrace/tests/i386/pid/Makefile new file mode 100644 index 000000000000..61fb328cbc7b --- /dev/null +++ b/cddl/usr.sbin/dtrace/tests/i386/pid/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ + +# +# This Makefile was generated by $srcdir/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh. +# + +PACKAGE= tests + +${PACKAGE}FILES= \ + tst.badinstr.d \ + tst.branch.d \ + tst.embedded.d \ + tst.ret.d \ + tst.retlist.ksh \ + +TESTEXES= \ + + +CFILES= \ + + + +.include "../../dtrace.test.mk" diff --git a/cddl/usr.sbin/dtrace/tests/i386/ustack/Makefile b/cddl/usr.sbin/dtrace/tests/i386/ustack/Makefile new file mode 100644 index 000000000000..bc7c6a2d34c0 --- /dev/null +++ b/cddl/usr.sbin/dtrace/tests/i386/ustack/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +# +# This Makefile was generated by $srcdir/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh. +# + +PACKAGE= tests + +${PACKAGE}FILES= \ + annotated_helper.d \ + helper_helper.d \ + tst.annotated.d \ + tst.annotated.d.out \ + tst.circstack.d \ + tst.helper.d \ + tst.helper.d.out \ + +TESTEXES= \ + + +CFILES= \ + tst.annotated.c \ + tst.helper.c \ + + +.include "../../dtrace.test.mk" diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist index 377c0bcb5fab..4f3c8dc83955 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -238,6 +238,16 @@ version .. .. + i386 + arrays + .. + funcs + .. + pid + .. + ustack + .. + .. .. zfsd ..