summaryrefslogtreecommitdiff
path: root/tests/topotests/config_timing
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-12-14 12:53:53 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-12-15 11:15:33 -0500
commit9a5602b8ed58000f343ebdf548d495b02febcc81 (patch)
tree33b0eb3ad6041315c98adf885972b166b1133b82 /tests/topotests/config_timing
parent478c62e21d8773a7cba41b12d981eabf01d53ef5 (diff)
tests: Limit run of config_timing when building with --enable-address-sanitizer
Building FRR with --enable-address-sanitizer and then running the config_timing test makes the test run for over an hour on my machine. The goal of this test is to ensure that the test runs 10000 routes in/out in a reasonable amount of time. We cannot test this with address-sanitizer enabled. So just make the test meaningless from a timing perspective but keep it `alive` from a it might catch some address sanitizer issue with 50 -vs- 10000 routes Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/topotests/config_timing')
-rw-r--r--tests/topotests/config_timing/test_config_timing.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/topotests/config_timing/test_config_timing.py b/tests/topotests/config_timing/test_config_timing.py
index 7ab8619b01..0e5508b56d 100644
--- a/tests/topotests/config_timing/test_config_timing.py
+++ b/tests/topotests/config_timing/test_config_timing.py
@@ -161,8 +161,17 @@ def test_static_timing():
return tot_delta
+
# Number of static routes
- prefix_count = 10000
+ router = tgen.gears["r1"]
+ output = router.run("vtysh -h | grep address-sanitizer")
+ if output == "":
+ logger.info("No Address Sanitizer, generating 10000 routes")
+ prefix_count = 10000
+ else:
+ logger.info("Address Sanitizer build, only testing 50 routes")
+ prefix_count = 50
+
prefix_base = [
[u"10.0.0.0/8", u"11.0.0.0/8"],
[u"2100:1111:2220::/44", u"2100:3333:4440::/44"],