Page MenuHomeFreeBSD

tests/netgraph: Tests for ng_bridge
ClosedPublic

Authored by donner on Fri, Jun 4, 6:55 PM.

Details

Summary

Test functionality of ng_bridge(4):

  • replicating traffic to anything but the sending hook
  • persistence
  • detect loops
  • unicast to only one link of many
  • stretch to implementation limits on broadcast
  • uplink in private/classic vlan mode

Depends on D30629

Test Plan
# kyua test bridge
bridge:basic  ->  passed  [0.435s]
bridge:loop  ->  passed  [0.113s]
bridge:many_broadcasts  ->  expected_failure: netgraph queue full (191): 1 checks failed as expected; see output for more details  [12.604s]
bridge:many_unicasts  ->  expected_failure: response too large: 1 checks failed as expected; see output for more details  [54.589s]
bridge:persistence  ->  passed  [0.006s]
bridge:uplink_classic  ->  passed  [0.600s]
bridge:uplink_private  ->  passed  [0.601s]

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

donner requested review of this revision.Fri, Jun 4, 6:55 PM
  • Remove cleanup functions. Does not work as expected.
  • Differentiate the tests by receiving hook expectations
  • Add tests for uplink in private vlan mode
donner edited the test plan for this revision. (Show Details)
  • Test for uplink in classic mode
donner edited the test plan for this revision. (Show Details)
donner edited the summary of this revision. (Show Details)
  • Add msg_handler in order to receive messages to util.
  • Add tests for the amount of learned mac addresses.
  • Either expect known problems not related to ng_brigde or pass if they are fixed.
This revision is now accepted and ready to land.Tue, Jun 8, 9:38 AM
This revision was automatically updated to reflect the committed changes.