History log of /src/tests/sys/kern/Makefile (Results 1 – 25 of 406)
Revision Date Author Comments
# 73d9153f 26-Feb-2026 Gleb Smirnoff <glebius@FreeBSD.org>

tests/kern: put ssl_sendfile under MK_OPENSSL != no

Reported by: wosch


# 277539ae 25-Jan-2026 Alan Somers <asomers@FreeBSD.org>

Add tests for pdwait

MFC With: 4d707825bf62ee73a32b615846eff9c4a9bda538
Sponsored by: ConnectWise


# d1e6057f 25-Jan-2026 Alan Somers <asomers@FreeBSD.org>

Add tests for pdrfork

MFC With: 5c2ee618d5ec21f110c4da40e9f17833b2ab8b76
Sponsored by: ConnectWise


# e35df41f 13-Jan-2026 Alan Somers <asomers@FreeBSD.org>

procdesc: Add a test for pid recycling behavior

MFC With: 09984871d8caff9263b955a94bb9fb5354af1b4c
Sponsored by: ConnectWise


# 37d11fde 21-Jan-2026 Gleb Smirnoff <glebius@FreeBSD.org>

tests/kern: add test for SSL_sendfile()


# 94d1731e 03-Dec-2025 Minsoo Choo <minsoochoo0122@proton.me>

Makefile*: remove powerpcspe

As reported on the freebsd-announce mailing list[1] FreeBSD is
continuing to retire 32-bit support. Remove powerpcspe from build
infrastructure.

[1] https://lists.free

Makefile*: remove powerpcspe

As reported on the freebsd-announce mailing list[1] FreeBSD is
continuing to retire 32-bit support. Remove powerpcspe from build
infrastructure.

[1] https://lists.freebsd.org/archives/freebsd-announce/2024-February/000117.html

Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me>
Reviewed by: jhibbits, emaste
Pull request: https://github.com/freebsd/freebsd-src/pull/1914

show more ...


# 3af6f557 09-Aug-2025 Mark Johnston <markj@FreeBSD.org>

tests: Add some regression tests for copy_file_range()

These cover a few bugs that have cropped up, including the ones fixed by
commits 4046ad6bb0e and 2319ca6a0181.

PR: 276045
Reviewed by: rmackl

tests: Add some regression tests for copy_file_range()

These cover a few bugs that have cropped up, including the ones fixed by
commits 4046ad6bb0e and 2319ca6a0181.

PR: 276045
Reviewed by: rmacklem
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D51856

show more ...


# 874385b0 03-Jul-2025 Alan Somers <asomers@FreeBSD.org>

uexterr_gettext: add tests

Add tests for the new extended errno feature.

Sponsored by: ConnectWise
MFC after: 2 weeks
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D51184


# dd81cc2b 09-Jul-2025 Dag-Erling Smørgrav <des@FreeBSD.org>

getdirentries: Return ENOTDIR if not a directory.

This is both more logical and more useful than EINVAL.

While here, also check for VBAD and return EBADF in that case. This can
happen if the under

getdirentries: Return ENOTDIR if not a directory.

This is both more logical and more useful than EINVAL.

While here, also check for VBAD and return EBADF in that case. This can
happen if the underlying filesystem got forcibly unmounted after the
directory was opened. Previously, this would also have returned EINVAL,
which wasn't right but wasn't wrong either; however, ENOTDIR would not
be appropriate.

MFC after: never
Sponsored by: Klara, Inc.
Reviewed by: kevans, kib
Differential Revision: https://reviews.freebsd.org/D51209

show more ...


# 739fc149 03-Jul-2025 Mark Johnston <markj@FreeBSD.org>

tests: Add some regression tests for inotify

Reviewed by: kib
MFC after: 3 months
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D50315


# 5843b8ee 24-Jun-2025 Mark Johnston <markj@FreeBSD.org>

unix/tests: Add a regression test for fd transfer across jails

MFC after: 3 weeks


# a5dac34f 28-May-2025 Mark Johnston <markj@FreeBSD.org>

tests: Add a regression test for commit 7587f6d4840f8

Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D50533


# 46adaf36 02-May-2025 Mark Johnston <markj@FreeBSD.org>

tests: Serialize kern_descrip_test

It can trigger failures in unrelated tests when it modifies the maxfiles
limit.

MFC after: 1 week


# fe9bf4b9 30-Apr-2025 Gleb Smirnoff <glebius@FreeBSD.org>

tests/unix_stream: improve writable test

In addition with non-blocking checks on writability, add blocking once
with help of pthread(3).


# 30e6e008 31-Mar-2025 Igor Ostapenko <igoro@FreeBSD.org>

jail: Add meta and env parameters

Each one is an arbitrary string associated with a jail. It can be set
upon jail creation or added/modified later:

> jail -cm ... meta="tag1=value1 tag2=value2"

jail: Add meta and env parameters

Each one is an arbitrary string associated with a jail. It can be set
upon jail creation or added/modified later:

> jail -cm ... meta="tag1=value1 tag2=value2" env="configuration"

The values are not inherited from the parent jail.

A parent jail can read both metadata parameters, while a child jail can
read only env via security.jail.env sysctl.

The maximum size of meta or env per jail is controlled by the
global security.jail.meta_maxbufsize sysctl. Decreasing it does not
alter the existing meta information.

Each metadata buffer can be handled as a set of key=value\n strings:

> jail -cm ... meta="$(echo k1=v1; echo k2=v2)" env.1=one
> jls meta.k2 env.1 meta.k1

While meta.k1= resets the value to an empty string, the meta.k1 without
the equal sign removes the given key.

Relnotes: yes
Reviewed by: jamie
Tested by: dch
Sponsored by: SkunkWerks GmbH
Differential Revision: https://reviews.freebsd.org/D47668

show more ...


# 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 ...


# 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 ...


# 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 ...


# 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 ...


# 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 ...


12345678910>>...17