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 513B143B62; Wed, 21 Feb 2024 12:02:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD0F9402D1; Wed, 21 Feb 2024 12:02:52 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 2E688402CE for ; Wed, 21 Feb 2024 12:02:52 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 06490206C1; Wed, 21 Feb 2024 12:02:52 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [RFC PATCH] app/test: allow passing a parameter string to autotests X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 21 Feb 2024 12:02:49 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F23F@smartserver.smartshare.dk> In-Reply-To: <20231215130656.247582-1-bruce.richardson@intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC PATCH] app/test: allow passing a parameter string to autotests Thread-Index: AdovV592EvKQG4oWRF2uNuqKs6Rf8A1XPdsg References: <20231215130656.247582-1-bruce.richardson@intel.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Bruce Richardson" , X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > From: Bruce Richardson [mailto:bruce.richardson@intel.com] > Sent: Friday, 15 December 2023 14.07 >=20 > Sometimes it can be nice to have autotests which can take a parameter, > or can be tweaked in some ways, e.g. adjust the number of iterations, > or > the burst size used in the test. Currently there is no way to do so - > all test parameters are hardcoded, which makes sense for a generic > regression test to be run quickly, but is a bit lacking for those > looking to use unit tests for investigations. >=20 > To that end, we can all the commandline to accept an additional string > parameter after each autotest name, and make that available via global > variable. Any test which wishes to make use of this can do so, to = allow > overriding test defaults. >=20 > Signed-off-by: Bruce Richardson > --- This would be useful for the mempool perf test. :-) It would be nice standardizing on a parameter syntax, though. Preferably: ["=3D" ] {" " ["=3D" ]} Acked-by: Morten Br=F8rup