summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Integrate tools/regression/pipe in to the FreeBSD test suite asngie2015-11-1610-0/+799
| | | | | | | | | | | | | | tests/sys/kern/pipe - Fix style(9) bugs - Fix compiler warnings - Use `nitems(x)` instead of `sizeof(x) / sizeof(*x)` pattern The testcases will be converted over to ATF eventually, but for now will be integrated in as plain C tests MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate contrib/netbsd-tests/kernel/t_lockf.c into the FreeBSD test suite asngie2015-11-161-0/+6
| | | | | | | tests/sys/kern/lockf_test MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate acct(2) testcase in as tests/sys/kern/acct/acct_testngie2015-11-163-0/+255
|\ | | | | | | | | | | | | | | | | The :encode_tv_random_million testcase fails the epsilon tests a few thousand times out of one million, so expect the testcase to fail MFC after: 1 week Submitted by: keramida Sponsored by: EMC / Isilon Storage Division
| * Integrate kern/kern_acct.c testcase in as tests/sys/kern/acct/acct_testngie2015-11-163-0/+255
| | | | | | | | | | | | | | | | | | The :encode_tv_random_million testcase fails the epsilon tests few thousand times out of one million, so expect the testcase to fail MFC after: 1 week Submitted by: keramida Sponsored by: EMC / Isilon Storage Division
| * Enable pjdfstest in the FreeBSD test suite by default to get somengie2015-11-161-3/+1
|/ | | | | | coverage on the root file system Sponsored by: EMC / Isilon Storage Division
* Add tests for the copyin(9) handling of illegal buffers.kib2015-10-192-0/+87
| | | | | | Reviewed by: emaste, ngie Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D3925
*-. Integrate tools/regression/acltools into the FreeBSD test suite as tests/sys/aclngie2015-10-1715-0/+3343
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make the requirements more complete for the testcases - Detect prerequisites so the tests won't fail (zfs.ko is loaded, zpool(1) is available, ACL support is enabled with UFS, etc). - Work with temporary files/directories/mountpoints that work with atf/kyua - Limit the testcases to work on temporary filesystems to reduce tainting the test host MFC after: 2 weeks Reviewed by: trasz (earlier version) Differential Revision: https://reviews.freebsd.org/D3810
| \ \
| \ \
*-. \ \ Integrate tools/test/posixshm and tools/regression/posixshm into the FreeBSDngie2015-10-173-0/+637
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test suite as tests/sys/posixshm Some other highlights: - Convert the testcases over to ATF - Don't use hardcoded paths to /tmp (which violate the ATF/kyua samdbox); use mkstemp to generate temporary paths for non-SHM_ANON shm objects. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
| | * | | Unify posixshm.c and shm_test.cngie2015-10-176-983/+740
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | Convert both testcases over to ATF Don't use hardcoded paths to /tmp; use mkstemp to generate temporary paths for non-SHM_ANON created shm objects.
| | * | Add Makefile missed in r289236ngie2015-10-141-0/+29
| | | |
| | * | Redirect all stdout from run to stderr so failures can be debuggedngie2015-10-145-7/+7
| | |/
| | * Integrate tools/regression/acltools into tests/sys/aclngie2015-10-1314-0/+3314
| | |\ | | | | | | | | | | | | Apply patches I've been running for months on my GitHub project
| | | * Integrate tools/regression/acltools into tests/sys/aclngie2015-10-0514-0/+3314
| | | | | | | | | | | | | | | | Apply patches I've been running for months on my GitHub project
| | | * Fix compilation with -Werror + -Wsigned enabledngie2015-10-051-6/+4
| | | |
| | | * MFhead @ r288313ngie2015-09-272-24/+206
| | | |\
| | | * \ MFhead @ r286584ngie2015-08-104-98/+674
| | | |\ \
| | | * \ \ MFhead @ r285904ngie2015-07-273-13/+14
| | | |\ \ \
| | | * | | | Fix some -Wunused warningsngie2015-06-141-1/+1
| | | | | | |
| | | * | | | Fix Makefilengie2015-06-141-2/+2
| | | | | | |
| | | * | | | MF head @ r284358ngie2015-06-133-30/+54
| | | |\ \ \ \
| | | * \ \ \ \ Readd fresh copies of the directories from head using svn copyngie2015-05-3134-0/+7300
| | | |\ \ \ \ \
| | | * | | | | | Nuke some broken directoriesngie2015-05-3134-7300/+0
| | | | | | | | |
| | | * | | | | | MF head @ r283796ngie2015-05-311-0/+246
| | | |\ \ \ \ \ \ | | | | |/ / / / /
| | | * | | | | | MFhead @ r283351ngie2015-05-2421-43/+460
| | | |\ \ \ \ \ \
| | | * \ \ \ \ \ \ Try and fix filenames to diff reduce with headngie2015-04-272-0/+0
| | | |\ \ \ \ \ \ \
| | | * | | | | | | | Remove tests/sys/mmapngie2015-04-272-112/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I changed my mind and integrated it into tests/sys/kern instead of tests/sys/mmap, because the former location made more sense, and there was only 1 test program to account for in the latter (and original) location
| | | * | | | | | | | MFhead @ r282076ngie2015-04-273-1/+106
| | | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / /
| | | * | | | | | | | Add missing newline for SKIP planngie2015-04-251-1/+1
| | | | | | | | | | |
| | | * | | | | | | | MFhead @ r281924ngie2015-04-241-1/+1
| | | |\ \ \ \ \ \ \ \
| | | * | | | | | | | | sparc64 gcc has -Wcast-align issues as well on sparc64; disable the warning ↵ngie2015-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for all compilers
| | | * | | | | | | | | Fix a warning related to type sizes found by testing on a 32-bit OS ;) (powerpc)ngie2015-04-161-2/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Add more SUBDIR_PARALLEL.bdrewery2015-10-154-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
| | | | | | | | | | | |
| \ \ \ \ \ \ \ \ \ \ \
*-. \ \ \ \ \ \ \ \ \ \ \ 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
| |_|_|_|_|_|/ |/| | | | | |
OpenPOWER on IntegriCloud