From 3fdc68df60c69521e878b8de562f6cb6d1b4eb5d Mon Sep 17 00:00:00 2001 From: ngie Date: Thu, 9 Feb 2017 21:54:18 +0000 Subject: MFC r277912,r278738,r279418,r280835,r288416: r277912 (by markj): Include required headers in DTrace test programs. r278738 (by markj): Tweak the fds test program so that it actually compiles. Also use 0 instead of -1 for the bogus ioctl command so that dmesg doesn't get spammed with sign extension warnings when the test program runs. r279418 (by markj): Add infrastructure to integrate the DTrace test suite with Kyua. For each test category, we generate a script containing ATF test cases for the tests under that category. Each test case simply runs dtest.pl (the upstream test harness) with the corresponding test files. The exclude.sh script is used to record info about tests which should be skipped or are expected to fail; it is used to generate atf_skip and atf_expect_fail calls. The genmakefiles.sh script can be used to regenerate the test makefiles when new tests are brought it from upstream. The test suite is currently not connected to the build as there is a small number of lingering test issues which still need to be worked out. In the meantime however, the test suite can be easily built and installed manually from cddl/usr.sbin/dtrace/tests. r280835 (by markj): Replace dtest.pl, the upstream DTrace test suite harness, with a shell script. This reimplementation is much simpler than dtest.pl and is more amenable to being run under Kyua - dtest.pl writes error output to a temporary directory that is deleted when the run finishes, making it hard to debug test failures. This change also removes the test suite's dependency on perl. r288416 (by markj): Update DTrace test makefiles after r288415. --- cddl/usr.sbin/dtrace/tests/common/sdt/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cddl/usr.sbin/dtrace/tests/common/sdt/Makefile (limited to 'cddl/usr.sbin/dtrace/tests/common/sdt/Makefile') diff --git a/cddl/usr.sbin/dtrace/tests/common/sdt/Makefile b/cddl/usr.sbin/dtrace/tests/common/sdt/Makefile new file mode 100644 index 0000000..598cc69 --- /dev/null +++ b/cddl/usr.sbin/dtrace/tests/common/sdt/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +# +# This Makefile was generated by $srcdir/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh. +# + +TESTFILES= \ + tst.sdtargs.d \ + +TESTEXES= \ + + +CFILES= \ + tst.sdtargs.c \ + + +.include "../../Makefile.inc1" -- cgit v1.1