Page MenuHomeFreeBSD

tests/netgraph: Tests for ng_hub
ClosedPublic

Authored by donner on Thu, Jun 3, 10:28 PM.

Details

Summary

Test functionality of ng_hub(4):

  • replicting traffic to anything but the sending hook
  • persistence
  • stretch to implementation limits
  • an unrestricted loop

Depends on D30629

Test Plan
# kyua test
hub:basic  ->  passed  [0.273s]
hub:loop  ->  passed  [0.059s]
hub:many_hooks  ->  expected_failure: Implementation limitation: 1 checks failed as expected; see output for more details  [19.064s]
hub:persistence  ->  passed  [0.004s]

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

  • Added test for implementation limits with many hooks.
donner edited the test plan for this revision. (Show Details)
donner added reviewers: network, tests.
  • Add root requirement for the test
  • Add cleanup before test to deal with broken or interrupted tests
This revision is now accepted and ready to land.Wed, Jun 9, 9:13 AM
This revision was automatically updated to reflect the committed changes.