Geneve - reduce unit-test run time 56/10456/2
authorGabriel Ganne <gabriel.ganne@enea.com>
Thu, 8 Feb 2018 10:22:33 +0000 (11:22 +0100)
committerDave Wallace <dwallacelf@gmail.com>
Thu, 8 Feb 2018 22:21:36 +0000 (22:21 +0000)
Reduce the number of tunnels created/destroyed to reduce the load of the tests
without changing the code covered.
These are functional tests, not performance tests.

This reduced the test time down to 10s from 4 minutes on my machine.

Change-Id: Ifcaddc0b0628a21392c5cb247196f56bc28a53a2
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
test/test_geneve.py

index c32302c..a670bc4 100644 (file)
@@ -98,7 +98,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
         add or del tunnels sharing the same mcast dst
         to test geneve ref_count mechanism
         """
-        n_shared_dst_tunnels = 2000
+        n_shared_dst_tunnels = 10
         vni_start = 10000
         vni_end = vni_start + n_shared_dst_tunnels
         for vni in range(vni_start, vni_end):
@@ -124,7 +124,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
         """
         add or del tunnels to test geneve stability
         """
-        n_distinct_dst_tunnels = 200
+        n_distinct_dst_tunnels = 10
         ip_range_start = 10
         ip_range_end = ip_range_start + n_distinct_dst_tunnels
         for dest_ip4n in ip4n_range(cls.mcast_ip4n, ip_range_start,