glsl: Create a standalone executable for testing optimization passes.
authorPaul Berry <stereotype441@gmail.com>
Wed, 29 Jun 2011 19:30:04 +0000 (12:30 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 22 Jul 2011 16:45:11 +0000 (09:45 -0700)
commitf1f76e157ed1ba554fc3a0172113997344049e07
treed8c770f1602998a17f89156307536a670db6ded4
parentf129f618fe8a5397774484f1b7afb42d4be809a0
glsl: Create a standalone executable for testing optimization passes.

This patch adds a new build artifact, glsl_test, which can be used for
testing optimization passes in isolation.

I'm hoping that we will be able to add other useful standalone tests
to this executable in the future.  Accordingly, it is built in a
modular fashion: the main() function uses its first argument to
determine which test function to invoke, removes that argument from
argv[], and then calls that function to interpret the rest of the
command line arguments and perform the test.  Currently the only test
function is "optpass", which tests optimization passes.
src/glsl/.gitignore
src/glsl/Makefile
src/glsl/test.cpp [new file with mode: 0644]
src/glsl/test_optpass.cpp [new file with mode: 0644]
src/glsl/test_optpass.h [new file with mode: 0644]