From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 5C0B758C4 for ; Tue, 6 Nov 2018 02:59:36 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EE94522B8B; Mon, 5 Nov 2018 20:59:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 05 Nov 2018 20:59:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=Bz2cxA+iAAcrzmSYIwh+isjzC4xkLGputHv5LnJ8RCQ=; b=HLz7Qd6wPinB 8yfCjr2F6xJWxzJkzopYez1H8IGYv6LRreln7vCVAXeHg0KT3JxyG+nMN+1cPQ4T aMltqbs+JbuaRGDunWm0vahAV5c9qQsr1U2XgeeG8WPlys+B0iYp5+Xq5qyxPb1n yXE9gUWpIbp7v/LXRKvrDOWS4K1qgtU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=Bz2cxA+iAAcrzmSYIwh+isjzC4xkLGputHv5LnJ8R CQ=; b=TPfzyGJhDw9tyVa2aZ4N0fEcQ6z6PoMp+VtYBtI+0ElzEAx5PlXQkCZlA ldV4aQuePVR7qhm69X88nidEWgw9ceI/U3D2fTCj3izoV0vSMrIdFp3hhN7+FaT2 MICwg3FuCXoJ8QErG6GaA8PLzEQfIWBGZclYFdxRN2M0bHqa02ozjzidBACIXvWT S6CjJKvfLHfi7y7iGsLOC3QzuZjssmsT6ZbplonMRKnRO4SkMcMeX/MFkHN5BNg2 jl5W/KugEMhRcbtZGdFb3k+iPe3EgNioG8XOWPAgyVqIuP+QTPSx3sY+4qPLBxNJ SR0eGZr99S8vngiF9TXiQ0YpmkqBg== X-ME-Sender: X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id E1116E4624; Mon, 5 Nov 2018 20:59:34 -0500 (EST) From: Thomas Monjalon To: Bruce Richardson Cc: dev@dpdk.org, Luca Boccassi Date: Tue, 06 Nov 2018 02:59:33 +0100 Message-ID: <3203192.f4LorbPn4K@xps> In-Reply-To: <1539366133.8721.47.camel@debian.org> References: <20181012153404.46098-1-bruce.richardson@intel.com> <1539366133.8721.47.camel@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] test/test: allow taking extra arguments from environment 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: , X-List-Received-Date: Tue, 06 Nov 2018 01:59:36 -0000 12/10/2018 19:42, Luca Boccassi: > On Fri, 2018-10-12 at 16:34 +0100, Bruce Richardson wrote: > > When running unit tests automatically, either via script, from meson, > > or otherwise, the same set of options may be used for each run, for > > example to set a standard coremask to be used for all tests. > > > > To facilitate this, this patch adds support for the test binary > > taking > > additional EAL parameters from the environment and appending them to > > the > > argc/argv list passed to eal init. This allows parameter modification > > without having to edit test scripts etc. > > > > There are now two environment variables which can be used for running > > tests: > > * DPDK_TEST - (added previously) passes the test name to be run > > automatically rather than running the app > > interactively. > > Used by "meson test" when running tests individually > > or > > as part of a suite. > > > > * DPDK_TEST_PARAMS - new parameter to specify the commandline > > arguments > > to use with the test binary. For example to run a > > test, > > or tests, on only 16 lcores, and to skip pci scan we > > can > > set this to "-l 0-15 --no-pci". > > > > Signed-off-by: Bruce Richardson > > --- > > doc/guides/rel_notes/release_18_11.rst | 8 ++++++ > > test/test/test.c | 34 > > +++++++++++++++++++++++++- > > 2 files changed, 41 insertions(+), 1 deletion(-) > > Was just thinking that something like this would be useful! > > Tested-by: Luca Boccassi Applied, thanks