Skip to content

Commit 9717f47

Browse files
Klement Sekeradwallacelf
authored andcommitted
tests: add extra_vpp_heap_config knob for main-heap-size
Adds overridable class variable to control VPP's memory { main-heap-size } config. Type: improvement Change-Id: I581d296f3dbde2d4ed2ffac15b7713d580f7cd12 Signed-off-by: Klement Sekera <ksekera@netgate.com>
1 parent 4b2803a commit 9717f47

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

test/asf/asfframework.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ class VppAsfTestCase(CPUInterface, unittest.TestCase):
324324
extra_vpp_statseg_config = ""
325325
extra_vpp_config = []
326326
extra_vpp_plugin_config = []
327+
extra_vpp_heap_config = None
327328
logger = null_logger
328329
vapi_response_timeout = 5
329330
remove_configured_vpp_objects_on_tear_down = True
@@ -457,6 +458,20 @@ def setUpConstants(cls):
457458
cls.vpp_cmdline.extend(
458459
[
459460
"}",
461+
]
462+
)
463+
if cls.extra_vpp_heap_config:
464+
cls.vpp_cmdline.extend(
465+
[
466+
"memory",
467+
"{",
468+
"main-heap-size",
469+
cls.extra_vpp_heap_config,
470+
"}",
471+
]
472+
)
473+
cls.vpp_cmdline.extend(
474+
[
460475
"physmem",
461476
"{",
462477
"max-size",

0 commit comments

Comments
 (0)