From: Emil Velikov <emil.veli...@collabora.com> Bail out early if the script is not where we expect it to be.
Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- src/compiler/glsl/tests/optimization-test | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/glsl/tests/optimization-test b/src/compiler/glsl/tests/optimization-test index 7ccbb4467d..ec0f09b125 100755 --- a/src/compiler/glsl/tests/optimization-test +++ b/src/compiler/glsl/tests/optimization-test @@ -27,6 +27,11 @@ for dir in tests/*/; do echo "$dir" done +if [ ! -e "$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..." -- 2.11.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev