glsl/tests/optimisation-test: ensure that compare_ir is available
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 23 Feb 2017 14:17:09 +0000 (14:17 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:23 +0000 (15:31 +0100)
commita7d9f0a361c4fd5d7e223cac61eca180c309cdc1
tree7a1a48b3a87b036d11f44a36e9b9f5ec5c07e9ab
parent9083c625f56439631b49e77a948c5a99889c0ea4
glsl/tests/optimisation-test: ensure that compare_ir is available

Bail out early if the script is not where we expect it to be.

v2: use -f instead of -e. latter returns true on folder(s)

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