From: Emil Velikov Date: Sun, 26 Feb 2017 20:47:30 +0000 (+0000) Subject: glsl/tests/warnings-test: error out if glsl_compiler is missing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b366b171da2d77c92cef43833f50d4cf2427dcf;p=mesa.git glsl/tests/warnings-test: error out if glsl_compiler is missing ... or non-executable, in particular. v2: use test -x (Eric) Signed-off-by: Emil Velikov Acked-by: Kenneth Graunke (v1) Reviewed-by: Eric Engestrom --- diff --git a/src/compiler/glsl/tests/warnings-test.sh b/src/compiler/glsl/tests/warnings-test.sh index 6a52d4064f8..b19e2fe5171 100755 --- a/src/compiler/glsl/tests/warnings-test.sh +++ b/src/compiler/glsl/tests/warnings-test.sh @@ -6,6 +6,11 @@ compiler=./glsl_compiler total=0 pass=0 +if [ ! -x "$compiler" ]; then + echo "Could not find glsl_compiler. Ensure that it is build via make check" + exit 1 +fi + echo "====== Testing compilation output ======" for test in `find . -iname '*.vert'`; do echo -n "Testing $test..."