From 5c7f75f70a833d861c835aac2c008e03599f7b50 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 7 Feb 2014 16:08:04 +0000 Subject: gbm: automake: add symbol tests Signed-off-by: Emil Velikov --- src/gbm/Makefile.am | 2 ++ src/gbm/gbm-symbols-check | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100755 src/gbm/gbm-symbols-check (limited to 'src/gbm') diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am index 261429881fa..fc4b534ead8 100644 --- a/src/gbm/Makefile.am +++ b/src/gbm/Makefile.am @@ -46,4 +46,6 @@ libgbm_la_LIBADD += \ libgbm_dri.la $(top_builddir)/src/mapi/shared-glapi/libglapi.la $(LIBDRM_LIBS) endif +TESTS = gbm-symbols-check + include $(top_srcdir)/install-lib-links.mk diff --git a/src/gbm/gbm-symbols-check b/src/gbm/gbm-symbols-check new file mode 100755 index 00000000000..184cb2249d8 --- /dev/null +++ b/src/gbm/gbm-symbols-check @@ -0,0 +1,33 @@ +#!/bin/bash + +FUNCS=$(nm -D --defined-only ${1-.libs/libgbm.so} | grep -o "T .*" | cut -c 3- | while read func; do +( grep -q "^$func$" || echo $func ) <