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)
Sat, Apr 20, 4:00 AM
Unknown Object (File)
Mar 20 2024, 11:10 PM
Unknown Object (File)
Mar 20 2024, 11:10 PM
Unknown Object (File)
Mar 20 2024, 11:09 PM
Unknown Object (File)
Mar 20 2024, 11:09 PM
Unknown Object (File)
Mar 20 2024, 11:09 PM
Unknown Object (File)
Mar 20 2024, 11:09 PM
Unknown Object (File)
Mar 20 2024, 11:09 PM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39797
Build 36686: arc lint + arc unit

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.