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)
Wed, Mar 20, 11:18 PM
Unknown Object (File)
Wed, Mar 20, 11:17 PM
Unknown Object (File)
Wed, Mar 20, 11:17 PM
Unknown Object (File)
Wed, Mar 20, 11:17 PM
Unknown Object (File)
Wed, Mar 20, 11:17 PM
Unknown Object (File)
Wed, Mar 20, 11:17 PM
Unknown Object (File)
Wed, Mar 20, 11:17 PM
Unknown Object (File)
Wed, Mar 20, 11:17 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
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.