From cd299b433eebd2ad3947a4f97ad200611a91fbb0 Mon Sep 17 00:00:00 2001 From: Karmjit Mahil Date: Thu, 9 Apr 2026 15:30:45 +0100 Subject: [PATCH] freedreno: Add check_xml_includes to meson setup This avoids wasting CI time by catching the error early. We do still need the meson test to catch these issues locally when rebuilding from an already configured build directory though. Signed-off-by: Karmjit Mahil Part-of: --- src/freedreno/meson.build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/freedreno/meson.build b/src/freedreno/meson.build index 6f777269325..e8f01b880bc 100644 --- a/src/freedreno/meson.build +++ b/src/freedreno/meson.build @@ -53,6 +53,20 @@ if with_freedreno_vk subdir('vulkan') endif +# 77 is a convention used by Meson and other build systems to skip tests. +SKIP_RETURN_CODE = 77 + +check_xml_includes = run_command( + prog_python, + files('tests/check_xml_includes.py'), + check: false +) +if check_xml_includes.returncode() == SKIP_RETURN_CODE + message('Skipped checking freedreno XML includes.') +elif check_xml_includes.returncode() != 0 + error('XML include check found errors:\n' + check_xml_includes.stdout()) +endif + test('check-xml-includes', prog_python, args : files('tests/check_xml_includes.py'),