From 166314dd8829c80f1df5a3b7070b6c86cccf1b9e Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 19 Nov 2015 15:50:50 +0000 Subject: [PATCH] automake: egl: add symbols test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Should help us catch issues where we expose any extra symbols by mistake. Just like the ones fixes with previous commit. Signed-off-by: Emil Velikov Tested-by: Kai Wasserbäch Reviewed-by: Kristian Høgsberg Acked-by: Matt Turner --- src/egl/Makefile.am | 3 +++ src/egl/egl-symbols-check | 55 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 src/egl/egl-symbols-check diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am index 88fe13acbd4..0b463c8deb0 100644 --- a/src/egl/Makefile.am +++ b/src/egl/Makefile.am @@ -119,7 +119,10 @@ egl_HEADERS = \ $(top_srcdir)/include/EGL/eglmesaext.h \ $(top_srcdir)/include/EGL/eglplatform.h +TESTS = egl-symbols-check + EXTRA_DIST = \ + egl-symbols-check \ SConscript \ drivers/haiku \ docs \ diff --git a/src/egl/egl-symbols-check b/src/egl/egl-symbols-check new file mode 100755 index 00000000000..5d46fed57c9 --- /dev/null +++ b/src/egl/egl-symbols-check @@ -0,0 +1,55 @@ +#!/bin/bash + +FUNCS=$(nm -D --defined-only ${1-.libs/libEGL.so} | grep -o "T .*" | cut -c 3- | while read func; do +( grep -q "^$func$" || echo $func ) <