summaryrefslogtreecommitdiffstats
path: root/tools/regression/aio/aiotest/aiotest.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r281593,r282071,r282074,r282133,r282134,r282135,r282136,r282137,r282138:ngie2015-05-131-706/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r282071: Integrate tools/regression/mqueue into the FreeBSD test suite as tests/sys/mqueue r282074: Integrate tools/regression/aio/aiotest and tools/regression/aio/kqueue into the FreeBSD test suite as tests/sys/aio r282133: Fill in the copyright boilerplate for the test program r282134: Add initial (unpolished) macros for interfacing with the FreeBSD test suite This is very rough, but will be replaced/redesigned some time soon after I fix the Jenkins breakage I introduced r282135: Use ATF_REQUIRE_KERNEL_MODULE instead of aio_available function r282136: - Use ATF_REQUIRE_KERNEL_MDOULE to require aio(4) - 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 r282137: Use PLAIN_REQUIRE_KERNEL_MODULE to require "mqueuefs" r282138: Adjust CFLAGS to find freebsd_test_suite/macros.h
* MFC r280893:ngie2015-04-251-63/+67
| | | | | | | | | | | | | | | | Cleanup and do minor refactoring before converting testcases to ATF - Convert errx(-1, ..) to errx(1, ..) - Move the aio(4) checks to a single function (aio_available); use modfind(2) instead of depending on SIGSYS (doesn't work when aio(4) support is missing, not documented in the aio syscall manpages). - Use aio_available liberally in the testcase functions - Use mkstemp(3) + unlink(2) instead of mktemp(3) - Fix some -Wunused warnings - Bump WARNS to 6 Submitted by: mjohnston [*] Sponsored by: EMC / Isilon Storage Division
* Fix several warnings.kib2013-07-211-8/+10
| | | | | | | | Fix crash in aio_pty_cleanup() by initializing the pointer before dereferencing. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Add missing headers.kib2010-03-161-0/+3
| | | | MFC after: 3 days
* Print a warning if running as !root for aio_md_test rather than failingrwatson2004-12-061-1/+5
| | | | the test. Privilege is required in order to allocate an md device.
* Add a basic aio functionality regression test, which simply writes andrwatson2004-12-061-0/+693
then reads from a fairly broad range of object types: regular file, fifo, UNIX socketpair, pty, UNIX pipe, and an md device. Not a deep test of functionality, just a basic test that aio_write followed by aio_read returns the correct data in a relatively timely manner. Requested by: phk
OpenPOWER on IntegriCloud