From 5c7f75f70a833d861c835aac2c008e03599f7b50 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 7 Feb 2014 16:08:04 +0000 Subject: [PATCH] gbm: automake: add symbol tests Signed-off-by: Emil Velikov --- src/gallium/targets/gbm/Makefile.am | 2 ++ .../targets/gbm/gallium-gbm-symbols-check | 13 ++++++++ src/gbm/Makefile.am | 2 ++ src/gbm/gbm-symbols-check | 33 +++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100755 src/gallium/targets/gbm/gallium-gbm-symbols-check create mode 100755 src/gbm/gbm-symbols-check diff --git a/src/gallium/targets/gbm/Makefile.am b/src/gallium/targets/gbm/Makefile.am index 7c6733b3453..f44aee88962 100644 --- a/src/gallium/targets/gbm/Makefile.am +++ b/src/gallium/targets/gbm/Makefile.am @@ -65,3 +65,5 @@ gbm_gallium_drm_la_LINK = $(CXXLINK) $(gbm_gallium_drm_la_LDFLAGS) # Mention a dummy pure C file to trigger generation of the $(LINK) variable nodist_EXTRA_gbm_gallium_drm_la_SOURCES = dummy-c.c endif + +TESTS = gallium-gbm-symbols-check diff --git a/src/gallium/targets/gbm/gallium-gbm-symbols-check b/src/gallium/targets/gbm/gallium-gbm-symbols-check new file mode 100755 index 00000000000..52b20ab858b --- /dev/null +++ b/src/gallium/targets/gbm/gallium-gbm-symbols-check @@ -0,0 +1,13 @@ +#!/bin/bash + +FUNCS=$(nm -D --defined-only ${1-.libs/gbm_gallium_drm.so} | egrep -o "T .*|D .*" | cut -c 3- | while read func; do +( grep -q "^$func$" || echo $func ) <