From: Emil Velikov Date: Sun, 26 Feb 2017 20:43:05 +0000 (+0000) Subject: glsl/tests/optimization-test: error if zero tests were executed X-Git-Tag: upstream/17.1.0~972 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33cd136fa267a44931b8f0230c5d68259ebec2d5;p=platform%2Fupstream%2Fmesa.git 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 Acked-by: Kenneth Graunke Reviewed-by: Eric Engestrom --- diff --git a/src/compiler/glsl/tests/optimization-test.sh b/src/compiler/glsl/tests/optimization-test.sh index ddfa788..5069235 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 ""