From 4b366b171da2d77c92cef43833f50d4cf2427dcf Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 26 Feb 2017 20:47:30 +0000 Subject: [PATCH] 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 --- src/compiler/glsl/tests/warnings-test.sh | 5 +++++ 1 file changed, 5 insertions(+) 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..." -- 2.30.2