[V3,2/2] test_plans/multiprocess_iavf: add 1 case

Message ID 20221230184039.1005671-2-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V3,1/2] tests/multiprocess_iavf: add new case according to testplan |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-doc-test success Testing OK
ci/Intel-dts-suite-test fail Testing issues

Commit Message

Jiale, SongX Dec. 30, 2022, 6:40 p.m. UTC
  add a case to test the testpmd primary process and secondary process crash of the vf port.

Signed-off-by: Jin Ling <jin.ling@intel.com>
Signed-off-by: Song Jiale <songx.jiale@intel.com>
---

v3:
-redesign testplan

 test_plans/multiprocess_iavf_test_plan.rst | 47 +++++++++++++++++++++-
 1 file changed, 46 insertions(+), 1 deletion(-)
  

Comments

Jin Ling Dec. 30, 2022, 11:01 a.m. UTC | #1
> -----Original Message-----
> From: Jiale, SongX <songx.jiale@intel.com>
> Sent: 2022年12月31日 2:41
> To: dts@dpdk.org
> Cc: Jiale, SongX <songx.jiale@intel.com>; Ling, Jin <jin.ling@intel.com>
> Subject: [dts] [PATCH V3 2/2] test_plans/multiprocess_iavf: add 1 case
> 
> add a case to test the testpmd primary process and secondary process crash
> of the vf port.
> 
> Signed-off-by: Jin Ling <jin.ling@intel.com>
> Signed-off-by: Song Jiale <songx.jiale@intel.com>
> ---
> 
> v3:
> -redesign testplan
> 
>  test_plans/multiprocess_iavf_test_plan.rst | 47 +++++++++++++++++++++-
>  1 file changed, 46 insertions(+), 1 deletion(-)
> 
Acked-by: Jin Ling<jin.ling@intel.com>
  
Tu, Lijuan Jan. 4, 2023, 1:33 a.m. UTC | #2
On Fri, 30 Dec 2022 18:40:39 +0000, Song Jiale <songx.jiale@intel.com> wrote:
> add a case to test the testpmd primary process and secondary process crash of the vf port.
> 
> Signed-off-by: Jin Ling <jin.ling@intel.com>
> Signed-off-by: Song Jiale <songx.jiale@intel.com>

Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Series applied, thanks
  

Patch

diff --git a/test_plans/multiprocess_iavf_test_plan.rst b/test_plans/multiprocess_iavf_test_plan.rst
index 2f5ae54a..b6222773 100644
--- a/test_plans/multiprocess_iavf_test_plan.rst
+++ b/test_plans/multiprocess_iavf_test_plan.rst
@@ -54,9 +54,11 @@  If using vfio the kernel must be >= 3.6+ and VT-d must be enabled in bios.When
 using vfio, use the following commands to load the vfio driver and bind it
 to the device under test::
 
+   echo 1 > /sys/bus/pci/devices/0000:17:00.0/sriov_numvfs
+   ip link set ens9 vf0 mac 00:11:22:33:44:55
    modprobe vfio
    modprobe vfio-pci
-   usertools/dpdk-devbind.py --bind=vfio-pci device_bus_id
+   usertools/dpdk-devbind.py --bind=vfio-pci {vf_pci}
 
 Assuming that a DPDK build has been set up and the multi-process sample
 applications have been built.
@@ -948,3 +950,46 @@  Test Case: test_multiprocess_negative_exceed_process_num
     the first and second processes should be launched successfully
     the third process should be launched failed and output should contain the following string:
     'multi-process option proc-id(2) should be less than num-procs(2)'
+
+Test Case: test_multiprocess_negative_action
+============================================
+Subcase 1: test_secondary_process_port_stop
+-------------------------------------------
+test steps
+~~~~~~~~~~
+
+1. Launch the app ``testpmd``, start 2 process with the following arguments::
+
+   ./dpdk-testpmd -l 1,2 --proc-type=auto -a 0000:17:01.0  --log-level=ice,7 -- -i  --num-procs=2 --proc-id=0
+   ./dpdk-testpmd -l 3,4 --proc-type=auto -a 0000:17:01.0  --log-level=ice,7 -- -i  --num-procs=2 --proc-id=1
+
+2. stop port in primary process::
+
+    primary process:
+      testpmd> port stop 0
+
+expected result
+~~~~~~~~~~~~~~~
+
+   Check that there are no core dump messages in the output.
+
+Subcase 2: test_secondary_process_port_reset
+--------------------------------------------
+test steps
+~~~~~~~~~~
+
+1. Launch the app ``testpmd``, start 2 process with the following arguments::
+
+   ./dpdk-testpmd -l 1,2 --proc-type=auto -a 0000:17:01.0  --log-level=ice,7 -- -i  --num-procs=2 --proc-id=0
+   ./dpdk-testpmd -l 3,4 --proc-type=auto -a 0000:17:01.0  --log-level=ice,7 -- -i  --num-procs=2 --proc-id=1
+
+2. reset port in secondary process::
+
+    secondary process:
+      testpmd> port stop 0
+      testpmd> port reset 0
+
+expected result
+~~~~~~~~~~~~~~~
+
+   Check that there are no core dump messages in the output.
\ No newline at end of file