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:
Sviatoslav Peleshko 2023-10-11 13:44:17 +03:00 committed by Marge Bot
parent bb2083a57c
commit b87fc2125e
2 changed files with 7 additions and 1 deletions

View file

@ -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 : [

View file

@ -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'):