Commit 93437000 authored by Ian Romanick's avatar Ian Romanick

Add error checking for GLSL_PARSER env var

parent 86aacb3e
......@@ -5,6 +5,19 @@ if test "x$2" != "xpass" -a "x$2" != "xfail"; then
exit 1;
fi
if test "x$GLSL_PARSER" = x ; then
echo 'Set GLSL_PARSER env var to point to parser program.'
echo PIGLIT: {\'result\': \'fail\' }
exit
fi
if test ! -x $GLSL_PARSER ; then
echo 'Program specified by GLSL_PARSER env var does not exist or is not executable.'
echo PIGLIT: {\'result\': \'fail\' }
exit
fi
result=$($GLSL_PARSER $1)
status=$?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment