Page MenuHomeFreeBSD

tests/netgraph: Tests for ng_hub
ClosedPublic

Authored by donner on Jun 3 2021, 10:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 10:40 AM
Unknown Object (File)
Fri, Nov 8, 4:08 AM
Unknown Object (File)
Fri, Nov 8, 4:04 AM
Unknown Object (File)
Fri, Nov 8, 3:48 AM
Unknown Object (File)
Fri, Nov 8, 3:46 AM
Unknown Object (File)
Fri, Nov 8, 3:19 AM
Unknown Object (File)
Fri, Nov 8, 1:04 AM
Unknown Object (File)
Tue, Nov 5, 11:09 AM
Subscribers

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
rG FreeBSD src repository
Lint
Lint Not Applicable
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.Jun 9 2021, 9:13 AM
This revision was automatically updated to reflect the committed changes.