aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.sbin/dtrace/tests/common
Commit message (Collapse)AuthorAgeFilesLines
* Add support for send, receive and state-change DTrace providers forMichael Tuexen2018-08-221-0/+8
| | | | | | | | | | | | 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/+4
| | | | | | | | | | | | | | 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
* Add "jid" and "jailname" variables to DTrace.Mark Johnston2018-01-121-0/+2
| | | | | | | | | | | | | | | | | These return the jail ID and jail name for the traced process, respectively, and are analogous to "zonename" on Solaris/illumos. "zonename" is now aliased to "jailname". Also add some stress tests for the new variables. Submitted by: Domagoj Stolfa <domagoj.stolfa@gmail.com> Reviewed by: dteske (previous version) MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D13877 Notes: svn path=/head/; revision=327888
* Add a regression test for r327794.Mark Johnston2018-01-101-0/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=327795
* Actually add the -x setenv test Makefile, missed in r326499.Mark Johnston2017-12-081-0/+30
| | | | | | | X-MFC with: r326499 Notes: svn path=/head/; revision=326705
* Complete support for dtrace's -x setenv option.Mark Johnston2017-12-033-2/+1
| | | | | | | | | | | | | | This allows one to override the environment for processes created with dtrace -c. By default, the environment is inherited. This support was originally merged from illumos in r249367 but was lost when the commit was later reverted and then brought back piecemeal. Reported by: Samuel Lepetit <slepetit@apple.com> MFC after: 2 weeks Notes: svn path=/head/; revision=326499
* Revert r326181 for now.Mark Johnston2017-11-273-2/+2
| | | | | | | | | 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-243-2/+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
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-3114-13/+5
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* DIRDEPS_BUILD: Connect new directories.Bryan Drewery2017-10-311-0/+11
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325187
* Add a regression test for r322773.Mark Johnston2017-08-211-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=322774
* Add a simple script which calls open(2) and others to generate events forLi-Wen Hsu2017-07-251-0/+1
| | | | | | | | | | | | | testing. This test times-out on a quiet system because there is nobody triggers syscall::open:entry or syscall::: probe while test execution. Reviewed by: gnn, markj (earlier version) Differential Revision: https://reviews.freebsd.org/D11671 Notes: svn path=/head/; revision=321465
* Add a simple program which calls sigtimedwait(2) to generate events for testingLi-Wen Hsu2017-07-251-0/+1
| | | | | | | | | | | This test timeout on a quiet system because there is nobody triggers 'syscall::*wait*:entry' probe while test execution. Reviewed by: gnn, markj, ngie Differential Revision: https://reviews.freebsd.org/D11668 Notes: svn path=/head/; revision=321464
* follow up to r319746: add the new test files to the make fileAndriy Gapon2017-06-101-0/+2
| | | | | | | | | Reported by: markj MFC after: 2 days X-MFC with: r319746 Notes: svn path=/head/; revision=319769
* Add a little helper program for tst.exitcore.ksh.Mark Johnston2017-05-221-0/+1
| | | | | | | | | | | sleep(1) is capsicumized, which means that we cannot rely on it to dump core as required by the test. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318680
* Regenerate DTrace tests.Mark Johnston2016-08-163-0/+28
| | | | Notes: svn path=/head/; revision=304201
* Highball memory requirement (4GB) with common/{raise,safety}Enji Cooper2016-08-102-0/+4
| | | | | | | | | | | | | | | | 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-0481-81/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* DIRDEPS_BUILD: Connect MK_TESTS.Bryan Drewery2016-03-0980-0/+960
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296587
* Test directories can build in parallel fine.Bryan Drewery2016-02-161-2/+0
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295643
* Fix a discrepancy in r291738.Mark Johnston2015-12-071-1/+1
| | | | | | | | | The script that generates these makefiles was changed to modify LIBADD rather than LDADD/DPADD, but the makefile itself was also changed in a slightly different way. Notes: svn path=/head/; revision=291965
* Update DTrace test suite makefiles after r291963.Mark Johnston2015-12-071-0/+2
| | | | Notes: svn path=/head/; revision=291964
* 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-2581-81/+81
| | | | | | | | | | Makefile.inc1. Discussed with: ngie, markj Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291332
* Update DTrace test makefiles after r288415.Mark Johnston2015-09-302-0/+3
| | | | Notes: svn path=/head/; revision=288416
* Add infrastructure to integrate the DTrace test suite with Kyua.Mark Johnston2015-02-2882-0/+2927
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