Page MenuHomeFreeBSD

tests/netgraph: Tests for ng_vlan_rotate
ClosedPublic

Authored by donner on Jun 7 2021, 1:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 2:37 AM
Unknown Object (File)
Thu, Oct 24, 2:36 AM
Unknown Object (File)
Thu, Oct 24, 2:24 AM
Unknown Object (File)
Tue, Oct 22, 6:07 PM
Unknown Object (File)
Tue, Oct 22, 12:02 PM
Unknown Object (File)
Oct 4 2024, 5:30 AM
Unknown Object (File)
Oct 4 2024, 5:26 AM
Unknown Object (File)
Oct 2 2024, 8:26 AM
Subscribers

Details

Summary

Test functionality of ng_vlan_rotate(4):

  • Rotate 1 to 9 stagged vlans in any possible direction and length
  • Rotate random combinations of ethertypes (8100, 88a8, 9100)
  • Provide too few or too many vlans
Test Plan
# kyua test vlan_rotate
vlan_rotate:basic  ->  passed  [4.400s]
vlan_rotate:ethertype  ->  passed  [1.087s]
vlan_rotate:minmax  ->  passed  [1.936s]
vlan_rotate:reverse  ->  passed  [4.401s]
vlan_rotate:typeether  ->  passed  [1.086s]

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

donner requested review of this revision.Jun 7 2021, 1:18 PM
  • Add reverse tests, going the other direction reverses the rotation
  • Factor out common routines.
This revision is now accepted and ready to land.Jun 8 2021, 4:00 PM
  • Test too few or too many vlans
This revision now requires review to proceed.Jun 8 2021, 9:06 PM
donner edited the test plan for this revision. (Show Details)
This revision was not accepted when it landed; it landed in state Needs Review.Jun 9 2021, 11:47 AM
This revision was automatically updated to reflect the committed changes.