aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/common
Commit message (Collapse)AuthorAgeFilesLines
* vnet tests: check for if_bridge.koKristof Provost2024-06-111-0/+7
| | | | | | | | | | | | | | | | | 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)
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-235-5/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)
* pf tests: properly destroy renamed interfacesKajetan Staszkiewicz2023-01-231-0/+10
| | | | | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit ddcdb534b7669f186184baf164e7647d544f7bd6)
* pf tests: test ALTQ CBQ on top of if_vlanKristof Provost2021-09-011-0/+7
| | | | | | | | | | | | | | 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 (cherry picked from commit e62175df4ec2c8fe2aa2e372f683ddb933768e62)
* tests: Only log critical errors from scapyKristof Provost2021-05-182-0/+4
| | | | | | | | | | | | | | Since 2.4.5 scapy started issuing warnings about a few different configurations during our tests. These are harmless, but they generate stderr output, which upsets atf_check. Configure scapy to only log critical errors (and thus not warnings) to fix these tests. MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit a26e895f3d803cc1f4ee1c2b33c61330998808b9)
* Add tests verifying IPv4/IPv6 output for TCP/UDP/raw paths.Alexander V. Chernikov2020-03-233-0/+126
| | | | | | | | | Reviewed by: kp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24138 Notes: svn path=/head/; revision=359235
* Add basic IPv4/IPv6 forwarding tests.Alexander V. Chernikov2020-03-102-0/+203
| | | | | | | | MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24002 Notes: svn path=/head/; revision=358853
* bridge: Basic test caseKristof Provost2020-02-161-0/+7
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=357998
* Add basic IPDIVERT tests.Alexander V. Chernikov2020-02-142-0/+86
| | | | | | | | Reviewed by: lwhsu,kp Differential Revision: https://reviews.freebsd.org/D23316 Notes: svn path=/head/; revision=357905
* pkgbase: Put the sys/common test into the tests packageEmmanuel Vadot2019-09-051-1/+1
| | | | | | | | | | Every other test is there so do the same for those. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21504 Notes: svn path=/head/; revision=351856
* tests: Move common (vnet) test functions into a common fileKristof Provost2019-03-042-0/+58
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 Notes: svn path=/head/; revision=344764