Route table check tool
Usage
router_check_tool [-t
] [-c ] [-d] [-p] [–] [–version] [-h] -
Displays test results for failed tests. Omits test names for passing tests if the details flag is set.
-f, —fail-under
Represents a percent value for route test coverage under which the run should fail.
--covall
Enables comprehensive code coverage percent calculation taking into account all the possible asserts. Displays missing tests.
--disable-deprecation-check
Disables the deprecation check for RouteConfiguration proto.
-
Output
The program exits with status EXIT_FAILURE if any test case does not match the expected route parameter value.
If a test fails, details of the failed test cases are printed if flag is provided. The first field is the expected route parameter value. The second field is the actual route parameter value. The third field indicates the parameter that is compared. In the following example, Test_2 and Test_5 failed while the other tests passed. In the failed test cases, conflict details are printed.
Building
The tool can be built locally using Bazel.
Running
Examples
Testing