summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/optimization-test.sh
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-02-26 20:43:05 +0000
committerEmil Velikov <[email protected]>2017-03-28 15:31:23 +0100
commit33cd136fa267a44931b8f0230c5d68259ebec2d5 (patch)
treedb74dd4434d1f79a1a769aec0b704d3f89f02c81 /src/compiler/glsl/tests/optimization-test.sh
parent421115a72939b7dbcdc9f714d85f3e7616323a3e (diff)
glsl/tests/optimization-test: error if zero tests were executed
We don't want to lie ourselves that 'everything is fine' when no tests were found/ran. Signed-off-by: Emil Velikov <[email protected]> Acked-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/compiler/glsl/tests/optimization-test.sh')
-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 ddfa7886b5a..5069235868a 100755
--- a/src/compiler/glsl/tests/optimization-test.sh
+++ b/src/compiler/glsl/tests/optimization-test.sh
@@ -72,6 +72,11 @@ for test in `find . -iname '*.opt_test'`; do
fi
done
+if [ $total -eq 0 ]; then
+ echo "Could not find any tests."
+ exit 1
+fi
+
echo ""
echo "$pass/$total tests returned correct results"
echo ""