Skip to content

internet: test: Add Tests for GlobalRouting

I added two tests and renamed the original one. Previously this file made sure that the impl code didnt crash but didn't test anything.I added tests to check the routes built by the GlobalRouteManagerImpl Class

There are 3 Testcases:

  • LinkRoutesTestCase : Checks Default Routes for stub nodes and routes for p2p links
  • LanRoutesTestCase : Checks Network Routes for LAN Topologies. Checks that the Network LSA is handled by GlobalRouteManagerImpl
  • RandomEcmpTestCase : Checks the RandomEcmp Attribute. i.e if equal cost multipath routes are possible build them and use them at random
  • GlobalRoutingProtocolTestCase : Checks the normal operation of GlobalRouting, by looking at the output of the RouteInput() and RouteOutput() for several different paths. This mimics how normal calls to GlobalRouting are made.

The CI will fail for now. due to pending MRs !2466 (merged) !2483 (merged) . The running code can be checked at https://gitlab.com/ShashwatPatni/IPv6GlobalRouting/-/tree/GSoC25?ref_type=heads

Edited by Shashwat Patni

Merge request reports

Loading