Page MenuHomeFreeBSD

tests/netgraph: Tests for ng_hub
ClosedPublic

Authored by donner on Jun 3 2021, 10:28 PM.
Tags
None
Referenced Files
F147287370: D30633.id90605.diff
Mon, Mar 9, 5:14 PM
F147286897: D30633.id90576.diff
Mon, Mar 9, 5:09 PM
F147269128: D30633.id90402.diff
Mon, Mar 9, 2:11 PM
F147257882: D30633.id90434.diff
Mon, Mar 9, 12:18 PM
Unknown Object (File)
Sun, Mar 8, 8:20 PM
Unknown Object (File)
Sun, Mar 8, 8:09 PM
Unknown Object (File)
Sat, Mar 7, 9:30 PM
Unknown Object (File)
Sat, Mar 7, 9:30 PM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39812
Build 36701: arc lint + arc unit

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.