summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Pick a random port if a specific one isn't provided on the command linengie2015-04-141-5/+11
| |
| * Test for EPROTOTYPE, not EPROTONOSUPPORTngie2015-04-142-5/+5
| |
| * Use socket, not sockets/ (XXX: reminder to add a sanity check for this later...)ngie2015-04-1428-1/+1
| |
| * Fix WARNS= 6 by removing garbage collecting unused argc/argvngie2015-04-131-1/+1
| |
| |
| \
*-. \ Integrate tools/regression/mqueue into the FreeBSD test suite asngie2015-04-278-0/+577
|\ \ \ | | |/ | | | | | | | | | | | | tests/sys/mqueue MFC after: 1 week
| | * Add mqueue_test.shngie2015-04-131-0/+54
| | |
| | |
| \ \
| \ \
| \ \
*---. \ \ Integrate tools/regression/fifo into the FreeBSD test suite as tests/sys/fifongie2015-04-2714-0/+5256
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and tools/regression/file into the FreeBSD test suite as tests/sys/file MFC after: 1 week
* \ \ \ \ \ Integrate tools/regression/kqueue into the FreeBSD test suite asngie2015-04-2712-0/+1770
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests/sys/kqueue MFC after: 1 week
| \ \ \ \ \ \
| \ \ \ \ \ \
*-. \ \ \ \ \ \ Integrate tools/regression/execve into the FreeBSD test suite asngie2015-04-2711-0/+279
|\ \ \ \ \ \ \ \ | | | |_|_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests/sys/kern/execve MFC after: 1 week
| | * | | | | | Install the proper filesngie2015-04-133-0/+0
| | | |_|/ / / | | |/| | | |
| | * | | | | Add missing Makefiles for fifo and filengie2015-04-132-0/+38
| | | | | | |
| | * | | | | Add $FreeBSD$ RCS tagngie2015-04-121-0/+2
| |/ / / / /
| * | | | | Integrate tools/regression/execve into the FreeBSD test suite as ↵ngie2015-04-1211-0/+277
| | |/ / / | |/| | | | | | | | | | | | | tests/sys/kern/execve
| * | | | Integrate tools/regression/fifo into the FreeBSD test suite as tests/sys/fifongie2015-04-125-0/+2493
| | | | |
| * | | | Integrate tools/regression/mmap into the FreeBSD test suite as tests/sys/mmapngie2015-04-123-0/+113
| | | | |
| * | | | Default to WARNS=6ngie2015-04-121-0/+3
| | |/ / | |/| |
| * | | Integrate tools/regression/file into the FreeBSD test suite as tests/sys/filengie2015-04-118-0/+2725
| | | |
| * | | Add directory iteration piece for tests/sys/mqueuengie2015-04-111-0/+1
| | | |
| * | | Integrate tools/regression/posixshm into the FreeBSD test suite as ↵ngie2015-04-115-0/+825
| | |/ | |/| | | | | | | tests/sys/posixshm
| * | Integrate tools/regression/mqueue into the FreeBSD test suite as ↵ngie2015-04-116-0/+522
| |/ | | | | | | tests/sys/mqueue
| * Integrate tools/regression/kqueue into the FreeBSD test suite as ↵ngie2015-04-1112-0/+1770
| | | | | | | | tests/sys/kqueue
OpenPOWER on IntegriCloud