From patchwork Wed Aug 9 10:50:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Reinecke X-Patchwork-Id: 9890315 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9983E601EB for ; Wed, 9 Aug 2017 10:50:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC7BC28992 for ; Wed, 9 Aug 2017 10:50:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A158E289B8; Wed, 9 Aug 2017 10:50:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49D1C28992 for ; Wed, 9 Aug 2017 10:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940AbdHIKuS (ORCPT ); Wed, 9 Aug 2017 06:50:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:38892 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751890AbdHIKuR (ORCPT ); Wed, 9 Aug 2017 06:50:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 05D5EAEAF; Wed, 9 Aug 2017 10:50:15 +0000 (UTC) From: Hannes Reinecke To: Omar Sandoval Cc: linux-scsi@vger.kernel.org, Johannes Thumshirn , Hannes Reinecke , Hannes Reinecke Subject: [PATCH 1/2] tests/scsi: add SCSI midlayer test group Date: Wed, 9 Aug 2017 12:50:05 +0200 Message-Id: <1502275806-27972-1-git-send-email-hare@suse.de> X-Mailer: git-send-email 1.8.5.6 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a test group for tests of the SCSI midlayer. Signed-off-by: Hannes Reinecke --- tests/scsi/group | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/scsi/group diff --git a/tests/scsi/group b/tests/scsi/group new file mode 100644 index 0000000..73459a6 --- /dev/null +++ b/tests/scsi/group @@ -0,0 +1,26 @@ +#!/bin/bash +# +# SCSI regression tests +# +# Copyright (C) 2017 Hannes Reinecke, SUSE Linux GmbH +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# +# Usually, group_requires() just needs to check that any necessary programs and +# kernel features are available using the _have_foo helpers. If +# group_requires() returns non-zero, all tests in this group will be skipped. +group_requires() { + _have_root +}