From patchwork Wed Jun 12 11:04:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Wagner X-Patchwork-Id: 13694819 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66EC43D388 for ; Wed, 12 Jun 2024 11:04:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718190292; cv=none; b=eSV6dS/I3LwhjtQoqQVvYaMpLWxGXvCzXmrpO4Gfne6LViTVXcaxFX2ZJH/tCximkY+XZGlwOi3zW7lJVP+N+9OCqgxZ9yqbb8wnIVgPXqX3ga6Wr7BmzD2dWloWhutX5ADr7er1ufdxumZusQoa3PIjcvMVwWo8LcqKi6jhH+A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718190292; c=relaxed/simple; bh=jIclO607Q5ZuE+Vy9MBWG/AhV8PThKNabd4Qq2F86Uw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kVNjPpoTJqPqkGq07jmTf3QYRtU8M+QwicOrFwR013mCpjV1ShdAUWCSFZEqmt1CbllUWNZnFlcmxxuC0b0lSNrlrXTVpMDyZ64W5U91Bd6fDM+Q5mWWzzVCO5ItQF0TVahvL3tc6/Rpv6ZYck9XsyxCU0MRwafHd9SquSUFZ+s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=vqzcDz2S; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=aAvp3nJL; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=vqzcDz2S; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=aAvp3nJL; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="vqzcDz2S"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="aAvp3nJL"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="vqzcDz2S"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="aAvp3nJL" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 68627342AE; Wed, 12 Jun 2024 11:04:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718190289; 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=36798KKAtsQq5shjSYlwyjx48imMjsBb+8mxaI6X+8c=; b=vqzcDz2Snwp8MIbLiKJ7PuQ/ZPVTDwLBgyJpUlvigeMbiqET2P3VGpFmrdYvUlCfDwsUb7 pnG4+BRx89tWkXxofGgvGAeee+86zk1QPG6oJ/0blDWZGOyBytADIsPHRiWc4apDYpqVi7 Pu7pPllhtJvLtWzXE+acJdcjaKdxNhA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718190289; 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=36798KKAtsQq5shjSYlwyjx48imMjsBb+8mxaI6X+8c=; b=aAvp3nJLAX4sithDTE7aTsav9c1B5lI59GB19pPMN/H1rO48nJrteFgd6mtVbxdFOaoSBB y0utpIp6Ob5oyyBQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718190289; 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=36798KKAtsQq5shjSYlwyjx48imMjsBb+8mxaI6X+8c=; b=vqzcDz2Snwp8MIbLiKJ7PuQ/ZPVTDwLBgyJpUlvigeMbiqET2P3VGpFmrdYvUlCfDwsUb7 pnG4+BRx89tWkXxofGgvGAeee+86zk1QPG6oJ/0blDWZGOyBytADIsPHRiWc4apDYpqVi7 Pu7pPllhtJvLtWzXE+acJdcjaKdxNhA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718190289; 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=36798KKAtsQq5shjSYlwyjx48imMjsBb+8mxaI6X+8c=; b=aAvp3nJLAX4sithDTE7aTsav9c1B5lI59GB19pPMN/H1rO48nJrteFgd6mtVbxdFOaoSBB y0utpIp6Ob5oyyBQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 5F30F13AB0; Wed, 12 Jun 2024 11:04:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id nyk7F9GAaWaaDQAAD6G6ig (envelope-from ); Wed, 12 Jun 2024 11:04:49 +0000 From: Daniel Wagner To: Shin'ichiro Kawasaki Cc: Chaitanya Kulkarni , Hannes Reinecke , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, Daniel Wagner Subject: [RFC blktests v2 2/3] nvme/030: only run against kernel soft target Date: Wed, 12 Jun 2024 13:04:43 +0200 Message-ID: <20240612110444.4507-3-dwagner@suse.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240612110444.4507-1-dwagner@suse.de> References: <20240612110444.4507-1-dwagner@suse.de> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.997]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,imap1.dmz-prg2.suse.org:helo]; RCVD_TLS_ALL(0.00)[] X-Spam-Flag: NO X-Spam-Score: -2.80 X-Spam-Level: This tests is exercising the target code and not so much the host side. The problem with nvme/030 is that it depends on interface to interact with the target which is not covered by the standard. Thus we can't run it against a real target. Just skip it when we run against a real target. Signed-off-by: Daniel Wagner --- tests/nvme/030 | 1 + tests/nvme/rc | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/tests/nvme/030 b/tests/nvme/030 index b1ed8bc20908..672487734332 100755 --- a/tests/nvme/030 +++ b/tests/nvme/030 @@ -13,6 +13,7 @@ requires() { _nvme_requires _have_loop _require_nvme_trtype_is_fabrics + _require_kernel_target } set_conditions() { diff --git a/tests/nvme/rc b/tests/nvme/rc index aaa64453fe16..4a2d107bd532 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -219,6 +219,14 @@ _require_kernel_nvme_fabrics_feature() { return 0 } +_require_kernel_target() { + if [[ -n "${nvme_target_control}" ]]; then + SKIP_REASONS+=("Linux kernel soft target not available") + return 1; + fi + return 0 +} + _test_dev_nvme_ctrl() { echo "/dev/char/$(cat "${TEST_DEV_SYSFS}/device/dev")" }