From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CDBBC433E2 for ; Thu, 3 Sep 2020 21:26:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC30B206CA for ; Thu, 3 Sep 2020 21:26:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728015AbgICV0q (ORCPT ); Thu, 3 Sep 2020 17:26:46 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:53852 "EHLO mail-wm1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726891AbgICV0o (ORCPT ); Thu, 3 Sep 2020 17:26:44 -0400 Received: by mail-wm1-f46.google.com with SMTP id u18so4226280wmc.3 for ; Thu, 03 Sep 2020 14:26:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=baJOGYhSG0Qs/1LoHCKGaiBtFBXUf1unXiz8REvi8tQ=; b=UgaXq4S0b3l2+yYKkvEFu+8YeF/v/C1QfVo8iailbnEt74gLdEI3VI3THlykLoDJlI dTWGq39crxLMeRWLnejzEK7KVyJOCTHN8cS9eHMk4fRXtbzqPx/dolPHEnKmROqbYmXw j6LuxoT4MriIrSL0K3Cgn52I/fYqs/9JUK0n7Tkd8UHun7ZKmHaWIy+iCdtTprw1haH0 1PpfEQm8Svc6GEv7V75vG5lSebPc5uM5Efc/WKdpaYkbWZACExWS8Y2GpE+JpxajqvuI NW/FyL/PN97JYVjaBLsj00Q/rNzZP7+mMtaOboBMW/orF+SHuiqeSoI5cfNCAUk4hhkL CHrw== X-Gm-Message-State: AOAM5307g38CrzcuRMhmUQxDgf4JO78OxER/Fn953zbwmRiCLqmw2Z6g cgDGwyBp7be9AAU4KB9JGRvaa2ZtUhurtw== X-Google-Smtp-Source: ABdhPJzcXOcddqd94BlJ+9mzeaaEIIZ+1FKo/W4W04mXVUbNnpSIRWO4nbE2Xbmrj62POZ5Lc3jFgA== X-Received: by 2002:a1c:f605:: with SMTP id w5mr4389177wmc.6.1599168401991; Thu, 03 Sep 2020 14:26:41 -0700 (PDT) Received: from localhost.localdomain ([2601:647:4802:9070:79a5:e112:bd7c:4b29]) by smtp.gmail.com with ESMTPSA id v204sm6659896wmg.20.2020.09.03.14.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 14:26:41 -0700 (PDT) From: Sagi Grimberg To: linux-block@vger.kernel.org, Omar Sandoval Cc: linux-nvme@lists.infradead.org, Logan Gunthorpe , Chaitanya Kulkarni , Keith Busch , Christoph Hellwig Subject: [PATCH v6 0/7] blktests: Add support to run nvme tests with tcp/rdma transports Date: Thu, 3 Sep 2020 14:26:27 -0700 Message-Id: <20200903212634.503227-1-sagi@grimberg.me> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org We have a collection of nvme tests, but all run with nvme-loop. This is the easiest to run on a standalone machine. However its very much possible to run nvme-tcp and nvme-rdma using a loopback network. Add capability to run tests with a new environment variable to set the transport type $nvme_trtype. $ nvme_trtype=[loop|tcp|rdma] ./check nvme This buys us some nice coverage on some more transport types. We also add some transport type specific helpers to mark tests that are relevant only for a single transport. Changes from v5: - fix shellcheck errors Changes from v4: - removed extra paranthesis - load either rdma_rxe or siw for rdma transport tests Changes from v3: - remove unload_module from tests/srp/rc - fixed test run cmd Changes from v2: - changed patch 6 to move unload_module to common/rc - changed helper to be named _require_nvme_trtype_is_fabrics Changes from v1: - added patch to remove use of module_unload - move trtype agnostic logig helpers in patch #3 Sagi Grimberg (7): nvme: consolidate nvme requirements based on transport type nvme: consolidate some nvme-cli utility functions nvme: make tests transport type agnostic tests/nvme: restrict tests to specific transports nvme: support nvme-tcp when runinng tests common: move module_unload to common nvme: support rdma transport type common/rc | 13 +++++ tests/nvme/002 | 8 +-- tests/nvme/003 | 10 ++-- tests/nvme/004 | 12 +++-- tests/nvme/005 | 15 +++--- tests/nvme/006 | 7 +-- tests/nvme/007 | 5 +- tests/nvme/008 | 13 ++--- tests/nvme/009 | 11 ++-- tests/nvme/010 | 13 ++--- tests/nvme/011 | 13 ++--- tests/nvme/012 | 14 ++--- tests/nvme/013 | 13 ++--- tests/nvme/014 | 13 ++--- tests/nvme/015 | 12 +++-- tests/nvme/016 | 7 +-- tests/nvme/017 | 7 +-- tests/nvme/018 | 13 ++--- tests/nvme/019 | 13 ++--- tests/nvme/020 | 11 ++-- tests/nvme/021 | 13 ++--- tests/nvme/022 | 13 ++--- tests/nvme/023 | 13 ++--- tests/nvme/024 | 13 ++--- tests/nvme/025 | 13 ++--- tests/nvme/026 | 13 ++--- tests/nvme/027 | 13 ++--- tests/nvme/028 | 15 +++--- tests/nvme/029 | 13 ++--- tests/nvme/030 | 8 +-- tests/nvme/031 | 12 ++--- tests/nvme/032 | 4 ++ tests/nvme/rc | 127 ++++++++++++++++++++++++++++++++++++++++++--- tests/nvmeof-mp/rc | 13 ----- tests/srp/rc | 13 ----- 35 files changed, 327 insertions(+), 192 deletions(-) -- 2.25.1