mirror_frr/tests
Renato Westphal 52a7c25e63 tests, isisd: add IS-IS SPF unit tests
Now that the IS-IS SPF code is more modular, write some unit tests
for it.

This commit includes a new test program called "test_isis_spf" which
can load any test topology (there are 13 different ones available)
and run SPF on any desired node. In the future this same test program
and topologies will also be used to test reverse SPF and TI-LFA.

The "test_common.c" file contains helper functions used to parse the
topology descriptions from "test_topologies.c" into LSP databases
that can be used as an input to the SPF code.

This commit also introduces the F_ISIS_UNIT_TEST flag which is used
to prevent the IS-IS code from scheduling any event when running
under the context of an unit test.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-08-26 20:16:19 -03:00
..
bgpd *: record transaction based on control flag 2020-08-20 14:12:04 -07:00
helpers *: record transaction based on control flag 2020-08-20 14:12:04 -07:00
isisd tests, isisd: add IS-IS SPF unit tests 2020-08-26 20:16:19 -03:00
lib *: record transaction based on control flag 2020-08-20 14:12:04 -07:00
ospf6d build: non-recursive tests 2018-09-08 21:26:54 +02:00
topotests Merge pull request #5799 from pguibert6WIND/flowspec_ipv6 2020-08-26 08:26:46 -04:00
.gitignore tests, isisd: add IS-IS SPF unit tests 2020-08-26 20:16:19 -03:00
Makefile build: non-recursive tests 2018-09-08 21:26:54 +02:00
pytest.ini tests: Exclude topotests from consideration 2018-11-27 20:22:10 -05:00
runtests.py tests: add pytest testrunners 2017-02-13 17:43:47 +01:00
subdir.am tests, isisd: add IS-IS SPF unit tests 2020-08-26 20:16:19 -03:00