Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1216941rwr; Thu, 20 Apr 2023 11:33:11 -0700 (PDT) X-Google-Smtp-Source: AKy350YWUzgC4xujJ2qn/jrUrMo7Z169J2X1WAVais4n3rwUhjAs/Dh/xgWlRanXJum6r0RY+oRt X-Received: by 2002:a05:6a20:72a6:b0:eb:69b3:116c with SMTP id o38-20020a056a2072a600b000eb69b3116cmr4061599pzk.52.1682015591468; Thu, 20 Apr 2023 11:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682015591; cv=none; d=google.com; s=arc-20160816; b=VUb3lHL6DwJ6TWTsKQbdCjnT2prolP59mLk6n477J06yi3C6Ej55KrUhcbMn0wwYMf r38YrfTNrcS60iCmmgu6s1IKPut1RntfcK+cJBML1qtWwqhihQkEQvjRa78AxGNv3cbF 1FHlUjRP90ziDVsYEIp+bygFFAAXXLIjuhmR8oCorOToTbqBV7zZ6jloIJbD6NgwNXxo 3Ok5nK0YT7CBt5VdOBU751AtX/PspsNGeNM/XPf+rPaL0CquaZdRxUFEZppBnjb6wiC1 d9fF0ouS2wwj8/Ef8/saMvaFK5HpDaZLeyF1E5JIfty4LCFEPi1LFG0dwPE3dAjMoytb wEDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=64UivdY+JtKHHGrkt+vaul9Etj91J7nvEO+ZQNudNu8=; b=OYIFKqkBYbuEdHus13QVJwDvpwyKtyqV2ipCXAaVB//CQGcI6l/GZ7p/3jE+fDMnCI xsZyUtFyEPy0mcDVKMmQmVMMfm2JAJJeEu49Hk66STViiJwj/+scR3UpxVnboD/5tQB5 5Z0fARVt6EjbUVGi1b/kxEuzHXBzAwHMP/VHpQ8op0NyTDZrm3H/tT2juS45H6Zo/2KK B6dg9d/D5cDEEQOIYwlli3n7ArAL9zqNbhXSCVZBII2FU5G2pP+FbpzWlU7fNFTipYMK xp02bBMPPXlCAdQNZOTio1ZPo4toEtqGjE6xKKoqIxEB2d8dxNqPMYxxLXLU1Y7uGmGz /VDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CdXz1eMq; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a632c0c000000b00524d2e488f8si60029pgs.809.2023.04.20.11.32.59; Thu, 20 Apr 2023 11:33:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CdXz1eMq; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231932AbjDTScI (ORCPT + 99 others); Thu, 20 Apr 2023 14:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231714AbjDTSbn (ORCPT ); Thu, 20 Apr 2023 14:31:43 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62DC13A89; Thu, 20 Apr 2023 11:31:33 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C7AF62195D; Thu, 20 Apr 2023 18:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1682015491; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=64UivdY+JtKHHGrkt+vaul9Etj91J7nvEO+ZQNudNu8=; b=CdXz1eMqo0Py7chQ9mcv/S0IqvOmuzroYofCVdiApFkx+NenRL1iXT4tubdV19nnJOXfqO jN3SNgTqNV+BOcYfv5tlEaOVhfykrvS67OZMvc4FIU1UkHja3nu0cJLBbMxug6ytT+rV4l WezrlXaTWpljTI7396aCIjKzUlSGN08= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1682015491; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=64UivdY+JtKHHGrkt+vaul9Etj91J7nvEO+ZQNudNu8=; b=fqxigBbNWMteZ3FwIWN9YDFjeheHAxVEsWyqHs7X+xgWeTbT0B4H07cB9ppQqi8if5L0uB 9k+fs0APlc+2efBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id AB47513584; Thu, 20 Apr 2023 18:31:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 7KbNKQOFQWS+NAAAMHmgww (envelope-from ); Thu, 20 Apr 2023 18:31:31 +0000 From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki , Daniel Wagner Subject: [PATCH blktests v2 9/9] nvme: Make the number iterations configurable Date: Thu, 20 Apr 2023 20:31:21 +0200 Message-Id: <20230420183121.4489-13-dwagner@suse.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230420183121.4489-1-dwagner@suse.de> References: <20230420183121.4489-1-dwagner@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some tests hard code high values of iterations. This makes them run relatively long compared to the other tests. Introduce a new environment variable nvme_num_iter to allow tune the runtime. Signed-off-by: Daniel Wagner --- tests/nvme/002 | 2 +- tests/nvme/016 | 2 +- tests/nvme/017 | 2 +- tests/nvme/rc | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/nvme/002 b/tests/nvme/002 index 6b8484844b4d..c28035483514 100755 --- a/tests/nvme/002 +++ b/tests/nvme/002 @@ -20,7 +20,7 @@ test() { _setup_nvmet - local iterations=1000 + local iterations="${nvme_num_iter}" local port port="$(_create_nvmet_port "${nvme_trtype}")" diff --git a/tests/nvme/016 b/tests/nvme/016 index 4eba30223a08..c0c31a55b190 100755 --- a/tests/nvme/016 +++ b/tests/nvme/016 @@ -17,7 +17,7 @@ test() { echo "Running ${TEST_NAME}" local port - local iterations=1000 + local iterations="${nvme_num_iter}" local loop_dev local subsys_nqn="blktests-subsystem-1" diff --git a/tests/nvme/017 b/tests/nvme/017 index 0248aee9bc41..e1674508f654 100755 --- a/tests/nvme/017 +++ b/tests/nvme/017 @@ -18,7 +18,7 @@ test() { local port local file_path - local iterations=1000 + local iterations="${nvme_num_iter}" local subsys_name="blktests-subsystem-1" _setup_nvmet diff --git a/tests/nvme/rc b/tests/nvme/rc index 2aa34fb0c9b8..bb135502220a 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -18,6 +18,7 @@ def_hostnqn="$(cat /etc/nvme/hostnqn 2> /dev/null)" def_hostid="$(cat /etc/nvme/hostid 2> /dev/null)" nvme_trtype=${nvme_trtype:-"loop"} nvme_img_size=${nvme_img_size:-"350M"} +nvme_num_iter=${nvme_num_iter:-"100"} _nvme_requires() { _have_program nvme -- 2.40.0