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)
Tue, Nov 5, 11:09 AM
Unknown Object (File)
Fri, Oct 25, 1:57 PM
Unknown Object (File)
Wed, Oct 23, 11:53 PM
Unknown Object (File)
Mon, Oct 14, 3:07 PM
Unknown Object (File)
Thu, Oct 10, 3:26 AM
Unknown Object (File)
Oct 4 2024, 11:21 PM
Unknown Object (File)
Oct 3 2024, 6:19 AM
Unknown Object (File)
Oct 1 2024, 1:20 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.