From 45d3d0ad2154ccfa0fc1d02c943cefccb5f67b5b Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 1 Aug 2012 14:48:27 -0700 Subject: 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 --- src/mapi/shared-glapi/tests/Makefile.am | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/mapi/shared-glapi/tests/Makefile.am (limited to 'src/mapi/shared-glapi/tests/Makefile.am') diff --git a/src/mapi/shared-glapi/tests/Makefile.am b/src/mapi/shared-glapi/tests/Makefile.am new file mode 100644 index 00000000000..49b86afb95a --- /dev/null +++ b/src/mapi/shared-glapi/tests/Makefile.am @@ -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 -- cgit v1.2.3