mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
intel/tools/tests: Unbreak i965_asm tests
Currently it's searching for test cases in the nonexistent folders, and because there are none, tests always pass. Point the script onto the correct ones. And while we're at it, add a check to make sure this situation won't repeat in the future. Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25657>
This commit is contained in:
parent
bb2083a57c
commit
b87fc2125e
2 changed files with 7 additions and 1 deletions
|
|
@ -247,7 +247,8 @@ test_runner = find_program('tests/run-test.py')
|
|||
foreach testcase : asm_testcases
|
||||
_gen_name = testcase[0]
|
||||
_gen_num = testcase[1]
|
||||
_gen_folder = join_paths(meson.current_source_dir(), 'tests', _gen_num)
|
||||
_gen_folder = join_paths(meson.current_source_dir(), 'tests',
|
||||
_gen_num.replace('gfx', 'gen'))
|
||||
test(
|
||||
'i965_asm_' + _gen_num, test_runner,
|
||||
args : [
|
||||
|
|
|
|||
|
|
@ -31,6 +31,11 @@ if wrapper is not None:
|
|||
else:
|
||||
i965_asm = [args.i965_asm]
|
||||
|
||||
if not args.gen_folder.is_dir():
|
||||
print('Test files path does not exist or is not a directory.',
|
||||
file=sys.stderr)
|
||||
exit(99)
|
||||
|
||||
success = True
|
||||
|
||||
for asm_file in args.gen_folder.glob('*.asm'):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue