From: Matt Turner Date: Sun, 29 Jan 2012 03:42:04 +0000 (-0500) Subject: src/glsl/glcpp: wire up glcpp-test to make check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bb9f9e1fda61fceb9284cbb4619d7e60e39f190;p=mesa.git src/glsl/glcpp: wire up glcpp-test to make check Reviewed-by: Eric Anholt Tested-by: Eric Anholt Signed-off-by: Matt Turner --- diff --git a/src/glsl/glcpp/Makefile.am b/src/glsl/glcpp/Makefile.am index 198908c6f2a..68f55dcfae6 100644 --- a/src/glsl/glcpp/Makefile.am +++ b/src/glsl/glcpp/Makefile.am @@ -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 \ 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"