From patchwork Wed Nov 25 19:19:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 84555 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D5978A0545; Wed, 25 Nov 2020 20:20:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 21B73C996; Wed, 25 Nov 2020 20:19:28 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 665E1C974; Wed, 25 Nov 2020 20:19:24 +0100 (CET) IronPort-SDR: WMYFiJgD44mTLhyMJcNDfGYXHnqRxN6tkz3umZF8ZMxRoj5wgcRhO0xng9Ty2lJag16Frd4izj mNAmNGYp2xJg== X-IronPort-AV: E=McAfee;i="6000,8403,9816"; a="151447614" X-IronPort-AV: E=Sophos;i="5.78,370,1599548400"; d="scan'208";a="151447614" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2020 11:19:23 -0800 IronPort-SDR: 6bGSL1DOWoJMB7h4xvMtwyXPXZjXo+IzRsTpIlszk3quGSWWCtBjnhXGry/GnDMmCmWL6mDSlV 2w19yYwFUH2A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,370,1599548400"; d="scan'208";a="547413813" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.180]) by orsmga005.jf.intel.com with ESMTP; 25 Nov 2020 11:19:21 -0800 From: Ferruh Yigit To: Thomas Monjalon Cc: Ferruh Yigit , dev@dpdk.org, techboard@dpdk.org, Stephen Hemminger , Bruce Richardson Date: Wed, 25 Nov 2020 19:19:05 +0000 Message-Id: <20201125191908.1867106-4-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201125191908.1867106-1-ferruh.yigit@intel.com> References: <20201125191908.1867106-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 3/6] usertools/setup: remove running built applications X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Running application relies on make based build variable 'RTE_TARGET' to find the location of the applications, which is not valid anymore. Signed-off-by: Ferruh Yigit Tested-by: Conor Walsh --- usertools/dpdk-setup.sh | 52 ++--------------------------------------- 1 file changed, 2 insertions(+), 50 deletions(-) diff --git a/usertools/dpdk-setup.sh b/usertools/dpdk-setup.sh index bcf0c843678f..759f6c096536 100755 --- a/usertools/dpdk-setup.sh +++ b/usertools/dpdk-setup.sh @@ -17,11 +17,6 @@ echo "-------------------------------------------------------------------------- HUGEPGSZ=`cat /proc/meminfo | grep Hugepagesize | cut -d : -f 2 | tr -d ' '` -# -# Application EAL parameters for setting memory options (amount/channels/ranks). -# -EAL_PARAMS='-n 4' - # # Sets QUIT variable so script will finish. # @@ -252,34 +247,6 @@ set_numa_pages() create_mnt_huge } -# -# Run unit test application. -# -run_test_app() -{ - echo "" - echo " Enter hex bitmask of cores to execute test app on" - echo " Example: to execute app on cores 0 to 7, enter 0xff" - echo -n "bitmask: " - read Bitmask - echo "Launching app" - sudo ${RTE_TARGET}/app/test -c $Bitmask $EAL_PARAMS -} - -# -# Run unit testpmd application. -# -run_testpmd_app() -{ - echo "" - echo " Enter hex bitmask of cores to execute testpmd app on" - echo " Example: to execute app on cores 0 to 7, enter 0xff" - echo -n "bitmask: " - read Bitmask - echo "Launching app" - sudo ${RTE_TARGET}/app/testpmd -c $Bitmask $EAL_PARAMS -- -i -} - # # Print hugepage information. # @@ -381,24 +348,10 @@ step1_func() FUNC[7]="set_vfio_permissions" } -# -# Options for running applications. -# -step2_func() -{ - TITLE="Run test application for linux environment" - - TEXT[1]="Run test application (\$RTE_TARGET/app/test)" - FUNC[1]="run_test_app" - - TEXT[2]="Run testpmd application in interactive mode (\$RTE_TARGET/app/testpmd)" - FUNC[2]="run_testpmd_app" -} - # # Other options # -step3_func() +step2_func() { TITLE="Other tools" @@ -410,7 +363,7 @@ step3_func() # # Options for cleaning up the system # -step4_func() +step3_func() { TITLE="Uninstall and system cleanup" @@ -433,7 +386,6 @@ step4_func() STEPS[1]="step1_func" STEPS[2]="step2_func" STEPS[3]="step3_func" -STEPS[4]="step4_func" QUIT=0