From: Emil Velikov <emil.veli...@collabora.com> Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- src/compiler/glsl/tests/optimization-test | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/compiler/glsl/tests/optimization-test b/src/compiler/glsl/tests/optimization-test index ec0f09b125..d84b83cfaa 100755 --- a/src/compiler/glsl/tests/optimization-test +++ b/src/compiler/glsl/tests/optimization-test @@ -18,15 +18,26 @@ fi total=0 pass=0 +has_tests=0 echo "====== Generating tests ======" for dir in tests/*/; do if [ -e "${dir}create_test_cases.py" ]; then - cd $dir; $PYTHON2 create_test_cases.py; cd .. + cd $dir; + $PYTHON2 create_test_cases.py + if [ "x$?" = x0 ]; then + has_tests=1 + fi + cd .. fi echo "$dir" done +if [ "x$has_tests" = x0 ]; then + echo "Could not generate any tests." + exit 1 +fi + if [ ! -e "$compare_ir" ]; then echo "Could not find compare_ir. Make sure that srcdir variable is correctly set." exit 1 -- 2.11.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev