From 9ac59bcc14d146400ae1b8d3df36d53cd7678991 Mon Sep 17 00:00:00 2001 From: Tomi Sarvela Date: Mon, 13 Mar 2017 13:53:10 +0200 Subject: 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 Reviewed-by: Petri Latvala --- scripts/run-tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index bc2528c8..7b8de74a 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 only include tests that match the regular expression" echo " (can be used more than once)" + echo " -T run tests listed in testlist" + echo " (overrides -t and -x)" echo " -v enable verbose mode" echo " -x 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" ;; -- cgit v1.2.3