mesa/tests: Add tests for the generated shared-glapi dispatch table

These are largely based on the src/mapi/glapi/tests.  However,
shared-glapi provides less external visibility into the dispatch table,
so there is less to test.  Also, shared-glapi does not implement
_glapi_get_proc_name, so that test was removed.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Ian Romanick
2012-08-01 14:48:27 -07:00
parent d9f899bb93
commit 45d3d0ad21
5 changed files with 492 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
if HAVE_SHARED_GLAPI
AM_CPPFLAGS = \
-I$(top_builddir)/src/gtest/include \
-I$(top_builddir)/src/mapi \
-I$(top_builddir)/include
TESTS = shared-glapi-test
check_PROGRAMS = shared-glapi-test
shared_glapi_test_SOURCES = \
check_table.cpp
shared_glapi_test_LDADD = \
$(top_builddir)/src/mapi/shared-glapi/libglapi.la \
$(top_builddir)/src/gtest/libgtest.la \
-lpthread
endif