diff mbox series

[ovs-dev,v3,5/8] pmd.at: Add test-cases for ovs-actions commands.

Message ID 20211203153301.37692-6-emma.finn@intel.com
State Superseded
Headers show
Series Actions Infrastructure + Optimizations | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed

Commit Message

Finn, Emma Dec. 3, 2021, 3:32 p.m. UTC
From: Kumar Amber <kumar.amber@intel.com>

Added separate test-case for ovs-actions get/set commands:
1023: PMD - ovs-actions configuration

The above added tests are to test the commands which are used
to either get or set the ovs-actions function pointers to
various different implementations like AVX512 or auto-validator
based on different CPU ISA supported.

Signed-off-by: Kumar Amber <kumar.amber@intel.com>

---
v3:
- Removed Emma's sign-off for this commit
---
---
 tests/pmd.at | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
diff mbox series

Patch

diff --git a/tests/pmd.at b/tests/pmd.at
index c875a744f..4384652ff 100644
--- a/tests/pmd.at
+++ b/tests/pmd.at
@@ -1160,3 +1160,23 @@  ovs-appctl: ovs-vswitchd: server returned an error
 
 OVS_VSWITCHD_STOP
 AT_CLEANUP
+
+AT_SETUP([PMD - ovs-actions configuration])
+OVS_VSWITCHD_START([], [], [], [--dummy-numa 0,0])
+AT_CHECK([ovs-vsctl add-port br0 p1 -- set Interface p1 type=dummy-pmd])
+
+AT_CHECK([ovs-vsctl show], [], [stdout])
+AT_CHECK([ovs-appctl dpif-netdev/action-impl-get | grep "scalar"], [], [dnl
+  scalar (available: True, active: True)
+])
+
+AT_CHECK([ovs-appctl dpif-netdev/action-impl-get | grep "autovalidator"], [], [dnl
+  autovalidator (available: True, active: False)
+])
+
+AT_CHECK([ovs-appctl dpif-netdev/action-impl-set scalar], [0], [dnl
+action implementation set to scalar.
+])
+
+OVS_VSWITCHD_STOP
+AT_CLEANUP
\ No newline at end of file