From patchwork Fri Dec 30 18:28:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 121484 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7A7EEA00C3; Fri, 30 Dec 2022 11:30:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7636142D39; Fri, 30 Dec 2022 11:30:23 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 8A6674067B for ; Fri, 30 Dec 2022 11:30:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672396221; x=1703932221; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=F0Cd8vfHRg30DXudcGenpf6lMit+wagQk5Ri6y5Nfdo=; b=QHt2Q1uTZ0fL9ke2MXCppKwfbnuu/SIEstj5o+cI/zPJVZwZBuCS24/n gPvkXvj2DYhq7rlFenO3i+aVewgGgwOXGW/d2SLvJeUUPvPJhw27Hjhjh WIR4C15q5GWIrrmDRd3w/ckdx2pi1t7PNV3qgeft1gOKu+c8+g7Q20tpc /pjkYUD8IGhCXQlWOYtA6HlQV5SkfQsHpUECajMmUrW/SI23EiLewPuPI wnluVcbiohdEPU2csyCrbkLX3er6mrwOIJsQzkR2Z6amE2WCgGCi8bbVh ASRJuBgYOpeV7c3qBHaTu9I7taDYL2bDj6D5xddEeivkxTMITOmwZlI21 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="321260900" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="321260900" 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:21 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="717149121" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="717149121" 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:19 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale , Jin Ling Subject: [dts] [PATCH V3 2/2] test_plans/multiprocess: add 1 case Date: Fri, 30 Dec 2022 18:28:10 +0000 Message-Id: <20221230182810.1004957-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221230182810.1004957-1-songx.jiale@intel.com> References: <20221230182810.1004957-1-songx.jiale@intel.com> MIME-Version: 1.0 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 a case to test the testpmd secondary process crash of the pf port. Signed-off-by: Jin Ling Signed-off-by: Song Jiale Acked-by: Jin Ling Acked-by: Lijuan Tu --- v3: -redesign testplan test_plans/multiprocess_test_plan.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test_plans/multiprocess_test_plan.rst b/test_plans/multiprocess_test_plan.rst index bfef1ca9..d3e60d9e 100644 --- a/test_plans/multiprocess_test_plan.rst +++ b/test_plans/multiprocess_test_plan.rst @@ -969,3 +969,26 @@ 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_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