#
9647bf24 |
| 14-Dec-2024 |
Kyle Evans <kevans@FreeBSD.org> |
tests: kern: add some tests for recently added logsigexit
We don't bother tweaking the sysctl in these tests, we'll just try with it forced both on and off via proccontrol(1). This could be problem
tests: kern: add some tests for recently added logsigexit
We don't bother tweaking the sysctl in these tests, we'll just try with it forced both on and off via proccontrol(1). This could be problematic in the face of pid wrapping if we got really unfortunate, but the potential solutions need careful consideration- you probably don't want to assume a certain velocity of messages into syslog, so just checking the last N lines is probably similarly flakey.
show more ...
|
Revision tags: release/14.2.0 |
|
#
6748d4e0 |
| 26-Nov-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
tests: Add regression test for ppoll() / pselect() race.
These tests demonstrate the bug that was fixed in ccb973da1f1b.
Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc. Reviewed by: markj Diff
tests: Add regression test for ppoll() / pselect() race.
These tests demonstrate the bug that was fixed in ccb973da1f1b.
Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D47738
show more ...
|
#
2cb39df0 |
| 29-Oct-2024 |
Igor Ostapenko <igoro@FreeBSD.org> |
tests: Switch sys/kern/sysctl_security_jail_children to execenv=jail
Kyua skips tests based on the jail execution environment if a system is built WITHOUT_JAIL. Thus, the test case does not need to
tests: Switch sys/kern/sysctl_security_jail_children to execenv=jail
Kyua skips tests based on the jail execution environment if a system is built WITHOUT_JAIL. Thus, the test case does not need to handle it.
Reviewed by: markj Approved by: markj (mentor) Differential Revision: https://reviews.freebsd.org/D47105
show more ...
|
#
096c39fa |
| 21-Oct-2024 |
Kyle Evans <kevans@FreeBSD.org> |
tests: kern: add some porch(1)-based tty tests
If sysutils/porch is installed, we'll do some basic testing of tty behavior. The existing tests primarily cover ICANON-related processing and corner c
tests: kern: add some porch(1)-based tty tests
If sysutils/porch is installed, we'll do some basic testing of tty behavior. The existing tests primarily cover ICANON-related processing and corner cases that have been fixed somewhat recently, but I anticipate growing this out a bit in due time.
Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D46806
show more ...
|
Revision tags: release/13.4.0 |
|
#
877cf210 |
| 10-Sep-2024 |
Mark Johnston <markj@FreeBSD.org> |
tests: Add some test cases for SO_SPLICE
Reviewed by: gallatin MFC after: 3 months Sponsored by: Klara, Inc. Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D46412
|
#
e9ac4169 |
| 15-Jul-2024 |
Warner Losh <imp@FreeBSD.org> |
Remove residual blank line at start of Makefile
This is a residual of the $FreeBSD$ removal.
MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
|
#
ab27e232 |
| 14-Jul-2024 |
Mark Johnston <markj@FreeBSD.org> |
socket tests: Serialize sonewconn_overflow
It relies on being able inspect the dmesg buffer to see whether the kernel logged certain messages. If it's interleaved with tests that generate large amo
socket tests: Serialize sonewconn_overflow
It relies on being able inspect the dmesg buffer to see whether the kernel logged certain messages. If it's interleaved with tests that generate large amounts of console output (e.g., GELI tests), then it can fail spuriously.
MFC after: 2 weeks
show more ...
|
Revision tags: release/14.1.0 |
|
#
6655bec4 |
| 14-Apr-2024 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/unix_stream: test that send(2) of zero bytes is successful
Put this simple test into an existing file. We don't have a designated file for all unix/stream tests. There is extensive unix_seqp
tests/unix_stream: test that send(2) of zero bytes is successful
Put this simple test into an existing file. We don't have a designated file for all unix/stream tests. There is extensive unix_seqpacket_test, but (at least right now) unix/seqpacket is not a superset of unix/stream, but a different implementation. We have one file that does one test for unix/stream - unix_socketpair_test. So rename it to unix_stream and start collecting all unix/stream tests in it.
show more ...
|
#
2f39a986 |
| 06-Apr-2024 |
Jake Freeland <jfree@FreeBSD.org> |
tests: Add ktrace capability violation test cases
Introduce regression tests for ktrace(2) that target capability violations.
These test cases ensure that ktrace(2) records these violations: - CAPF
tests: Add ktrace capability violation test cases
Introduce regression tests for ktrace(2) that target capability violations.
These test cases ensure that ktrace(2) records these violations: - CAPFAIL_NOTCAPABLE - CAPFAIL_INCREASE - CAPFAIL_SYSCALL - CAPFAIL_SIGNAL - CAPFAIL_PROTO - CAPFAIL_SOCKADDR - CAPFAIL_NAMEI - CAPFAIL_CPUSET
A portion of these test cases create processes that do NOT enter capability mode, but raise violations. This is intended behavior. Users may run `ktrace -t p` on non-Capsicumized programs to detect violations that would occur if the process were in capability mode.
Reviewed by: markj Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D40682
show more ...
|
Revision tags: release/13.3.0 |
|
#
bc9107f8 |
| 15-Feb-2024 |
Gleb Smirnoff <glebius@FreeBSD.org> |
socket tests: add listener_wakeup
This test runs several scenarios when sleep(9) on a listen(2)ing socket is interrupted by shutdown(2) or by close(2). What should happen in that case is not specif
socket tests: add listener_wakeup
This test runs several scenarios when sleep(9) on a listen(2)ing socket is interrupted by shutdown(2) or by close(2). What should happen in that case is not specified, neither is documented. However, there is certain behavior that we have and this test makes sure it is preserved. There is software that relies on it, see bug 227259. This test is based on submission with this bug, bugzilla attachment 192260.
The test checks TCP and unix(4) stream socket behavior and SCTP can be added easily if needed.
The test passes on FreeBSD 11 to 15. It won't pass on FreeBSD 10, although the wakeup behavior of shutdown(2) is the same, but it doesn't return error.
PR: 227259
show more ...
|
#
ab0841bd |
| 26-Jan-2024 |
Jamie Gritton <jamie@FreeBSD.org> |
jail: expose children.max and children.cur via sysctl
Submitted by: Igor Ostapenko <igor.ostapenko_pm.me> Differential Revision: <https://reviews.freebsd.org/D43565>
|
#
30189156 |
| 16-Jan-2024 |
Kyle Evans <kevans@FreeBSD.org> |
kern: pts: do not special case closed slave side
This would previously return 1 if the slave side of the pts was closed to force an application to read() from it and observe the EOF, but it's not cl
kern: pts: do not special case closed slave side
This would previously return 1 if the slave side of the pts was closed to force an application to read() from it and observe the EOF, but it's not clear why and this is inconsistent both with how we handle devices with similar mechanics (like pipes) and also with other kernels, such as OpenBSD/NetBSD and Linux.
PR: 239604 Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D43457
show more ...
|
#
e007b89e |
| 12-Jan-2024 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests: add a test for shutdown(2) on a datagram socket
|
#
070d9e35 |
| 16-Nov-2023 |
Gleb Smirnoff <glebius@FreeBSD.org> |
socket tests: add socket_accept
Start with most basic functionality on a TCP socket.
|
Revision tags: release/14.0.0 |
|
#
b67c0ba4 |
| 03-Oct-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
tests: Test that SIGSYS is not delivered if kern.signosys knob is off
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D41979 MFC after: 1 week
|
#
0afcac3e |
| 25-Sep-2023 |
Konstantin Belousov <kib@FreeBSD.org> |
SIGSYS: add tests
Reviewed by: dchagin, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D41976
|
#
38426b32 |
| 31-Aug-2023 |
Mark Johnston <markj@FreeBSD.org> |
socket tests: Add a regression test for MSG_WAITALL
PR: 212716 MFC after: 1 week Sponsored by: The FreeBSD Foundation
|
#
d0b2dbfa |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
#
74192f9b |
| 11-May-2023 |
Pierre Pronchery <pierre@freebsdfoundation.org> |
ktls_test: specify OpenSSL 1.1 API
Reviewed by: emaste Sponsored by: The FreeBSD Foundation
|
Revision tags: release/13.2.0 |
|
#
70bb2286 |
| 08-Dec-2022 |
John Baldwin <jhb@FreeBSD.org> |
ktls_test: Add debug option to hexdump keys, nonces, and buffers.
Reviewed by: markj Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D37509
|
Revision tags: release/12.4.0 |
|
#
e87ff1ea |
| 08-Aug-2022 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/socket: add accept_filter(9) test
Test basic functionality of accf_data(9) and accf_http(9)
|
#
be1f485d |
| 25-Jul-2022 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
sockets: add MSG_TRUNC flag handling for recvfrom()/recvmsg().
Implement Linux-variant of MSG_TRUNC input flag used in recv(), recvfrom() and recvmsg(). Posix defines MSG_TRUNC as an output flag, in
sockets: add MSG_TRUNC flag handling for recvfrom()/recvmsg().
Implement Linux-variant of MSG_TRUNC input flag used in recv(), recvfrom() and recvmsg(). Posix defines MSG_TRUNC as an output flag, indicating packet/datagram truncation. Linux extended it a while (~15+ years) ago to act as input flag, resulting in returning the full packet size regarless of the input buffer size. It's a (relatively) popular pattern to do recvmsg( MSG_PEEK | MSG_TRUNC) to get the packet size, allocate the buffer and issue another call to fetch the packet. In particular, it's popular in userland netlink code, which is the primary driving factor of this change.
This commit implements the MSG_TRUNC support for SOCK_DGRAM sockets (udp, unix and all soreceive_generic() users).
PR: kern/176322 Reviewed by: pauamma(doc) Differential Revision: https://reviews.freebsd.org/D35909 MFC after: 1 month
show more ...
|
#
235d960a |
| 24-Jun-2022 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/unix_passfd: compile SOCK_STREAM and SOCK_DGRAM versions
Most test pass identically on different kinds of sockets. However, few edge cases work differently on stream and datagram sockets. We w
tests/unix_passfd: compile SOCK_STREAM and SOCK_DGRAM versions
Most test pass identically on different kinds of sockets. However, few edge cases work differently on stream and datagram sockets. We want to exercise this and document.
Differential revision: https://reviews.freebsd.org/D35420
show more ...
|
#
2d896da9 |
| 23-May-2022 |
Olivier Cochard <olivier@FreeBSD.org> |
tests/unix_passfd: Prevent running them in parallel
Only the send_and_shutdown test is exclusive, but kyua doesn't allow to prevent parallel execution of a single test.
Approved by: glebius Sponsor
tests/unix_passfd: Prevent running them in parallel
Only the send_and_shutdown test is exclusive, but kyua doesn't allow to prevent parallel execution of a single test.
Approved by: glebius Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D35260
show more ...
|
#
c678572e |
| 17-May-2022 |
Olivier Cochard <olivier@FreeBSD.org> |
Prevent running sigwait tests in parallel
test_sig_discard_ign_* could not run at the same time.
Approved by: dchagin Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D35236
|