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 AED1CA0032; Fri, 30 Dec 2022 10:39:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A9A1E40DD8; Fri, 30 Dec 2022 10:39:41 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 56EC94067B for ; Fri, 30 Dec 2022 10:39:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672393180; x=1703929180; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=97NG6NkNoqYdsEsBXslyPOuo7Pp2mihCmxJeYverYF0=; b=ELMwXsH9GYsEoqz5zO4zwisPq0Le5RI7/LJyvM0zmyQboGS9bsiiQNNO akD9Y4RQrqy4z4ISujVldV5AaDWTnVjbw3eU0NOTJ259Kop7h4POhB03X avRNsQn8RcGhWrQ4zm9MS5JlMndmwovLlbiSr1rNRlvbJT3h1omH047Gz vXCTEBeG6PJltb8w4Ll5tIHdEy/xY2AogmOEk2nllPdyFWQfNdZjbJbJ1 3of0j0spIq50keA7IVqTzXXelzX3KaeY+dcI3Ajvs0505gROxGzNqXm+o JTxQ4ewdDsozcwv1XWkdChyUlT8j+PZpvF7cBhDj38KUoj1rcP6YkHymF g==; X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="407450685" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="407450685" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 01:39:39 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="655820299" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="655820299" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 01:39:38 -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 17:37:26 +0000 Message-Id: <20221230173727.1002548-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 --- 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