summaryrefslogtreecommitdiff
path: root/src/glsl/tests/Makefile.am
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2012-04-12 17:15:02 -0700
committerIan Romanick <ian.d.romanick@intel.com>2012-05-23 11:42:08 -0700
commitb45052b3f761deb980bcca405f25e543892a93ee (patch)
treecf56fa13d3f137988c8209094675a3a872eb58a1 /src/glsl/tests/Makefile.am
parent49da2590c24529e44de9993e2981cc970cf0135b (diff)
glsl/tests: Add test for uniform initialization by the linker
v2: Put unit tests in src/glsl/tests rather than tests/glsl. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/tests/Makefile.am')
-rw-r--r--src/glsl/tests/Makefile.am26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/glsl/tests/Makefile.am b/src/glsl/tests/Makefile.am
index bfd97b3b831..7fcd9f61314 100644
--- a/src/glsl/tests/Makefile.am
+++ b/src/glsl/tests/Makefile.am
@@ -1,2 +1,26 @@
+INC = \
+ -I$(top_builddir)/src/gtest/include \
+ -I$(top_builddir)/src/mesa \
+ -I$(top_builddir)/src/mapi \
+ -I$(top_builddir)/src/glsl
+
+AM_CFLAGS = $(INC)
+AM_CXXFLAGS = $(INC)
+
TESTS = \
- optimization-test
+ optimization-test \
+ uniform-initializer-test
+
+check_PROGRAMS = \
+ uniform-initializer-test
+
+uniform_initializer_test_SOURCES = \
+ copy_constant_to_storage_tests.cpp \
+ set_uniform_initializer_tests.cpp \
+ uniform_initializer_utils.cpp
+
+uniform_initializer_test_LDADD = \
+ $(top_builddir)/src/gtest/libgtest.la \
+ $(top_builddir)/src/glsl/libglsl.a \
+ $(top_builddir)/src/mesa/libmesa.a \
+ -lpthread