Skip to content

Commit

Permalink
tests: Add SRv6 SID Manager mem leak testcase
Browse files Browse the repository at this point in the history
Signed-off-by: Carmine Scarpitta <[email protected]>
  • Loading branch information
cscarpitta committed Sep 6, 2024
1 parent c6c8efb commit c7f4753
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,16 @@ def test_ping():
check_ping("rt1", "fc00:0:9::1", True, 10, 1)


# Memory leak test template
def test_memory_leak():
"Run the memory leak test and report results."
tgen = get_topogen()
if not tgen.is_memleak_enabled():
pytest.skip("Memory leak test/report is disabled")

tgen.report_memory_leaks()


if __name__ == "__main__":
args = ["-s"] + sys.argv[1:]
sys.exit(pytest.main(args))

0 comments on commit c7f4753

Please sign in to comment.