Page MenuHomeFreeBSD

tests/netgraph: Tests for ng_vlan_rotate
ClosedPublic

Authored by donner on Mon, Jun 7, 1:18 PM.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

donner requested review of this revision.Mon, Jun 7, 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.Tue, Jun 8, 4:00 PM
  • Test too few or too many vlans
This revision now requires review to proceed.Tue, Jun 8, 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.Wed, Jun 9, 11:47 AM
This revision was automatically updated to reflect the committed changes.