From patchwork Wed Jun 12 11:04:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Wagner X-Patchwork-Id: 13694822 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 66F1216EC08 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=1718190294; cv=none; b=WSWvvWoFb8+VuszwS9++/PCG638gsoG1GFQMZWNB/ffYv9oO3mG1eXHeqSZ5i84JXNYKKK6n7zgieKRTGT1CHrGpGtuI+VgXRETQrGLLZqGWEDJmUBgOmqlN0VFsG+hPQNMeH9SMWacUV19xa2IJKaCEjSeUDTRLG34bgUBqkzs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718190294; c=relaxed/simple; bh=3glKmUC/QNrTOj7LixpzZwLHEd4Xb2RvQxFV12W4CCw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VXOZtlegOPsjlRUspr4pLbz74H4KJ6CBEz8IcVFaDXwxVMUVJxNYzgjGALQJXr5LngmhawWfG1rflXRoJFYtqLt2fwL0klQTmdpp4MVGidmhfuWDwMx/cD7NWvlIkLwWTVDJFHBm2NJ9vqtp9SZgYxWJ8vSPq/oaDmVyy/hmOqQ= 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=tJV/q19I; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=MypfmEti; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=Ukzd8zMl; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=VvGc9K05; 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="tJV/q19I"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="MypfmEti"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Ukzd8zMl"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="VvGc9K05" Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104: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 5CF59342A9; Wed, 12 Jun 2024 11:04:48 +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; bh=HPrEsNhrIiTbmPWriUWwjbFXqL/xJ8ZfeQ6NuIj/pgg=; b=tJV/q19IKZjeyKh7poBV0R6j6pE+7GUWcHhyI/VELSRtyoThc9sol+RdQpzJx2mFehlYl2 DzXYvHa53w2YIi7Si/c4Pa1FoEvR81bbBMu2Y2TO0TqsIdTXPGGWRJIpaan6TZGcHJftOq eXf+tAc49FKwLGg4W6batHpsMSTAxiw= 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; bh=HPrEsNhrIiTbmPWriUWwjbFXqL/xJ8ZfeQ6NuIj/pgg=; b=MypfmEtic9X9ey2isuqKZobK7QyBIJbHnMN4sPmrJaR/1zSj1nShPdGkvi/oRCEyo/Qrzo ixoBm/+qJdQ5SjDQ== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=Ukzd8zMl; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=VvGc9K05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718190288; 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; bh=HPrEsNhrIiTbmPWriUWwjbFXqL/xJ8ZfeQ6NuIj/pgg=; b=Ukzd8zMlA6aoR1BCKymMmbOlPYabb4TJMb20ul9vgZ3+Ma8sRbU2wgBk4lzzn5F6Cy39F3 48zuv2KIZH9csmqPnCmKOeNHGxqGKse4jKwr7Y8zz/nFvZ7GrFBJaqnuwOPVltNEBW4n7V MRRpyrAkViAC8ikIaBGZ9G84q8yfphE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718190288; 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; bh=HPrEsNhrIiTbmPWriUWwjbFXqL/xJ8ZfeQ6NuIj/pgg=; b=VvGc9K05OdkRqu/q6DrUgHZg8qhSHvNiMO9XbGNC6F7DtN+tqda3e63pZBt3J8S/L+KI0o WW+VZVe15XXD9tAA== 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 51697137DF; Wed, 12 Jun 2024 11:04:48 +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 0QbXE9CAaWaUDQAAD6G6ig (envelope-from ); Wed, 12 Jun 2024 11:04:48 +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 00/03] Add support to run against real target Date: Wed, 12 Jun 2024 13:04:41 +0200 Message-ID: <20240612110444.4507-1-dwagner@suse.de> X-Mailer: git-send-email 2.45.2 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 [-1.40 / 50.00]; BAYES_HAM(-1.39)[90.83%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.de:dkim]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Action: no action X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Queue-Id: 5CF59342A9 X-Spam-Flag: NO X-Spam-Score: -1.40 X-Spam-Level: I've updated this series and added a simple example how to use it. I didn't really know where to put it, so I added this part to new directorty called 'contrib'. Don't know if we want to keep adding environment variables for this or if it would be simpler to pass in a configuration file. The environemnt variable are fairly simple to handle and it works. Adding a configuraiton file adds more code to blktests. changes: v2: - many of the preperation patches have been merged, drop them - added a python script which implements the blktests API - add some documentation how to use it - changed the casing of the environment variables to upper case v1: - initial version - https://lore.kernel.org/linux-nvme/20240318093856.22307-1-dwagner@suse.de/ Daniel Wagner (3): nvme/rc: introduce remote target support nvme/030: only run against kernel soft target contrib: add remote target setup/cleanup script Documentation/running-tests.md | 9 +++ contrib/nvme_target_control.py | 110 +++++++++++++++++++++++++++++++++ contrib/nvmet-subsys.jinja2 | 71 +++++++++++++++++++++ tests/nvme/030 | 1 + tests/nvme/rc | 56 +++++++++++++++-- 5 files changed, 243 insertions(+), 4 deletions(-) create mode 100755 contrib/nvme_target_control.py create mode 100644 contrib/nvmet-subsys.jinja2