From: Emil Velikov Date: Sun, 26 Feb 2017 21:33:08 +0000 (+0000) Subject: glsl/tests/warnings-test: error if zero tests were executed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c58d08bd96c13c1de644c0adc4b8ec7c1967636;p=mesa.git 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 Acked-by: Kenneth Graunke Reviewed-by: Eric Engestrom --- 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 ""