Add tests to make sure:
- Default metric is enforced.
- Lowest metric wins.
- Deleting routes by specifying gateway/metric works.
Depends on D57011
Differential D57016
routing: Add tests for metric Authored by pouria on Fri, May 15, 2:09 PM. Tags None Referenced Files
Details
Add tests to make sure:
Depends on D57011 # kyua test -k /usr/tests/Kyuafile sys/net/routing/test_routing sys/net/routing/test_routing:add_default_metric -> passed [0.084s] sys/net/routing/test_routing:add_lowest_metric -> passed [0.111s] sys/net/routing/test_routing:delete_route_with_metric -> passed [0.174s] Results file id is usr_tests.20260515-140531-295066 Results saved to /root/.kyua/store/results.usr_tests.20260515-140531-295066.db 3/3 passed (0 broken, 0 failed, 0 skipped)
Diff Detail
Event TimelineComment Actions All of these tests create a single jail and operate on it. But we could instead use execenv=jail and get kyua to create the VNET jail for us. Then:
Comment Actions Remove mkjail for each test and add execenv=jail to Makefile. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||