Mesa (main): radeonsi: add -t option to the test script
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Aug 9 10:25:58 UTC 2021
Module: Mesa
Branch: main
Commit: 20055a307df5aa579e4213c76f394ec77293ff31
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=20055a307df5aa579e4213c76f394ec77293ff31
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Thu Aug 5 16:03:38 2021 +0200
radeonsi: add -t option to the test script
This allows to easily run a subset of the tests without having
to figure out which test suite(s) they belong to.
dEQP cannot use this option because currently "deqp-runner suite"
don't have it.
Acked-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12215>
---
src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
index f9ff04ffd4b..78b14281d38 100755
--- a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
+++ b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
@@ -51,6 +51,7 @@ parser.add_argument(
default=os.getenv("MAREKO_BUILD_PATH"),
)
parser.add_argument('--verbose', '-v', action='count', default=0)
+parser.add_argument('--include-tests', '-t', action='append', dest="include_tests")
parser.add_argument(
"--no-piglit", dest="piglit", help="Disable piglit tests", action="store_false"
@@ -192,6 +193,8 @@ if args.piglit:
'--timeout', '300',
'--jobs', str(args.jobs),
'--skips', skips]
+ for t in args.include_tests:
+ cmd += ['-t', t]
if os.path.exists(baseline):
cmd += ['--baseline', baseline]
env = os.environ.copy()
@@ -218,6 +221,8 @@ if args.glcts:
'--skips', skips,
'--jobs', str(args.jobs),
'--timeout', '1000']
+ for t in args.include_tests:
+ cmd += ['-t', t]
if os.path.exists(baseline):
cmd += ['--baseline', baseline]
cmd += deqp_args
@@ -226,6 +231,10 @@ if args.glcts:
verify_results(baseline, new_baseline)
if args.deqp:
+ if args.include_tests:
+ print_yellow('dEQP tests cannot be run with the -t/--include-tests option yet.')
+ sys.exit(0)
+
print_yellow('Running dEQP tests', args.verbose > 0)
# Generate a test-suite file
More information about the mesa-commit
mailing list