<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/common, branch release/14.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-08-22T19:01:33Z</updated>
<entry>
<title>vnet tests: verify that we can load if_epair and if_bridge</title>
<updated>2024-08-22T19:01:33Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-07-18T20:36:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=09d61b28a00a0645087859ca124c17499c6941e1'/>
<id>urn:sha1:09d61b28a00a0645087859ca124c17499c6941e1</id>
<content type='text'>
We're going to start running many of the vnet tests in nested jails (so they
can run in parallel). That means the tests won't be able to load kernel modules,
which we commonly do for if_epair and if_bridge.

Just assume that all vnet tests need this, because so many of them do that we
don't want to manually annotate all of them.
This is essentially a no-op on non-nested tests.

Do the same for the python test framework.

While here also have pflog_init actually call pft_init. While having pflog
loaded implies we have pf too pft_init also checks for vimage support, and now
for if_epair.

Reviewed by:	markj
MFC after:	1 month
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46039

(cherry picked from commit ae8d58814089308028046ac80aeeb9cbb784bd0a)
</content>
</entry>
<entry>
<title>vnet tests: check for if_bridge.ko</title>
<updated>2024-06-11T06:03:23Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-06-04T18:02:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c3fe41b3a375bebef2bec5f0a5c2159b4a2ba347'/>
<id>urn:sha1:c3fe41b3a375bebef2bec5f0a5c2159b4a2ba347</id>
<content type='text'>
A number of tests create a bridge, but did not check if if_bridge.ko is loaded.

We usually get away with that, because `ifconfig bridge create` autoloads the
module, but if we run the tests in a jail (e.g. because of kyua's upcoming
execenv.jail.params feature) we can't load the module and these tests can fail.

Check if the module is loaded, skip the test if it is not.

Reviewed by:	markj
MFC after:	1 week
Event:		Kitchener-Waterloo Hackathon 202406
Differential Revision:	https://reviews.freebsd.org/D45487

(cherry picked from commit 480ad4055314efbfff7eedbb34272031d836ba89)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>pf tests: properly destroy renamed interfaces</title>
<updated>2023-01-16T06:23:07Z</updated>
<author>
<name>Kajetan Staszkiewicz</name>
<email>vegeta@tuxpowered.net</email>
</author>
<published>2023-01-16T06:19:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ddcdb534b7669f186184baf164e7647d544f7bd6'/>
<id>urn:sha1:ddcdb534b7669f186184baf164e7647d544f7bd6</id>
<content type='text'>
The pfsync:pbr tests leaves  lot of interfaces when they finish, making
other tests slower due to long time of loading scapy from pft_ping.py
when more interfaces are present. When both sides of epair are assigned
to jails, they are both removed from created_interfaces.lst and thus
won't be removed during cleanup from this file. An interface assigned to
jail is stored in created_jails.lst but if it is renamed, it won't be
cleaned up either. Furthermore this test uses identical names for
multiple interfaces across multiple jails which after destroying those
jails adds to overall confusion.

To address this issue a new function is provided for renaming interfaces
in jails and storing their new names in created_jails.lst for deletion
during cleanup.

MFC after:	1 week
Sponsored by:	InnoGames GmbH
Differential Revision:	https://reviews.freebsd.org/D38024
</content>
</entry>
<entry>
<title>tests/divert: use PF_DIVERT</title>
<updated>2022-12-26T20:02:45Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2022-12-26T19:10:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5e4ae3061f27039ccc13b4d08004bdaf369f291c'/>
<id>urn:sha1:5e4ae3061f27039ccc13b4d08004bdaf369f291c</id>
<content type='text'>
Now all Python ports has been patched to support PF_DIVERT, and
Python kinda promises to add support in 3.12 [1].

This reverts commit 322b5b7c16666c40d2763f18c1a51e6f0580d4e9.

[1] https://github.com/python/cpython/pull/96536#issuecomment-1303974686
</content>
</entry>
<entry>
<title>tests: partial revert of 4627bc1e90fd17c8d4f44de6b932d456b67661fc</title>
<updated>2022-09-07T03:54:49Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2022-09-07T03:54:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=322b5b7c16666c40d2763f18c1a51e6f0580d4e9'/>
<id>urn:sha1:322b5b7c16666c40d2763f18c1a51e6f0580d4e9</id>
<content type='text'>
Python's socketmodule isn't able to construct sockaddr when it doesn't
recognize the address family.  Until this is solved in python let the
tests use the compatibility way to create divert(4) socket.
</content>
</entry>
<entry>
<title>tests: use PF_DIVERT/SOCK_RAW instead of PF_INET/SOCK_RAW/IPPROTO_DIVERT</title>
<updated>2022-08-30T23:24:37Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2022-08-30T23:23:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4627bc1e90fd17c8d4f44de6b932d456b67661fc'/>
<id>urn:sha1:4627bc1e90fd17c8d4f44de6b932d456b67661fc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reenable vnet tests in CI</title>
<updated>2022-05-05T18:38:08Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2022-05-03T22:18:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=adbe6e6435a2d6021d90532d1fc9c6e89db0742a'/>
<id>urn:sha1:adbe6e6435a2d6021d90532d1fc9c6e89db0742a</id>
<content type='text'>
After restoring the associated commits the tests can be enabled again.

This reverts commit 711524d961233cd017ee0fd17e4b87013720f1c8.
This reverts commit c4585b938a04dfb157d7a10fa958be13415145be.

PR:		263767
</content>
</entry>
<entry>
<title>tests: vnet tests started failing in CI, disable temporarily</title>
<updated>2022-05-04T04:19:46Z</updated>
<author>
<name>Marko Zec</name>
<email>zec@FreeBSD.org</email>
</author>
<published>2022-05-04T04:19:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c4585b938a04dfb157d7a10fa958be13415145be'/>
<id>urn:sha1:c4585b938a04dfb157d7a10fa958be13415145be</id>
<content type='text'>
As a fallout of backing out 91f44749c6fe, vnet tests started
failing in CI.  Temporarily broadly disable vnet tests until
specific cases can be resolved, and file a bug.

PR:		263767
Differential Revision:	https://reviews.freebsd.org/D35119
Submitted by:	kbowling
</content>
</entry>
<entry>
<title>tests/net*: destroy interface from inside a jail</title>
<updated>2022-01-25T05:08:03Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2022-01-25T05:08:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=80fc25025ffcb0d369fc0b6d4d272ad6fd3f53c3'/>
<id>urn:sha1:80fc25025ffcb0d369fc0b6d4d272ad6fd3f53c3</id>
<content type='text'>
There is no guarentee that upon return of 'jail -r' all jail resources
will be released.  The test suite used to rely on that.  Recent changes
to the PCB zones made jails delay releasing their resources, which ended
with interface leak in the test suite.

Fix that by executing 'ifconfig foo0 destroy' inside the jail, instead
of doing 'jail -r' and expecting interfaces to pop up back immediately
in the parent jail.

Reviewed by:		kp
Differential revision:	https://reviews.freebsd.org/D33942
</content>
</entry>
</feed>
