3 # This is the wrapper script for using the standalone GLSL2 compiler
4 # for the glslparsertest. Drop a link named "glslcompiler" in this
5 # directory pointing at the compiler binary.
7 if test "x$2" != "xpass" -a "x$2" != "xfail"; then
8 echo "usage: external-glslparsertest.sh filename [pass|fail]"
12 result
=$
(.
/tests
/glslparsertest
/glslcompiler
$1)
15 if test "x$2" = xpass
; then
16 if test "$status" = "0"; then
17 echo PIGLIT
: {\'result
\': \'pass
\' }
21 echo "compiler result:"
23 echo PIGLIT
: {\'result
\': \'fail
\' }
26 if test "$status" != "1"; then
27 echo "shader should have failed:"
29 echo PIGLIT
: {\'result
\': \'fail
\' }
31 echo PIGLIT
: {\'result
\': \'pass
\' }