summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2017-02-26 21:33:08 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2017-03-28 15:31:22 +0100
commit1c58d08bd96c13c1de644c0adc4b8ec7c1967636 (patch)
treec34000ee232a0ff3fd520ed043cbbfc2aabd2b06 /src/compiler
parent493fa69e374526fc5bf8d6727eb40a1c851a2d01 (diff)
glsl/tests/warnings-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 <emil.velikov@collabora.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'src/compiler')
-rwxr-xr-xsrc/compiler/glsl/tests/warnings-test.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/warnings-test.sh b/src/compiler/glsl/tests/warnings-test.sh
index 9bb6ed7b6cc..14ab08c30de 100755
--- a/src/compiler/glsl/tests/warnings-test.sh
+++ b/src/compiler/glsl/tests/warnings-test.sh
@@ -42,6 +42,11 @@ for test in $srcdir/$tests_relative_dir/*.vert; 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 ""