X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=resources%2Flibraries%2Frobot%2Fshared%2Fdefault.robot;h=58c2189b9b40a417df82948e5b3330b02ff00b7d;hb=4a0b0f2b633bb9fd15a7dc8357650a9ac7846edd;hp=891ef2192c4717014514b8bf1648ce90fe9d8a80;hpb=f0e964d35af36f0923c6ae0421e74d94022cadba;p=csit.git diff --git a/resources/libraries/robot/shared/default.robot b/resources/libraries/robot/shared/default.robot index 891ef2192c..58c2189b9b 100644 --- a/resources/libraries/robot/shared/default.robot +++ b/resources/libraries/robot/shared/default.robot @@ -29,6 +29,7 @@ | Library | resources.libraries.python.InterfaceUtil | Library | resources.libraries.python.IPUtil | Library | resources.libraries.python.IPv6Util +| Library | resources.libraries.python.IrqUtil | Library | resources.libraries.python.NodePath | Library | resources.libraries.python.Namespaces | Library | resources.libraries.python.PapiHistory @@ -94,6 +95,34 @@ | | # Parens are there to perform the call. | | Run Keyword If | $resetter | Evaluate | $resetter() +| Verify statistic commands +| | [Documentation] +| | ... | Execute several commands related to stats. +| | ... | To be used by "stats" device tests, +| | ... | as other device tests do not interact with stats. +| | +| | ... | The commands should also cover frequently used +| | ... | PAPI (non-stats) commands and CLI commands. +| | +| | ${results}= | Create List +| | ${status} | ${value}= | Run Keyword And Ignore Error +| | ... | VPP Show Runtime On All DUTs | ${nodes} +| | Append To List | ${results} | ${status} +| | ${status} | ${value}= | Run Keyword And Ignore Error +| | ... | Show Statistics On All DUTs | ${nodes} +| | Append To List | ${results} | ${status} +| | ${status} | ${value}= | Run Keyword And Ignore Error +| | ... | Show Event Logger On All DUTs | ${nodes} +| | Append To List | ${results} | ${status} +| | ${status} | ${value}= | Run Keyword And Ignore Error +| | ... | VPP Clear Runtime On All DUTs | ${nodes} +| | Append To List | ${results} | ${status} +| | ${status} | ${value}= | Run Keyword And Ignore Error +| | ... | Clear Statistics On All DUTs | ${nodes} +| | Append To List | ${results} | ${status} +| | Should Not Contain Match | ${results} | FAIL +| | ... | msg=At least one of statistic commands failed! + | Workers From Physical Cores | | [Documentation] | | ... | Convert from core count to worker count. @@ -248,7 +277,7 @@ | | | ${thr_count_int}= | Run Keyword If | ${smt_used} | | | ... | Evaluate | int(${cpu_count_int}*2) | | | ... | ELSE | Set variable | ${thr_count_int} -| | | ${rxq_ratio} = | Get Variable Value | \${rxq_ratio} | ${2} +| | | ${rxq_ratio} = | Get Variable Value | \${rxq_ratio} | ${1} | | | ${rxq_count_int}= | Run Keyword If | ${rx_queues} | | | ... | Set variable | ${rx_queues} | | | ... | ELSE | Evaluate | int(${thr_count_int}/${rxq_ratio}) @@ -317,7 +346,7 @@ | | | ${thr_count_int}= | Run Keyword If | ${smt_used} | | | ... | Evaluate | int(${cpu_count_int}*2) | | | ... | ELSE | Set variable | ${thr_count_int} -| | | ${rxq_ratio} = | Get Variable Value | \${rxq_ratio} | ${2} +| | | ${rxq_ratio} = | Get Variable Value | \${rxq_ratio} | ${1} | | | ${rxq_count_int}= | Run Keyword If | ${rx_queues} | | | ... | Set variable | ${rx_queues} | | | ... | ELSE | Evaluate | int(${thr_count_int}/${rxq_ratio})