test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V3 1/2] tests/multiprocess: add new case according to testplan
@ 2022-12-30 17:37 Song Jiale
  2022-12-30 17:37 ` [dts] [PATCH V3 2/2] test_plans/multiprocess: add 1 cases Song Jiale
  0 siblings, 1 reply; 2+ messages in thread
From: Song Jiale @ 2022-12-30 17:37 UTC (permalink / raw)
  To: dts; +Cc: Song Jiale

add 1 case according to testplan.

Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 tests/TestSuite_multiprocess.py | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py
index 4fdc8c27..4e999004 100644
--- a/tests/TestSuite_multiprocess.py
+++ b/tests/TestSuite_multiprocess.py
@@ -1691,6 +1691,25 @@ class TestMultiprocess(TestCase):
         }
         self.rte_flow(mac_ipv4_symmetric, self.multiprocess_rss_data, **pmd_param)
 
+    def test_multiprocess_port_reset(self):
+        # start testpmd multi-process
+        self.launch_multi_testpmd(
+            proc_type="auto",
+            queue_num=4,
+            process_num=2,
+        )
+        for pmd_output in self.pmd_output_list:
+            pmd_output.execute_cmd("stop")
+        # set secondary process port stop
+        try:
+            self.pmd_output_list[1].execute_cmd("port stop 0")
+            self.pmd_output_list[1].execute_cmd("port reset 0")
+        except Exception as ex:
+            out = self.pmd_output_list[1].get_output()
+            self.verify(
+                "core dump" not in out, "Core dump occurred in the secondary process!!!"
+            )
+
     def test_perf_multiprocess_performance(self):
         """
         Benchmark Multiprocess performance.
@@ -1926,4 +1945,3 @@ class TestMultiprocess(TestCase):
         Run after each test suite.
         """
         self.dut.kill_all()
-        pass
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dts] [PATCH V3 2/2] test_plans/multiprocess: add 1 cases
  2022-12-30 17:37 [dts] [PATCH V3 1/2] tests/multiprocess: add new case according to testplan Song Jiale
@ 2022-12-30 17:37 ` Song Jiale
  0 siblings, 0 replies; 2+ messages in thread
From: Song Jiale @ 2022-12-30 17:37 UTC (permalink / raw)
  To: dts; +Cc: Song Jiale, Jin Ling

add a case to test the testpmd secondary process crash of the pf port.

Signed-off-by: Jin Ling <jin.ling@intel.com>
Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 test_plans/multiprocess_test_plan.rst | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/test_plans/multiprocess_test_plan.rst b/test_plans/multiprocess_test_plan.rst
index bfef1ca9..e44c7551 100644
--- a/test_plans/multiprocess_test_plan.rst
+++ b/test_plans/multiprocess_test_plan.rst
@@ -969,3 +969,25 @@ 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)'
+
+TestCase 1: test_secondary_process_port_reset
+=============================================
+
+test steps
+----------
+
+1. Launch the app ``testpmd``, start primary process and secondary process with the following arguments::
+
+   ./dpdk-testpmd -l 1,2 --proc-type=auto -a 0000:17:00.0  --log-level=ice,7 -- -i  --rxq=4 --txq=4 --num-procs=2 --proc-id=0
+   ./dpdk-testpmd -l 3,4 --proc-type=auto -a 0000:17:00.0  --log-level=ice,7 -- -i  --rxq=4 --txq=4 --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
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-30  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-30 17:37 [dts] [PATCH V3 1/2] tests/multiprocess: add new case according to testplan Song Jiale
2022-12-30 17:37 ` [dts] [PATCH V3 2/2] test_plans/multiprocess: add 1 cases Song Jiale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).