aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.sbin
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2019-06-05 22:32:26 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2019-06-05 22:32:26 +0000
commit75ed05ef7d4731b3081782135ba8b3f475c59c7a (patch)
tree852589be18b75ae693f26ccdd2a17f0ba1b2e3e8 /cddl/usr.sbin
parent8da024d941be079dab1df78c092d5ff16637afa0 (diff)
downloadsrc-75ed05ef7d4731b3081782135ba8b3f475c59c7a.tar.gz
src-75ed05ef7d4731b3081782135ba8b3f475c59c7a.zip
DTrace: create an amd64 test suit
Create two tests checking if we can read urgs registers and if the rax register returns a correct number. Reviewed by: markj Discussed with: lwhsu MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20364
Notes
Notes: svn path=/head/; revision=348706
Diffstat (limited to 'cddl/usr.sbin')
-rw-r--r--cddl/usr.sbin/dtrace/tests/Makefile4
-rw-r--r--cddl/usr.sbin/dtrace/tests/amd64/arrays/Makefile20
-rwxr-xr-xcddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh2
3 files changed, 25 insertions, 1 deletions
diff --git a/cddl/usr.sbin/dtrace/tests/Makefile b/cddl/usr.sbin/dtrace/tests/Makefile
index 46c8436ebff3..a311126f38b5 100644
--- a/cddl/usr.sbin/dtrace/tests/Makefile
+++ b/cddl/usr.sbin/dtrace/tests/Makefile
@@ -8,6 +8,10 @@ TESTS_SUBDIRS+= common
TESTS_SUBDIRS+= i386
.endif
+.if ${MACHINE_CPUARCH} == "amd64"
+TESTS_SUBDIRS+= amd64
+.endif
+
.PATH: ${SRCTOP}/tests
KYUAFILE= yes
diff --git a/cddl/usr.sbin/dtrace/tests/amd64/arrays/Makefile b/cddl/usr.sbin/dtrace/tests/amd64/arrays/Makefile
new file mode 100644
index 000000000000..0308ba5083e1
--- /dev/null
+++ b/cddl/usr.sbin/dtrace/tests/amd64/arrays/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+#
+# This Makefile was generated by $srcdir/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh.
+#
+
+PACKAGE= tests
+
+${PACKAGE}FILES= \
+ tst.rax.d \
+ tst.uregsarray.d \
+
+TESTEXES= \
+
+
+CFILES= \
+ tst.rax.c \
+
+
+.include "../../dtrace.test.mk"
diff --git a/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh b/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh
index 9df2f0b27fb8..4f756f7eaf3a 100755
--- a/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh
+++ b/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh
@@ -96,7 +96,7 @@ readonly ORIGINDIR=$(realpath $(dirname $0))
readonly TOPDIR=$(realpath ${ORIGINDIR}/../../../../..)
readonly CONTRIB_TESTDIR=${TOPDIR}/cddl/contrib/opensolaris/cmd/dtrace/test/tst
-for class in common i386; do
+for class in common i386 amd64; do
for group in $(find ${CONTRIB_TESTDIR}/$class -mindepth 1 -maxdepth 1 -type d); do
genmakefile $class $(basename $group)
done