#
ae8d5881 |
| 18-Jul-2024 |
Kristof Provost <kp@FreeBSD.org> |
vnet tests: verify that we can load if_epair and if_bridge
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 lo
vnet tests: verify that we can load if_epair and if_bridge
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
show more ...
|
#
480ad405 |
| 04-Jun-2024 |
Kristof Provost <kp@FreeBSD.org> |
vnet tests: check for if_bridge.ko
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 modu
vnet tests: check for if_bridge.ko
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
show more ...
|
Revision tags: release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
c5e57222 |
| 06-Oct-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
tests: Use ifconfig -j instead of jexec ifconfig.
Reviewed by: kp, asomers Differential Revision: https://reviews.freebsd.org/D42110
|
Revision tags: release/13.2.0 |
|
#
ddcdb534 |
| 16-Jan-2023 |
Kajetan Staszkiewicz <vegeta@tuxpowered.net> |
pf tests: properly destroy renamed interfaces
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
pf tests: properly destroy renamed interfaces
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
show more ...
|
Revision tags: release/12.4.0, release/13.1.0 |
|
#
adbe6e64 |
| 04-May-2022 |
Ed Maste <emaste@FreeBSD.org> |
Reenable vnet tests in CI
After restoring the associated commits the tests can be enabled again.
This reverts commit 711524d961233cd017ee0fd17e4b87013720f1c8. This reverts commit c4585b938a04dfb157
Reenable vnet tests in CI
After restoring the associated commits the tests can be enabled again.
This reverts commit 711524d961233cd017ee0fd17e4b87013720f1c8. This reverts commit c4585b938a04dfb157d7a10fa958be13415145be.
PR: 263767
show more ...
|
#
c4585b93 |
| 04-May-2022 |
Marko Zec <zec@FreeBSD.org> |
tests: vnet tests started failing in CI, disable temporarily
As a fallout of backing out 91f44749c6fe, vnet tests started failing in CI. Temporarily broadly disable vnet tests until specific cases
tests: vnet tests started failing in CI, disable temporarily
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
show more ...
|
#
80fc2502 |
| 25-Jan-2022 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/net*: destroy interface from inside a jail
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
tests/net*: destroy interface from inside a jail
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
show more ...
|
Revision tags: release/12.3.0 |
|
#
e62175df |
| 23-Aug-2021 |
Kristof Provost <kp@FreeBSD.org> |
pf tests: test ALTQ CBQ on top of if_vlan
The main purpose of this test is to verify that we can use ALTQ on top of if_vlan, but while we're here we also exercise the CBQ code. There's already a bas
pf tests: test ALTQ CBQ on top of if_vlan
The main purpose of this test is to verify that we can use ALTQ on top of if_vlan, but while we're here we also exercise the CBQ code. There's already a basis test for HFSC, so it makes sense to test another algorithm while we test if_vlan.
Reviewed by: donner MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D31649
show more ...
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0 |
|
#
b4a4a3b8 |
| 23-Mar-2020 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
Add tests verifying IPv4/IPv6 output for TCP/UDP/raw paths.
Reviewed by: kp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24138
|
#
b33a8b38 |
| 16-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r357966 through r357999.
|
#
095aabf7 |
| 16-Feb-2020 |
Kristof Provost <kp@FreeBSD.org> |
bridge: Basic test case
Very basic bridge test: Set up two jails and test that they can pass IPv4 traffic over the bridge.
Reviewed by: melifaro, philip Sponsored by: The FreeBSD Foundation Differe
bridge: Basic test case
Very basic bridge test: Set up two jails and test that they can pass IPv4 traffic over the bridge.
Reviewed by: melifaro, philip Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23697
show more ...
|
Revision tags: release/12.1.0, release/11.3.0 |
|
#
2aaf9152 |
| 18-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead@r345275
|
#
b18a4cca |
| 05-Mar-2019 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r344786
|
#
844fc3e9 |
| 04-Mar-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r344549 through r344775.
|
#
06aac31a |
| 04-Mar-2019 |
Kristof Provost <kp@FreeBSD.org> |
tests: Move common (vnet) test functions into a common file
The netipsec and pf tests have a number of common test functions. These used to be duplicated, but it makes more sense for them to re-use
tests: Move common (vnet) test functions into a common file
The netipsec and pf tests have a number of common test functions. These used to be duplicated, but it makes more sense for them to re-use the common functions.
PR: 236223
show more ...
|