aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix PR kern/185813 "SOCK_SEQPACKET AF_UNIX sockets with asymmetricalAlan Somers2014-03-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | buffers drop packets". It was caused by a check for the space available in a sockbuf, but it was checking the wrong sockbuf. sys/sys/sockbuf.h sys/kern/uipc_sockbuf.c Add sbappendaddr_nospacecheck_locked(), which is just like sbappendaddr_locked but doesn't validate the receiving socket's space. Factor out common code into sbappendaddr_locked_internal(). We shouldn't simply make sbappendaddr_locked check the space and then call sbappendaddr_nospacecheck_locked, because that would cause the O(n) function m_length to be called twice. sys/kern/uipc_usrreq.c Use sbappendaddr_nospacecheck_locked for SOCK_SEQPACKET sockets, because the receiving sockbuf's size limit is irrelevant. tests/sys/kern/unix_seqpacket_test.c Now that 185813 is fixed, pipe_128k_8k fails intermittently due to 185812. Make it fail every time by adding a usleep after starting the writer thread and before starting the reader thread in test_pipe. That gives the writer time to fill up its send buffer. Also, clear the expected failure message due to 185813. It actually said "185812", but that was a typo. PR: kern/185813 Reviewed by: silence from freebsd-net@ and rwatson@ MFC after: 3 weeks Sponsored by: Spectra Logic Corporation Notes: svn path=/head/; revision=262867
* Preserve naming consistency for test cases.Peter Holm2014-03-051-3/+3
| | | | | | | | Pointed out by: jmmv Sponsored by: EMC / Isilon storage division Notes: svn path=/head/; revision=262781
* Changed name of test case to a more descriptive one and movedPeter Holm2014-03-041-10/+8
| | | | | | | | | | comment to the "descr" property. Suggested by: jmmv Sponsored by: EMC / Isilon storage division Notes: svn path=/head/; revision=262730
* Added a regression test for r234131.Peter Holm2014-02-262-1/+82
| | | | | | | | Discussed with: asomers Sponsored by: EMC / Isilon storage division Notes: svn path=/head/; revision=262526
* test_eagain_*_* should've been using nonblocking sockets instead ofAlan Somers2014-02-171-1/+1
| | | | | | | | | | | | | blocking sockets. The error was not exposed as long as the kernel suffered from PR kern/185812. Now corrected, these tests pass on DragonFlyBSD 3.6.0. PR: kern/185812 Sponsored by: Spectra Logic Corporation MFC after: 2 weeks Notes: svn path=/head/; revision=262133
* Use DESTDIR for the installation of the /usr/tests/local symlink.Julio Merino2014-02-161-1/+1
| | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=261978
* Install a symlink from /usr/tests/local to /usr/local/tests.Julio Merino2014-02-161-0/+4
| | | | | | | | | | | | | | This is to let Kyua descend into any tests that may have been installed by ports under /usr/local/tests when running the test suite from /usr/tests. Some ports (namely those that build Kyua) already install test programs into /usr/local/tests. Just make sure to select the TEST option while building them. MFC after: 3 days Notes: svn path=/head/; revision=261959
* tests/sys/MakefileAlan Somers2014-02-081-5/+3
| | | | | | | | | | | | | use TESTS_SUBDIRS for kern instead of SUBDIRS. I don't think it makes a difference in this case, but TESTS_SUBDIRS is generally correct for subdirectories that contain tests. Sponsored by: Spectra Logic MFC after: 5 days X-MFC-With: r261133 Notes: svn path=/head/; revision=261615
* Fix the Makefiles so that the tests I submitted in r261081 will actuallyAlan Somers2014-01-242-1/+2
| | | | | | | | | | | get built. Sponsored by: Spectra Logic MFC after: 13 days X-MFC-With: r261081 Notes: svn path=/head/; revision=261133
* Replace the old unix_seqpacket and unix_seqpacket_exercise tests, whichAlan Somers2014-01-233-0/+1140
| | | | | | | | | | | | | | were a little broken and not automatable, with unix_seqpacket_test. It's coverage is a superset of the old tests and it uses ATF. It includes test cases for bugs kern/185813 and kern/185812. PR: kern/185812 PR: kern/185813 Sponsored by: Spectra Logic MFC after: 2 weeks Notes: svn path=/head/; revision=261081
* Install category Kyuafiles from their category directories.Julio Merino2013-11-082-9/+7
| | | | | | | | | | | | | | | | | | | | Move the installation of /usr/tests/lib/Kyuafile from src/tests/lib/ to src/lib/. This is to keep the src/tests/ hierarchy unaware of the rest of the tree, which makes things clearer in general. In particular: 1) Everything related to the construction of /usr/tests/lib/ is kept in src/lib/. There is no need to think about different directories and how they relate to each other. (The same applies for libexec, usr.bin, etc. but these are not yet handled.) 2) src/tests becomes the place to keep cross-functional test programs and nothing else, which also helps in simplifying things. Reviewed by: freebsd-testing Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=257852
* Set up the /usr/tests hierarchy.Rui Paulo2013-10-254-0/+132
Populate /usr/tests with the only test programs that currently live in the tree (those in lib/libcrypt/tests/) and add all the build machinery to accompany this change. In particular: - Add a WITHOUT_TESTS variable that users can define to request that no tests be put in /usr/tests. - Add a top-level Kyuafile for /usr/tests and a way to create similar Kyuafiles in top-level subdirectories. - Add a BSD.tests.dist file to define the directory layout of /usr/tests. Submitted by: Julio Merino jmmv google.com Reviewed by: sjg MFC after: 2 weeks Notes: svn path=/head/; revision=257097