aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.sbin/dtrace/tests/tools
Commit message (Collapse)AuthorAgeFilesLines
* dtrace tests: Fix loading of the test kernel moduleMark Johnston2024-06-011-1/+1
| | | | | | | | The old way is racy and can cause two instances, running in parallel, to attempt to load dtrace_test, and only one will succeed. This caused errors when running dtrace tests in parallel. MFC after: 1 week
* dtrace tests: Diff expected and actual output upon a miscompareMark Johnston2024-01-101-0/+4
| | | | | | This makes quick diagnosis of test failures easier. MFC after: 1 week
* dtrace tests: Run ksh with -pMark Johnston2024-01-101-2/+2
| | | | | | | | In particular, avoid loading the user's .profile file, since that can have undesirable side effects. Most tests were already careful to do this. MFC after: 1 week
* dtrace: Remove $FreeBSD$ from genmakefiles.sh.Domagoj Stolfa2023-08-251-2/+0
| | | | | | | $FreeBSD$ is gone in head, so this should be removed as well. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D41595
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-164-5/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* DTrace test: skip flakey common.misc.t_dtrace_contrib.tst_dynopt_d in CILi-Wen Hsu2022-03-241-0/+3
| | | | | PR: 237641 Sponsored by: The FreeBSD Foundation
* DTrace test: Add a new keyword SKIPCI to gentest.shLi-Wen Hsu2022-03-242-4/+8
| | | | | | | | | This is for marking a test case is flakey and should not be executed in the CI environment. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34635
* Enable creation of static userspace probes in incremental builds.Mark Johnston2020-08-201-4/+0
| | | | | | | | | | | | | | | | | | To define USDT probes, dtrace -G makes use of relocations for undefined symbols: the target address is overwritten with NOPs and the location is recorded in the DOF section of the output object file. To avoid link errors, the original relocation is destroyed. However, this means that the same input object file cannot be processed multiple times, as happens during incremental rebuilds. Instead, only set the relocation type to NONE, so that all information required to reconstruct USDT probes is preserved. Reported by: bdrewery MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=364438
* dtrace tests: Support globbing for excludesBryan Drewery2020-04-291-1/+16
| | | | | | | | | | | Downstream this makes skipping tests like common/ip/tst.*sctp*.ksh simpler. Reviewed by: vangyzen, cem, markj Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D24608 Notes: svn path=/head/; revision=360476
* DTrace: create an amd64 test suitMariusz Zaborski2019-06-051-1/+1
| | | | | | | | | | | | | 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: svn path=/head/; revision=348706
* Make it possible to generate makefiles for arch-dependent DTrace tests.Mark Johnston2019-05-221-8/+10
| | | | | | | | MFC after: 1 week Event: Waterloo Hackathon 2019 Notes: svn path=/head/; revision=348080
* Add support for send, receive and state-change DTrace providers forMichael Tuexen2018-08-221-0/+2
| | | | | | | | | | | | SCTP. They are based on what is specified in the Solaris DTrace manual for Solaris 11.4. Reviewed by: 0mp, dteske, markj Relnotes: yes Differential Revision: https://reviews.freebsd.org/D16839 Notes: svn path=/head/; revision=338213
* Add a dtrace provider for UDP-Lite.Michael Tuexen2018-07-311-0/+1
| | | | | | | | | | | | | | The dtrace provider for UDP-Lite is modeled after the UDP provider. This fixes the bug that UDP-Lite packets were triggering the UDP provider. Thanks to dteske@ for providing the dwatch module. Reviewed by: dteske@, markj@, rrs@ Relnotes: yes Differential Revision: https://reviews.freebsd.org/D16377 Notes: svn path=/head/; revision=337018
* Improve TCP related tests for dtrace.Michael Tuexen2018-07-221-3/+0
| | | | | | | | | | | | | | Ensure that the TCP connections are terminated gracefully as expected by the test. Use appropriate numbers for sent/received packets. In addition, enable tst.localtcpstate.ksh, which should pass, but doesn't until https://reviews.freebsd.org/D16369 is committed. Reviewed by: markj@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D16288 Notes: svn path=/head/; revision=336597
* Fix the UDP tests for dtrace.Michael Tuexen2018-07-151-1/+0
| | | | | | | | | | | | | | | | | The code imported from opensolaris was depending on ping supporting UDP for sending probes. Since this is not supported by ping on FreeBSD use a perl script instead. The remote test requires the usage of ksh93, so state that in the sheband. Enable the local test, but keep the remote test disabled, since it requires a remote machine on the LAN. Reviewed by: markj@, gnn@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D16268 Notes: svn path=/head/; revision=336315
* Remove tst.zonename.d from the list of expected failures.Mark Johnston2018-01-141-1/+0
| | | | | | | X-MFC with: r327888 Notes: svn path=/head/; revision=327973
* Mark uctf/err.user64mode.ksh as EXFAIL for now.Mark Johnston2017-12-151-0/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=326878
* Revert r326181 for now.Mark Johnston2017-11-271-2/+0
| | | | | | | | | We can't link an executable using -m32 until the lib32 phase of a buildworld, though the build works fine when executing make from cddl/usr.sbin/dtrace/tests. Some other solution will need to be found. Notes: svn path=/head/; revision=326285
* Compile one of the uctf test programs with -m32.Mark Johnston2017-11-241-0/+2
| | | | | | | | | The err.user64mode.ksh test expects it to run as a 32-bit process. MFC after: 1 week Notes: svn path=/head/; revision=326181
* Annotate pragma/err.invalidlibdep.ksh as EXFAIL.Mark Johnston2017-11-221-0/+5
| | | | | | | | | | | | | | The test creates a D library with a "depends_on library" pragma referencing a non-existent library, and expects compilation to fail. However, as far as I can tell, libdtrace is supposed simply abort compilation of the library in this case, and continue. This behaviour is desirable when adding libraries which depend on optional KLDs, for example. MFC after: 1 week Notes: svn path=/head/; revision=326096
* Annotate usdt/tst.eliminate.ksh as EXFAIL.Mark Johnston2017-11-211-0/+3
| | | | | | | | | It appears to depend on some behaviour specific to the Sun link editor. MFC after: 1 week Notes: svn path=/head/; revision=326063
* The test case common.funcs.t_dtrace_contrib.tst_basename_d generates aLi-Wen Hsu2017-07-251-0/+8
| | | | | | | | | | | | verifying script which needs being run to complete the test. While here, add missing shebang. Reviewed by: gnn, markj, ngie Differential Revision: https://reviews.freebsd.org/D11716 Notes: svn path=/head/; revision=321472
* Override the locale so that file lists get a consistent sort order.Mark Johnston2017-06-101-0/+2
| | | | | | | | Reported by: avg MFC after: 1 week Notes: svn path=/head/; revision=319792
* Remove the EXFAIL annotation for tests which pass as of r309596.Mark Johnston2017-05-191-5/+0
| | | | | | | | Reported by: bdrewery Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318508
* Skip a ustack test that triggers an assertion on INVARIANTS kernels.Mark Johnston2016-12-141-0/+3
| | | | | | | | | Reported by: ngie Sponsored by: Dell EMC Isilon X-MFC-With: r309698 Notes: svn path=/head/; revision=310085
* err.D_PROC_CREATEFAIL.many.d passes, so remove the EFAIL annotation.Mark Johnston2016-12-081-3/+0
| | | | | | | | MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=309718
* Run DTrace test scripts with "tst" set to the test script file name.Mark Johnston2016-12-071-1/+1
| | | | | | | | MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=309698
* tst.kpriv.ksh fails because DTrace privilege levels are unimplemented.Mark Johnston2016-10-161-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=307400
* dtraceUtil/tst.DataModel32.d.ksh passes on amd64.Mark Johnston2016-08-151-1/+0
| | | | Notes: svn path=/head/; revision=304183
* Highball memory requirement (4GB) with common/{raise,safety}Enji Cooper2016-08-101-3/+16
| | | | | | | | | | | | | | | | Both test suites require more memory than my amd64 VM using GENERIC-NODEBUG can provide and reliably panic it with OOM issues in dtrace(4). Some of the testcases fail, but this at least bypasses the panic behavior on platforms that don't have enough resources MFC after: 2 weeks Discussed with: markj Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=303900
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedEnji Cooper2016-05-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=299094
* Fix LDADD/DPADD that should be LIBADD.Bryan Drewery2015-12-041-2/+1
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291738
* Rename Makefile.inc1 to dtrace.test.mk to avoid clash with top-level ↵Bryan Drewery2015-11-251-1/+1
| | | | | | | | | | Makefile.inc1. Discussed with: ngie, markj Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291332
* Fix a typo that snuck in with r283024, and remove the EXFAIL annotation fromMark Johnston2015-05-171-1/+0
| | | | | | | a test which now passes as a result of that change. Notes: svn path=/head/; revision=283039
* Replace dtest.pl, the upstream DTrace test suite harness, with a shellMark Johnston2015-03-302-2/+131
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=280835
* Add infrastructure to integrate the DTrace test suite with Kyua.Mark Johnston2015-02-283-0/+389
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. Reviewed by: ngie Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=279418