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 <emil.velikov@collabora.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
Emil Velikov 2017-02-26 20:47:30 +00:00 committed by Emil Velikov
parent 1d93fa7be4
commit 4b366b171d
1 changed files with 5 additions and 0 deletions

View File

@ -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..."