From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D7D1A0032; Fri, 30 Dec 2022 11:30:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6096A40DD8; Fri, 30 Dec 2022 11:30:22 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 7266B4067B for ; Fri, 30 Dec 2022 11:30:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672396220; x=1703932220; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tGYI1ynzdulUvzZ3ff3LiQtkL4hExEHaQNIMInd7/BY=; b=my1FmaioD1K+97eoUVzd/Oz/8O3zvGrV6DVnDlcbmOHvwzkUF6CwIE5X ih05/K4THRiHPalkM/tb+6lk/YYk626FPoYTXgA07EZeTh6eBzq9Kd+X6 cGJ5PPQZJE1kp7vIGqwFM98cYdhTKhfGb3/810uKtQckV54IYTliI+FQd Qphr2uhmpEmRVk9KZGpS/7vLKlGdwRi5RnWcmrxtW2+X03h+Ckw5yrB5X dTMC7harXn3dP7/84E+lFUlE2T1nWLKyAVsrDhOgFAdbD79Pu+RuKUjma 3DnC5dhwwP3CtON6XkmZgP6l7UGmmbD2OhVC1s/6Q2Unxd9JQOsJkbftU g==; X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="321260896" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="321260896" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:30:19 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="717149116" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="717149116" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:30:18 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V3 1/2] tests/multiprocess: add new case according to testplan Date: Fri, 30 Dec 2022 18:28:09 +0000 Message-Id: <20221230182810.1004957-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org add 1 case according to testplan. Signed-off-by: Song Jiale --- v3: -rework the test case according to the new testplan tests/TestSuite_multiprocess.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py index 4fdc8c27..099ce6e7 100644 --- a/tests/TestSuite_multiprocess.py +++ b/tests/TestSuite_multiprocess.py @@ -1691,6 +1691,29 @@ class TestMultiprocess(TestCase): } self.rte_flow(mac_ipv4_symmetric, self.multiprocess_rss_data, **pmd_param) + def test_multiprocess_negative_action(self): + """ + Test Case: test_multiprocess_negative_action + + """ + # 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 +1949,3 @@ class TestMultiprocess(TestCase): Run after each test suite. """ self.dut.kill_all() - pass -- 2.25.1