Skip to content

tests: Make tests aware of meson test wrapper

Dylan Baker requested to merge dbaker/mesa:cross-meson-tests into master

Meson 0.55.0 will set the MESON_EXE_WRAPPER environment variable to the joined version of that wrapper if it is needed. Our tests that take compiled targets as arguments can use that information to run cross built binaries, or if there isn't a wrapper and we get an ENOEXEC, we can skip the tests gracefully.

We try to use mesonlib.split_args, which handles windows arguments better than python's builtin shlex module, but fall back to that if the meson module isn't available for some reason.

Cc: 20.0 20.1 mesa-stable@lists.freedesktop.org

Merge request reports