diff options
author | pmikus <pmikus@cisco.com> | 2016-06-24 16:38:03 +0100 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2016-06-30 16:39:10 +0000 |
commit | 5aa03bac1ea4fe07f59c6b294b23fce94a0a805b (patch) | |
tree | 12d643b6aba23703886ecc448f3a307df3d70a71 /resources/libraries | |
parent | d9716ad55cf9d1ec63d4297c9b61134a62d5be64 (diff) |
CSIT-180 Add VPP api trace dump after each TC
- Add VPP api trace dump after each TC
Change-Id: I7c8bc0ffbca620f6fdb48369014a2ca9ffa3b3e4
Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/DUTSetup.py | 20 | ||||
-rw-r--r-- | resources/libraries/robot/default.robot | 7 |
2 files changed, 27 insertions, 0 deletions
diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py index 4731063fba..e2d183fe4e 100644 --- a/resources/libraries/python/DUTSetup.py +++ b/resources/libraries/python/DUTSetup.py @@ -46,6 +46,26 @@ class DUTSetup(object): vat.execute_script("show_version_verbose.vat", node, json_out=False) @staticmethod + def vpp_api_trace_save(node): + """Run "api trace save" CLI command. + + :param node: Node to run command on. + :type node: dict + """ + vat = VatExecutor() + vat.execute_script("api_trace_save.vat", node, json_out=False) + + @staticmethod + def vpp_api_trace_dump(node): + """Run "api trace custom-dump" CLI command. + + :param node: Node to run command on. + :type node: dict + """ + vat = VatExecutor() + vat.execute_script("api_trace_dump.vat", node, json_out=False) + + @staticmethod def setup_all_duts(nodes): """Prepare all DUTs in given topology for test execution.""" for node in nodes.values(): diff --git a/resources/libraries/robot/default.robot b/resources/libraries/robot/default.robot index 2b116f5a7a..81f991bb83 100644 --- a/resources/libraries/robot/default.robot +++ b/resources/libraries/robot/default.robot @@ -34,6 +34,13 @@ | | :FOR | ${dut} | IN | @{duts} | | | Vpp show version verbose | ${nodes['${dut}']} +| Show vpp trace dump on all DUTs +| | [Documentation] | Save API trace and dump output on all DUTs +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp api trace save | ${nodes['${dut}']} +| | | Vpp api trace dump | ${nodes['${dut}']} + | Add '${m}' worker threads and rxqueues '${n}' without HTT to all DUTs | | [Documentation] | Setup M worker threads without HTT and rxqueues N in | | ... | startup configuration of VPP to all DUTs |