Device: Add stats test with AVF
[csit.git] / resources / libraries / robot / shared / default.robot
index 891ef21..dcca1f2 100644 (file)
 | | # 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.