glsl/tests/warnings-test: error out if glsl_compiler is missing
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 26 Feb 2017 20:47:30 +0000 (20:47 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:22 +0000 (15:31 +0100)
 ... or non-executable, in particular.

v2: use test -x (Eric)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/glsl/tests/warnings-test.sh

index 6a52d40..b19e2fe 100755 (executable)
@@ -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..."