Commit 73ee2383 authored by Eric Anholt's avatar Eric Anholt Committed by Kenneth Graunke

Improve the external glslparsertest output for better failure summaries.

parent 3b581823
......@@ -6,17 +6,28 @@ else
type="v"
fi
~/src/glsl2/glsl $type $1 > /dev/null
if test "x$2" != "xpass" -a "x$2" != "xfail"; then
echo "usage: external-glslparsertest.sh filename [pass|fail]"
exit 1;
fi
result=$(~/src/glsl2/glsl $type $1)
status=$?
if test "x$2" = xpass; then
if test "$status" = "0"; then
echo PIGLIT: {\'result\': \'pass\' }
else
echo "shader source:"
cat $1
echo "compiler result:"
echo "$result"
echo PIGLIT: {\'result\': \'fail\' }
fi
else
if test "$status" = "0"; then
echo "shader should have failed:"
cat $1
echo PIGLIT: {\'result\': \'fail\' }
else
echo PIGLIT: {\'result\': \'pass\' }
......
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