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 9547BA0032; Fri, 30 Dec 2022 11:22:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BABF42D0B; Fri, 30 Dec 2022 11:22:40 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 1083E4067B for ; Fri, 30 Dec 2022 11:22:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672395759; x=1703931759; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tGYI1ynzdulUvzZ3ff3LiQtkL4hExEHaQNIMInd7/BY=; b=Z5NeL4rkWmyaFSGwBmmoLrIXd1obizgqvNnON7Z280r8G5rSX6WuQWqt GMgODAAwpqtqHMCnVGLeze8HTL4+QjyN4qjW9gTgD0HaY/NTsWayIUJUx K9TgrHuAIVnlU8QVOuAsE8t4kyhxtH8Ubr7NgQAlNu+GIzwCTnSlisl3Y 7os8oXnHoq9OrA57cUKzuw/JRXvqEHLtMjB50h4Mqc0UTlPXZ1pV2Bwiu YB0h/eCkns6+ZP9HV06oPhgmdW0tnx/wZRlWt8Exntej0b9yj2vw1z9CK 4zdoaLxtWO70m1GIUc5Eqfo0HeOf2eBaCJFxEva7AgxRImDNzHLyklcxI Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="301558600" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="301558600" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:22:38 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="722306732" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="722306732" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:22:36 -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:20:27 +0000 Message-Id: <20221230182028.1004481-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