From: Emil Velikov Date: Thu, 23 Feb 2017 14:17:09 +0000 (+0000) Subject: glsl/tests/optimisation-test: ensure that compare_ir is available X-Git-Tag: upstream/17.1.0~976 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7d9f0a361c4fd5d7e223cac61eca180c309cdc1;p=platform%2Fupstream%2Fmesa.git 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 Acked-by: Kenneth Graunke Reviewed-by: Eric Engestrom --- diff --git a/src/compiler/glsl/tests/optimization-test.sh b/src/compiler/glsl/tests/optimization-test.sh index 5ae5684..47970c6 100755 --- a/src/compiler/glsl/tests/optimization-test.sh +++ b/src/compiler/glsl/tests/optimization-test.sh @@ -36,6 +36,11 @@ for dir in tests/*/; do echo "$dir" done +if [ ! -f "$compare_ir" ]; then + echo "Could not find compare_ir. Make sure that srcdir variable is correctly set." + exit 1 +fi + echo "====== Testing optimization passes ======" for test in `find . -iname '*.opt_test'`; do echo -n "Testing $test..."