From patchwork Tue Jan 3 09:15:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9494665 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 243CB60414 for ; Tue, 3 Jan 2017 09:15:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C02A266F3 for ; Tue, 3 Jan 2017 09:15:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00D7926B39; Tue, 3 Jan 2017 09:15:30 +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 8DD3C266F3 for ; Tue, 3 Jan 2017 09:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934888AbdACJPa (ORCPT ); Tue, 3 Jan 2017 04:15:30 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33823 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934881AbdACJP2 (ORCPT ); Tue, 3 Jan 2017 04:15:28 -0500 Received: by mail-wm0-f66.google.com with SMTP id c85so47309191wmi.1 for ; Tue, 03 Jan 2017 01:15:28 -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=XVfcwp5KfFCzDtxrOrcq6YRmxnVYE0Th1Qfg7LvtOoA=; b=RHooRTzwrmMEyRkDsKQAebFfxiDjZmvw0Vp8oqfnEVHI6VALjrkM9li9Zg2V0dxmj3 krN09NYOeX0cEJj05mpfZCof4AVxaWpi9OPu9/0WPUvdQ3GQyOAJMCgEMINpZCvF4/Lp vY9Ww3n9f/XElqk1TQ0PsPXq6i1WSvw69eeqK2dn3kALn19K/uvXvDOZUh6adNmcplwi lTDNpqBhpt8ntCGbyABQqlkOhTJsngi0U2w9Q8j/gzKWeMczlXIw1TNrvKvA1wYqAJvw 8jDjKWvi55hebmTOAMEosAPgii1NlXpZUM5lhm6+ZGOuipf+4e/Ehsg62HZY/jRBHG0P HJeQ== 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=XVfcwp5KfFCzDtxrOrcq6YRmxnVYE0Th1Qfg7LvtOoA=; b=TQp0o/Ph1m7Ja0ewGe9m8KB6LnXmKdLu1sCTi5xtElO/x3CsxKrOFnelaVtwSBHMKt E1RLIhtP2ldlNqQNT9pg82BMcFW2A2URDSLzqW5/nKnueX/JlnCOnxdF2H2cBaV4vfSu L/IiLrYyioNfGiIUAqJ61Gt57iZXs4RS80HYZv0XV8mUNMIP6pWDgHp9feQ5h6sc+8GL zIcaqZDVF8h7G/tjPAthM1EaosYkfgIVl0ybItD83a5fPFQJjRvsWmryYXboQ3SPqjUG 8Gwz4riEK0LOq4bsYAfT9a091GA3PrEvYAbv70LHtAXf5GNdKeWMW/JEz5Oxgth+pX1o dafg== X-Gm-Message-State: AIkVDXJsemyFEBAEnfbbtNqHSZaVxQhbXYPT2p7glMYUEPfia857NiFEQCgvBKHeYtgcPA== X-Received: by 10.28.126.146 with SMTP id z140mr56752046wmc.84.1483434927381; Tue, 03 Jan 2017 01:15:27 -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 bf2sm91522308wjc.48.2017.01.03.01.15.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Jan 2017 01:15:26 -0800 (PST) From: Amir Goldstein To: Eryu Guan Cc: fstests@vger.kernel.org Subject: [PATCH 3/3] check: document tests include/exclude options Date: Tue, 3 Jan 2017 11:15:14 +0200 Message-Id: <1483434914-15909-1-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483363379-10210-2-git-send-email-amir73il@gmail.com> References: <1483363379-10210-2-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 Add argument description and examples to usage() for the various tests include and exclude options. Signed-off-by: Amir Goldstein --- check | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/check b/check index 8d1ec71..5a93c94 100755 --- a/check +++ b/check @@ -80,9 +80,36 @@ check options testlist options -g group[,group...] include tests from these groups -x group[,group...] exclude tests from these groups - -X file exclude individual tests + -X exclude_file exclude individual tests -E external_file exclude individual tests [testlist] include tests matching names in testlist + +testlist argument is a list of tests in the form of /. + + is a directory under tests that contains a group file, +with a list of the names of the tests in that directory. + + may be either a specific test file name (e.g. xfs/001) or +a test file name match pattern (e.g. xfs/*). + +group argument is either a name of a tests group to collect from all +the test dirs (e.g. quick) or a name of a tests group to collect from +a specific tests dir in the form of / (e.g. xfs/quick). + +exclude_file argument refers to a name of a file inside each test directory. +for every test dir where this file is found, the listed test names are +excluded from the list of tests to run from that test dir. + +external_file argument is a path to a single file containing a list of tests +to exclude in the form of /. + +examples: + check xfs/001 + check -g quick + check -g xfs/quick + check -x stress xfs/* + check -X .exclude -g auto + check -E ~/.xfstests.exclude ' exit 0 }