From: Mike Mason <michael.w.mason@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH v2 i-g-t 1/1] scripts: Allow multiple -t and -x regular expressions for run-tests.sh
Date: Mon, 18 Aug 2014 10:43:09 -0700 [thread overview]
Message-ID: <1408383789-1889-1-git-send-email-michael.w.mason@intel.com> (raw)
Piglit allows multiple -t and -x regular expressions to be
given on the command line. This patch enables run-tests.sh to
support that as well.
Signed-off-by: Mike Mason <michael.w.mason@intel.com>
---
scripts/run-tests.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index cf77473..d0e0c67 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -55,8 +55,10 @@ function print_help {
echo " (default: $RESULTS)"
echo " -s create html summary"
echo " -t <regex> only include tests that match the regular expression"
+ echo " (can be used more than once)"
echo " -v enable verbose mode"
echo " -x <regex> exclude tests that match the regular expression"
+ echo " (can be used more than once)"
echo ""
echo "Useful patterns for test filtering are described in tests/NAMING-CONVENTION"
}
@@ -78,9 +80,9 @@ while getopts ":dhlr:st:vx:" opt; do
l) list_tests; exit ;;
r) RESULTS="$OPTARG" ;;
s) SUMMARY="html" ;;
- t) FILTER="-t $OPTARG" ;;
+ t) FILTER="$FILTER -t $OPTARG" ;;
v) VERBOSE="-v" ;;
- x) EXCLUDE="-x $OPTARG" ;;
+ x) EXCLUDE="$EXCLUDE -x $OPTARG" ;;
:)
echo "Option -$OPTARG requires an argument."
exit 1
--
1.9.1
reply other threads:[~2014-08-18 17:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1408383789-1889-1-git-send-email-michael.w.mason@intel.com \
--to=michael.w.mason@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.