glcpp/tests/glcpp-test: error out if we cannot find any tests
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 28 Feb 2017 12:10:41 +0000 (12:10 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:24 +0000 (15:31 +0100)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/glsl/glcpp/tests/glcpp-test.sh

index 474e8ef5307b8cb6bd7f6480d1eae70bfc288b7a..d98c408f739b0e33f841c8c49f9649fa085d2b0f 100755 (executable)
@@ -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 ""