From: Emil Velikov Date: Tue, 28 Feb 2017 12:10:41 +0000 (+0000) Subject: glcpp/tests/glcpp-test: error out if we cannot find any tests X-Git-Tag: upstream/17.1.0~967 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ea4fbf93a5a2229af3d48dc7fb23a43c90adb7f;p=platform%2Fupstream%2Fmesa.git glcpp/tests/glcpp-test: error out if we cannot find any tests Signed-off-by: Emil Velikov Acked-by: Kenneth Graunke Reviewed-by: Eric Engestrom --- diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test.sh b/src/compiler/glsl/glcpp/tests/glcpp-test.sh index 474e8ef..d98c408 100755 --- a/src/compiler/glsl/glcpp/tests/glcpp-test.sh +++ b/src/compiler/glsl/glcpp/tests/glcpp-test.sh @@ -85,6 +85,11 @@ for test in $testdir/*.c; 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 ""