summaryrefslogtreecommitdiff
path: root/scripts/run-tests.sh
diff options
context:
space:
mode:
authorMike Mason <michael.w.mason@intel.com>2014-08-18 10:43:09 -0700
committerThomas Wood <thomas.wood@intel.com>2014-08-19 11:31:57 +0100
commite9da093b13c572b50c84ea2ec19244c8e2b78f08 (patch)
tree232b1e45415e1fcfad6cc81d14007214c3701789 /scripts/run-tests.sh
parent75365eb01b7cb530426d84ea5357ed7b31575337 (diff)
scripts: Allow multiple -t and -x regular expressions for run-tests.sh
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> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'scripts/run-tests.sh')
-rwxr-xr-xscripts/run-tests.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index cf774737..d0e0c67a 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