From patchwork Mon Jan 2 13:22:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9493543 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 1062A62AB2 for ; Mon, 2 Jan 2017 13:23:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02D08266F3 for ; Mon, 2 Jan 2017 13:23:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB55F2679B; Mon, 2 Jan 2017 13:23:31 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 8AFC9267EC for ; Mon, 2 Jan 2017 13:23:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932993AbdABNXS (ORCPT ); Mon, 2 Jan 2017 08:23:18 -0500 Received: from mail-wj0-f196.google.com ([209.85.210.196]:36294 "EHLO mail-wj0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932325AbdABNXR (ORCPT ); Mon, 2 Jan 2017 08:23:17 -0500 Received: by mail-wj0-f196.google.com with SMTP id j10so68615921wjb.3 for ; Mon, 02 Jan 2017 05:23:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HbB61qqz8+UcYKe9TxpfE+tqAP2igKNKpBiGcEgxDhs=; b=NLMsaa40dNLFmj5Y/b4fx6Ct0T1MacP764oo8hC8DPntLEhQ4xSYvfdPYRvfiR+hde fDq0J8vuhAg4n+SjHN2IJdPRqNiM0v0mR85jjFU3TVrCzx/VgzmPdvQNcQ6JaL/NduQ8 6oGtTYZ2hekIZyhqewCo93En41f5N+grj8WeXfSGFrBQhx9b3uEIYDwAGe9IJAjarNGm vBTAtaOVKMS2n6ytCzTTKu7U7zcM0FR73Og0mUUuszvlJ9zQjIK74UCCfSFVES2PfDwR l0lfgvnGsyWkTVpkdE99jvpYxxgIbFsDaAUNHhosXS7VEJqmtecnP/oXo434lS+aiDRD f07Q== 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:in-reply-to :references; bh=HbB61qqz8+UcYKe9TxpfE+tqAP2igKNKpBiGcEgxDhs=; b=BCzkZrsMne5LOzN+qcbERCCPdgtJHiPNZ7+w/8ClAiPz4hHCsSYSKe2vka74M3eoZ9 DisYsHUICawTazADSUboVK1h9VnVwtnbplgKvRM1fkmr+8LZzof7wD9yDpobYKlRU2dk RA5K2ZwqWeO1g9f9vPX6Brw5Q6Sxt0qdWyQypq8bjVa+dBCmnrdIhS24GzLWPIKsKCr5 Sg4w0TwSCPOHRa79N6+GwvBbzNfj5VSaVjRtFtLTQX66B19ooj+tjelOAuANntHJyegs ZjdLDkFdTwhr6RVavaL02xtY2kb7a+xHBkrtx12jlYhBZXCbn9k192U+JM4yXbfWvWvC D6mA== X-Gm-Message-State: AIkVDXLxeiwiKRj5zjQLB5c4NvQnK5mWeAUs38f15qYfrW4gSNKgl3CM3vyxMasaiRyP0w== X-Received: by 10.194.58.7 with SMTP id m7mr37901811wjq.73.1483363395755; Mon, 02 Jan 2017 05:23:15 -0800 (PST) Received: from amir-VirtualBox.ctera.local (bzq-82-81-193-202.cablep.bezeqint.net. [82.81.193.202]) by smtp.gmail.com with ESMTPSA id 204sm84378318wmj.7.2017.01.02.05.23.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Jan 2017 05:23:15 -0800 (PST) From: Amir Goldstein To: Eryu Guan Cc: fstests@vger.kernel.org Subject: [PATCH 2/2] check: support include/exclude of sub groups Date: Mon, 2 Jan 2017 15:22:59 +0200 Message-Id: <1483363379-10210-2-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483363379-10210-1-git-send-email-amir73il@gmail.com> References: <1483363379-10210-1-git-send-email-amir73il@gmail.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Allow including and/or excluding tests by test dir and group. -g and -x command line arguments can take the form of /. For example: ./check -n -g xfs/quick ./check -n -g stress -x xfs/stress ./check -n -g xfs/punch -x dangerous_fuzzers Signed-off-by: Amir Goldstein --- check | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/check b/check index faf6281..8d1ec71 100755 --- a/check +++ b/check @@ -105,6 +105,14 @@ get_group_list() { local grp=$1 local grpl="" + local sub=$(dirname $grp) + + if [ -n "$sub" -a "$sub" != "." -a -d "$SRC_DIR/$sub" ]; then + # group is given as / (e.g. xfs/quick) + grp=$(basename $grp) + get_sub_group_list $sub $grp + return + fi for d in $SRC_GROUPS $FSTYP; do if ! test -d "$SRC_DIR/$d" ; then