glcpp/tests/glcpp-test-cr-lf: error out if we cannot find any tests
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 28 Feb 2017 13:29:06 +0000 (13:29 +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-cr-lf.sh

index f0043adba1091a57ecc05895e8e192ac95969aea..c1e39290d395daa45495265cf594a4b04383635f 100755 (executable)
@@ -133,6 +133,11 @@ done
 
 run_test "${glcpp_test} --testdir=subtest-lf-cr"
 
+if [ $total -eq 0 ]; then
+    echo "Could not find any tests."
+    exit 1
+fi
+
 echo ""
 echo "$pass/$total tests returned correct results"
 echo ""