]>
git.proxmox.com Git - mirror_frr.git/blob - tests/topotests/route_scale/test_route_scale2.py
2 # SPDX-License-Identifier: ISC
7 # Copyright (c) 2022 by
13 test_route_scale2.py: Testing route scale
21 from functools
import partial
23 # Save the Current Working Directory to find configuration files.
24 CWD
= os
.path
.dirname(os
.path
.realpath(__file__
))
25 sys
.path
.append(os
.path
.join(CWD
, "../"))
27 # pylint: disable=C0413
28 # Import topogen and topotest helpers
29 from lib
import topotest
30 from lib
.topogen
import Topogen
, TopoRouter
, get_topogen
31 from lib
.topolog
import logger
33 from scale_test_common
import scale_build_common
, scale_setup_module
, route_install_helper
, scale_test_memory_leak
, scale_converge_protocols
, scale_teardown_module
36 pytestmark
= [pytest
.mark
.sharpd
]
39 scale_build_common(tgen
)
41 def setup_module(module
):
42 scale_setup_module(module
)
44 def teardown_module(_mod
):
45 scale_teardown_module(_mod
)
47 def test_converge_protocols():
48 scale_converge_protocols()
50 def test_route_install_1nh():
51 route_install_helper(0)
53 def test_route_install_8nh():
54 route_install_helper(3)
56 def test_route_install_32nh():
57 route_install_helper(5)
59 def test_memory_leak():
60 scale_test_memory_leak()
62 if __name__
== "__main__":
63 args
= ["-s"] + sys
.argv
[1:]
64 sys
.exit(pytest
.main(args
))