From 1c58d08bd96c13c1de644c0adc4b8ec7c1967636 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 26 Feb 2017 21:33:08 +0000 Subject: [PATCH] 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 --- src/compiler/glsl/tests/warnings-test.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 "" -- 2.30.2