From: Emil Velikov Date: Thu, 19 Nov 2015 15:50:50 +0000 (+0000) Subject: automake: egl: add symbols test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=166314dd8829c80f1df5a3b7070b6c86cccf1b9e;p=mesa.git automake: egl: add symbols test 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 --- 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 ) <