summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
*-. Integrate tools/regression/vfs into the FreeBSD test suite as tests/sys/vfsngie2015-10-143-0/+50
|\ \ | | | | | | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
| | * Add Makefile forgotten in r289224ngie2015-10-131-0/+7
| |/
| * Integrate tools/regression/vfs into the FreeBSD test suite as tests/sys/vfsngie2015-10-132-0/+43
| |
| * Integrate tools/test/posixshm and tools/regression/posixshm into the FreeBSDngie2015-10-136-0/+990
|/ | | | test suite as tests/sys/posixshm
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-123-3/+3
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Tweak: use 'mainlwp' instead of 'mainpid' since this is a thread (LWP)jhb2015-10-061-3/+3
| | | | identifier, not a pid.
* Fix build with older GCC which, doesn't like 'main' being a variable name.bdrewery2015-10-061-3/+3
|
* Fix various edge cases related to system call tracing.jhb2015-10-062-15/+245
| | | | | | | | | | | | | | | | | | | | | | | - Always set td_dbg_sc_* when P_TRACED is set on system call entry even if the debugger is not tracing system call entries. This ensures the fields are valid when reporting other stops that occur at system call boundaries such as for PT_FOLLOW_FORKS or when only tracing system call exits. - Set TDB_SCX when reporting the stop for a new child process in fork_return(). This causes the event to be reported as a system call exit. - Report a system call exit event in fork_return() for new threads in a traced process. - Copy td_dbg_sc_* to new threads instead of zeroing. This ensures that td_dbg_sc_code in particular will report the system call that created the new thread or process when it reports a system call exit event in fork_return(). - Add new ptrace tests to verify that new child processes and threads report system call exit events with a valid pl_syscall_code via PT_LWPINFO. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D3822
* Revert r288682ngie2015-10-0521-0/+2046
| | | | | | I meant to do this on ^/user/ngie/more-tests Pointyhat to: ngie (use svn info next time...)
* Remove some paths preparing for a re-copy from headngie2015-10-0521-2046/+0
|
* Use _exit() instead of exit() in child processes created during tests.jhb2015-09-091-10/+10
| | | | Suggested by: kib
* Add a test to verify that a traced process sees its original parent viajhb2015-09-091-0/+87
| | | | | | | getppid() after a debugger process that is not the parent has attached. Reviewed by: kib (earlier version) Differential Revision: https://reviews.freebsd.org/D3615
* Properly size the children[] arrays in the follow fork tests.jhb2015-09-091-6/+6
|
* Add more mmap tests related to character devices.jhb2015-09-041-8/+103
| | | | | | | | | | - Add cdev-related tests for bad args. - Add two simple tests cases for mapping /dev/zero that test for MAP_ANON-like behavior. Reviewed by: alc, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D3323
* Add various tests to ensure that invalid arguments passed to mmap()jhb2015-08-061-0/+72
| | | | | | | trigger failures. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D3269
* Convert the map_at_zero test case to ATF. In particular, this willjhb2015-08-062-37/+24
| | | | | | | facilitate adding more mmap() tests. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3268
* Clear P_TRACED before reparenting a detached process back to itsjhb2015-08-011-54/+527
| | | | | | | | | | | original parent. Otherwise the debugee will be set as an orphan of the debugger. Add tests for tracing forks via PT_FOLLOW_FORK. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D2809
* Fixed shutdown(2) unix(4) tests for SOCK_SEQPACKET after r285910 (by ed).pluknet2015-07-291-8/+52
|
* Pass unsigned long argument to ioctl().rodrigc2015-07-261-1/+2
| | | | | | Eliminates "ioctl sign-extension" warnings. PR: 200896
* The bug caught by flock's test 16 was fixed by r268384.markj2015-07-051-5/+0
| | | | MFC after: 3 days
* Make cleanup routines idempotentjmmv2015-07-041-7/+12
| | | | | | | | | | | | | | cleanup routines can be executed at any point during the execution of the body, including even before the body has done any real work. In those cases, cleanup routines should be careful to not raise spurious errors so as to not "override" the actual result of the test case. This is just general good coding style but is not a problem in practice for these specific tests. (The way I discovered the issue, though, was due to a regression I introduced in Kyua itself while refactoring some internals.) MFC after: 1 week
* Misc fixes from projects/bmakesjg2015-06-111-1/+1
| | | | | Differential Revision: D2748 Reviewed by: brooks imp
* Add a CHILD_REQUIRE macro similar to ATF_REQUIRE for use in child processesjhb2015-06-041-25/+47
| | | | | | | of the main test process. Differential Revision: https://reviews.freebsd.org/D2664 Reviewed by: ngie (previous version)
* Append to SUBDIR, not set itngie2015-05-311-2/+2
| | | | Pointyhat to: ngie
* Consistently only use one end of the pipe in the parent and debuggerjhb2015-05-311-3/+5
| | | | | | | | processes and do not rely on EOF due to a close() in the debugger. PR: 200489 Differential Revision: https://reviews.freebsd.org/D2674 Reviewed by: kib, ngie, rodrigc
* Tweak the description of when waitpid() doesn't return any status for ajhb2015-05-281-6/+6
| | | | | | non-blocking wait to avoid the word "empty". Requested by: ngie
* Do not allow a process to reap an orphan (a child currently beingjhb2015-05-261-0/+246
| | | | | | | | | | | | | | | | | traced by another process such as a debugger). The parent process does need to check for matching orphan pids to avoid returning ECHILD if an orphan has exited, but it should not return the exited status for the child until after the debugger has detached from the orphan process either explicitly or implicitly via wait(). Add two tests for for this case: one where the debugger is the direct child (thus the parent has a non-empty children list) and one where the debugger is not a direct child (so the only "child" of the parent is the orphan). Differential Revision: https://reviews.freebsd.org/D2644 Reviewed by: kib MFC after: 2 weeks
* Only reparent a traced process to its old parent if the tracing process isjhb2015-05-222-0/+144
| | | | | | | | | | | | not the old parent. Otherwise, proc_reap() will leave the zombie in place resulting in the process' status being returned twice to its parent. Add test cases for PT_TRACE_ME and PT_ATTACH which are fixed by this change. Differential Revision: https://reviews.freebsd.org/D2594 Reviewed by: kib MFC after: 2 weeks
* Move all test integration pieces for etc/ from etc/ to tests/ngie2015-05-184-0/+158
| | | | | | | | | | | This is being done to fix breakage with make distribution with read-only source trees as make distribution doesn't use make obj like building tests/ does in all cases Reported by: Wolfgang Zenker <wolfgang@lyxys.ka.sub.org> Suggested by: jhb X-MFC with: r282059 MFC after: 1 week
* Fix typo. It should have been atf_tc_skip, not atf_skipngie2015-04-291-1/+1
| | | | | | Reported by: many, Jenkins Pointyhat to: ngie MFC after: 4 days
* ATF_REQUIRE_KERNEL_MODULE: use atf_skip, not ATF_REQUIRE_MSG so the testcasengie2015-04-291-7/+10
| | | | | | | | no longer bombs out PLAIN_REQUIRE_KERNEL_MODULE: use printf + _exit, no err so the testcase no longer bombs out if it prints to stderr MFC after: 5 days
* Adjust CFLAGS to find freebsd_test_suite/macros.hngie2015-04-281-0/+2
| | | | MFC after: 6 days
* Use PLAIN_REQUIRE_KERNEL_MODULE to require "mqueuefs"ngie2015-04-286-0/+22
| | | | MFC after: 6 days
* - Use ATF_REQUIRE_KERNEL_MDOULE to require aio(4)ngie2015-04-282-25/+33
| | | | | | | | - Don't use /tmp as a basis for temporary files as it's outside of the ATF sandbox - Don't override MAX macro in sys/param.h MFC after: 6 days
* Use ATF_REQUIRE_KERNEL_MODULE instead of aio_available functionngie2015-04-281-17/+10
| | | | MFC after: 6 days
* Add initial (unpolished) macros for interfacing with the FreeBSD test suitengie2015-04-281-0/+53
| | | | | | | This is very rough, but will be replaced/redesigned some time soon after I fix the Jenkins breakage I introduced MFC after: 6 days
* Fill in the copyright boilerplate for the test programngie2015-04-281-0/+27
| | | | MFC after: 6 days
* Move tests/sys/kern/mmap_test to tests/sys/vm/mmap_testngie2015-04-274-1/+8
| | | | | | | | | As jhb noted, the actual mmap(2) implementation is under sys/vm, not sys/kern/, so the correct logical place is tests/sys/vm/, not tests/sys/kern/ X-MFC with: r282076 MFC after: 6 days
* Integrate tools/regression/mmap into the FreeBSD test suite asngie2015-04-272-0/+106
| | | | | | tests/sys/kern/mmap_test MFC after: 1 week
*-. Integrate tools/regression/aio/aiotest and tools/regression/aio/kqueue into thengie2015-04-275-0/+1132
|\ \ | | | | | | | | | | | | | | | FreeBSD test suite as tests/sys/aio MFC after: 1 week
| | * Integrate tests/sys/aio/kqueue into tests/sys/aiongie2015-04-163-0/+454
| |/
| * Integrate tools/regression/aio/aiotest into the FreeBSD test suite as ↵ngie2015-04-163-0/+678
| | | | | | | | tests/sys/aio
| * Update commentsngie2015-04-161-8/+4
| | | | | | | | | | | | Don't install/test unix_cmsg because it's broken [1] PR: 199478
| * Set WARNS to 6, but turn off -Wcast-align; this is an issue with unix_cmsg andngie2015-04-161-6/+3
| | | | | | | | unix_passfd_test
| * Fix WARNS=6 issues with gccngie2015-04-165-7/+8
| |
| * Don't use /tmp for temporary files; this violates ATF/kyuas sandboxngie2015-04-162-2/+2
| |
| * Rename unix_sendtorace_test to unix_sendto_race_testngie2015-04-162-1/+1
| |
| * Convert accf_data_attach_test over to ATF and mark all steps after step 8 inngie2015-04-162-74/+42
| | | | | | | | | | the sourcecode broken (it fails on my system at least; more investigation needed)
| * - Convert zerosend_test to an ATF format testcasengie2015-04-152-121/+173
| | | | | | | | | | | | - bind to random ports - Close the server port so the TCP testcases won't terminate prematurely because bind(2) failed
| * Convert unix_passfd_test to ATFngie2015-04-152-194/+199
| | | | | | | | Mark test 8 as an expected failure so it no longer counts as an unexpected one
OpenPOWER on IntegriCloud