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 3963245ADE; Tue, 8 Oct 2024 02:29:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D3F4D4027C; Tue, 8 Oct 2024 02:29:58 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 66C3D400D7 for ; Tue, 8 Oct 2024 02:29:58 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20b5affde14so37340765ad.3 for ; Mon, 07 Oct 2024 17:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728347397; x=1728952197; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=2fHAkcrMXzOScTIBSIqVaQf7wzDkNTcxDeBRwj6jStY=; b=MNRLrFGg3oN0Jp8ueyE3/Vw3edofUVWK0R+UnHyq/Sdob90qTTC9fjD0OPuzaAnelb Y2HneL2M1uCDnPShfWKywyDbUIpv5pWWtCoRkUBX5CnzmY2tJieEI4jLs6VX22aIqabh 6Mp1wScKfNF7gCmMZ3nhGfJYargsbOiwxj09ocNxuMcvTqweqnVNMz71JnBipUcrOOku ZCxfkEfgchPetaCdqKUI13gNf0x6Yrmd7my8yHQ3bB9+DKpOPwGDyNIW48C4N2ynh386 1qUBSo3BTTeZbbSol8qF1cdkLSEShLiLS8GfjnSg7ycBbwyfOc+r9PsMZhz5PbGohqNw MVdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728347397; x=1728952197; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2fHAkcrMXzOScTIBSIqVaQf7wzDkNTcxDeBRwj6jStY=; b=lwDjXDHgUehbFiyGAHncD9WtU9gp1UGJ4JfxZgYE7S0BiLCyAPo1ZwlbLW4EfRQGWD 1sotf1+KI6IWctC4nWaAV2Dgu0ABnKxtCACryDUhryo0jRizv9C6f1Th+gX028wAzeke Il7YeV5ZikraCR6z/pRaCSgZNhLiUwM6Tx3caDLrSCrO9tKprwq2SAVfEIg4jaDymA6Y xErDm/6LZJG1VUsup20aDwjQRhNYlyTFvzF3wqesh0YF0ApOqPQ8/y5JoGOA0t1ypeiG qFTWvkMYHX4Vle0QhBG6IY8IPSo0GyAWWMiDULwiBx+RZNJ2VJcIM1nqzIWc17B7BTEG /MqA== X-Gm-Message-State: AOJu0Yziv1JcZFBvnIjjYcbmhN58hpu5dbqkH7O28WbTs9TLOVq31s+R Uq1yiIJVb243hvMA38H0KGnYN1/0Uc0tkt8aOl00b1nn8ADYNHM68wibhn2cElI= X-Google-Smtp-Source: AGHT+IH1LlJgfTGwiyl4M7FDu7dl5SwjO76kcz4XiBqEwTOutjM+602UU+rz804mj4njq/uAqRH1aw== X-Received: by 2002:a17:902:c94a:b0:20b:968e:2585 with SMTP id d9443c01a7336-20bfdf80044mr252546285ad.6.1728347397600; Mon, 07 Oct 2024 17:29:57 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c138d05besm45347045ad.111.2024.10.07.17.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 17:29:57 -0700 (PDT) Date: Mon, 7 Oct 2024 17:29:55 -0700 From: Stephen Hemminger To: Bruce Richardson Cc: dev@dpdk.org Subject: Re: [RFC PATCH] app/test: allow passing a parameter string to autotests Message-ID: <20241007172955.0fe5a4b4@hermes.local> In-Reply-To: <20231215130656.247582-1-bruce.richardson@intel.com> References: <20231215130656.247582-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Fri, 15 Dec 2023 13:06:56 +0000 Bruce Richardson wrote: > 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. > > 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. > > Signed-off-by: Bruce Richardson LGTM Maybe add an example to an existing test Acked-by: Stephen Hemminger