3 # Execute several shaders, and check that the InfoLog outcome is the expected.
5 compiler
=.
/glsl_compiler
9 if [ ! -x "$compiler" ]; then
10 echo "Could not find glsl_compiler. Ensure that it is build via make check"
14 echo "====== Testing compilation output ======"
15 for test in `find . -iname '*.vert'`; do
16 echo -n "Testing $test..."
17 $compiler --just-log --version 150 "$test" > "$test.out" 2>&1
19 if diff "$test.expected" "$test.out" >/dev
/null
2>&1; then
24 diff "$test.expected" "$test.out"
29 echo "$pass/$total tests returned correct results"
32 if [ $pass = $total ]; then