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@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12215>
This commit is contained in:
committed by
Marge Bot
parent
4a69667cdd
commit
20055a307d
@@ -51,6 +51,7 @@ parser.add_argument(
|
|||||||
default=os.getenv("MAREKO_BUILD_PATH"),
|
default=os.getenv("MAREKO_BUILD_PATH"),
|
||||||
)
|
)
|
||||||
parser.add_argument('--verbose', '-v', action='count', default=0)
|
parser.add_argument('--verbose', '-v', action='count', default=0)
|
||||||
|
parser.add_argument('--include-tests', '-t', action='append', dest="include_tests")
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--no-piglit", dest="piglit", help="Disable piglit tests", action="store_false"
|
"--no-piglit", dest="piglit", help="Disable piglit tests", action="store_false"
|
||||||
@@ -192,6 +193,8 @@ if args.piglit:
|
|||||||
'--timeout', '300',
|
'--timeout', '300',
|
||||||
'--jobs', str(args.jobs),
|
'--jobs', str(args.jobs),
|
||||||
'--skips', skips]
|
'--skips', skips]
|
||||||
|
for t in args.include_tests:
|
||||||
|
cmd += ['-t', t]
|
||||||
if os.path.exists(baseline):
|
if os.path.exists(baseline):
|
||||||
cmd += ['--baseline', baseline]
|
cmd += ['--baseline', baseline]
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
@@ -218,6 +221,8 @@ if args.glcts:
|
|||||||
'--skips', skips,
|
'--skips', skips,
|
||||||
'--jobs', str(args.jobs),
|
'--jobs', str(args.jobs),
|
||||||
'--timeout', '1000']
|
'--timeout', '1000']
|
||||||
|
for t in args.include_tests:
|
||||||
|
cmd += ['-t', t]
|
||||||
if os.path.exists(baseline):
|
if os.path.exists(baseline):
|
||||||
cmd += ['--baseline', baseline]
|
cmd += ['--baseline', baseline]
|
||||||
cmd += deqp_args
|
cmd += deqp_args
|
||||||
@@ -226,6 +231,10 @@ if args.glcts:
|
|||||||
verify_results(baseline, new_baseline)
|
verify_results(baseline, new_baseline)
|
||||||
|
|
||||||
if args.deqp:
|
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)
|
print_yellow('Running dEQP tests', args.verbose > 0)
|
||||||
|
|
||||||
# Generate a test-suite file
|
# Generate a test-suite file
|
||||||
|
|||||||
Reference in New Issue
Block a user