Sponsored by: The FreeBSD Foundation
Details
- Reviewers
emaste philip - Group Reviewers
network - Commits
- rGc4bf12b43711: bridge tests: Basic span test
rS359010: bridge tests: Basic span test
Diff Detail
- Lint
Lint Warnings Severity Location Code Message Warning tests/sys/net/if_bridge_test.sh: CHMOD1 Invalid Executable - Unit
No Test Coverage - Build Status
Buildable 29853 Build 27677: arc lint + arc unit
Event Timeline
Isn't this test always going to succeed as long as the span can be removed? Or am I misunderstanding something?
The primary use case for the test is to see if WITNESS or INVARIANTS complain about something, so in that respect at least the test is useful to have.
It would be good to check that the span actually shows traffic though. I'll see if I can repurpose pft_ping.py for this. That should let us send a ping through one interface and verify that we see it on the span interface.
I think adding a test that some traffic actually passes is worthwhile, and probably a comment too about checking for WITNESS/INVARIANTS warnings (since the test does not do that programmatically).
That's implicit. We do that in a lot of tests. An INVARIANTS violation is pretty obvious anyway.