diff options
author | Emil Velikov <[email protected]> | 2017-02-28 12:10:41 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-28 15:31:24 +0100 |
commit | 4ea4fbf93a5a2229af3d48dc7fb23a43c90adb7f (patch) | |
tree | 785ac6a2eaf1121c5f55615c8af244571bed5631 | |
parent | 182d48ceb9e58eb53b52436b2cd6010de072d29b (diff) |
glcpp/tests/glcpp-test: error out if we cannot find any tests
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
-rwxr-xr-x | src/compiler/glsl/glcpp/tests/glcpp-test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test.sh b/src/compiler/glsl/glcpp/tests/glcpp-test.sh index 474e8ef5307..d98c408f739 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 "" |