src/glsl/glcpp: wire up glcpp-test to make check

Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Matt Turner
2012-01-28 22:42:04 -05:00
parent 82060adcde
commit 2bb9f9e1fd
2 changed files with 7 additions and 1 deletions

View File

@@ -24,6 +24,8 @@
noinst_LTLIBRARIES = libglcpp.la
check_PROGRAMS = glcpp
TESTS = tests/glcpp-test
AM_CPPFLAGS = \
-I$(top_srcdir)/src/mesa \
-I$(top_srcdir)/src/mapi \

View File

@@ -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"