tests: Make tests aware of meson test wrapper
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> Reviewed-by:Eric Engestrom <eric@engestrom.ch> Part-of: <!5103> (cherry picked from commit 55803224)
- .pick_status.json 1 addition, 1 deletion.pick_status.json
- src/compiler/glsl/glcpp/tests/glcpp_test.py 33 additions, 12 deletionssrc/compiler/glsl/glcpp/tests/glcpp_test.py
- src/compiler/glsl/tests/optimization_test.py 11 additions, 5 deletionssrc/compiler/glsl/tests/optimization_test.py
- src/compiler/glsl/tests/warnings_test.py 11 additions, 5 deletionssrc/compiler/glsl/tests/warnings_test.py