diff mbox series

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

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

Checks

Context Check Description
ovsrobot/apply-robot warning apply and check: warning
ovsrobot/github-robot-_Build_and_Test fail github build: failed

Commit Message

Emma Finn Dec. 2, 2021, 4:39 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>
Signed-off-by: Emma Finn <emma.finn@intel.com>
---
 tests/pmd.at | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

0-day Robot Dec. 2, 2021, 5:05 p.m. UTC | #1
Bleep bloop.  Greetings Emma Finn, I am a robot and I have tried out your patch.
Thanks for your contribution.

I encountered some error that I wasn't expecting.  See the details below.


checkpatch:
WARNING: Unexpected sign-offs from developers who are not authors or co-authors or committers: Emma Finn <emma.finn@intel.com>
Lines checked: 51, Warnings: 1, Errors: 0


Please check this out.  If you feel there has been an error, please email aconole@redhat.com

Thanks,
0-day Robot
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