summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rwxr-xr-xsrc/compiler/glsl/tests/optimization-test.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/optimization-test.sh b/src/compiler/glsl/tests/optimization-test.sh
index 5ae5684f7c4..47970c6be29 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..."