diff options
author | Matt Turner <[email protected]> | 2012-01-28 22:42:04 -0500 |
---|---|---|
committer | Matt Turner <[email protected]> | 2012-01-30 21:10:03 -0500 |
commit | 2bb9f9e1fda61fceb9284cbb4619d7e60e39f190 (patch) | |
tree | 4ddce86bcb776010230fdfb7eaa62574a100bb47 /src/glsl/glcpp/tests/glcpp-test | |
parent | 82060adcde88eb57cc0a3b71d23f003f5637986f (diff) |
src/glsl/glcpp: wire up glcpp-test to make check
Reviewed-by: Eric Anholt <[email protected]>
Tested-by: Eric Anholt <[email protected]>
Signed-off-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/tests/glcpp-test')
-rwxr-xr-x | src/glsl/glcpp/tests/glcpp-test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glsl/glcpp/tests/glcpp-test b/src/glsl/glcpp/tests/glcpp-test index 1db75237567..1f371398f69 100755 --- a/src/glsl/glcpp/tests/glcpp-test +++ b/src/glsl/glcpp/tests/glcpp-test @@ -34,10 +34,14 @@ total=0 pass=0 clean=0 +builddir=`pwd` +testdir=`dirname $0` +cd $testdir + echo "====== Testing for correctness ======" for test in *.c; do echo -n "Testing $test..." - ../glcpp < $test > $test.out 2>&1 + $builddir/glcpp < $test > $test.out 2>&1 total=$((total+1)) if cmp $test.expected $test.out >/dev/null 2>&1; then echo "PASS" |