diff options
author | Emil Velikov <[email protected]> | 2017-02-26 21:33:08 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-28 15:31:22 +0100 |
commit | 1c58d08bd96c13c1de644c0adc4b8ec7c1967636 (patch) | |
tree | c34000ee232a0ff3fd520ed043cbbfc2aabd2b06 /src/compiler/glsl/tests | |
parent | 493fa69e374526fc5bf8d6727eb40a1c851a2d01 (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 <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/compiler/glsl/tests')
-rwxr-xr-x | src/compiler/glsl/tests/warnings-test.sh | 5 |
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 "" |