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'),