summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Sarvela <tomi.p.sarvela@intel.com>2017-03-13 13:53:10 +0200
committerPetri Latvala <petri.latvala@intel.com>2017-03-13 15:08:23 +0200
commit9ac59bcc14d146400ae1b8d3df36d53cd7678991 (patch)
tree5652771c99ca56cbb5910477861316fb410cc92c
parent90c883ce651dc74671086fdf8229902ebde593e7 (diff)
scripts/run-tests.sh: Support testlist files
This patch passes igt scripts/run-tests.sh -T option to piglit runner as --test-list. Restrictions to the option usage come from the piglit side: - only last --test-list is processed - no test regex inclusions or exclusions are processed if --test-list exists Signed-off-by: Tomi Sarvela <tomi.p.sarvela@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rwxr-xr-xscripts/run-tests.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index bc2528c8a..7b8de74a9 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -57,6 +57,8 @@ function print_help {
echo " -s create html summary"
echo " -t <regex> only include tests that match the regular expression"
echo " (can be used more than once)"
+ echo " -T <filename> run tests listed in testlist"
+ echo " (overrides -t and -x)"
echo " -v enable verbose mode"
echo " -x <regex> exclude tests that match the regular expression"
echo " (can be used more than once)"
@@ -81,7 +83,7 @@ function list_tests {
done
}
-while getopts ":dhlr:st:vx:Rn" opt; do
+while getopts ":dhlr:st:T:vx:Rn" opt; do
case $opt in
d) download_piglit; exit ;;
h) print_help; exit ;;
@@ -89,6 +91,7 @@ while getopts ":dhlr:st:vx:Rn" opt; do
r) RESULTS="$OPTARG" ;;
s) SUMMARY="html" ;;
t) FILTER="$FILTER -t $OPTARG" ;;
+ T) FILTER="$FILTER --test-list $OPTARG" ;;
v) VERBOSE="-v" ;;
x) EXCLUDE="$EXCLUDE -x $OPTARG" ;;
R) RESUME="true" ;;