From d84e0eb40676ff47356496c5ff9d354b863bea96 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 7 Feb 2014 19:06:02 +0000 Subject: [PATCH] wayland-egl: automake: add symbol test Signed-off-by: Emil Velikov Reviewed-by: Matt Turner --- src/egl/wayland/wayland-egl/Makefile.am | 2 ++ .../wayland-egl/wayland-egl-symbols-check | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 src/egl/wayland/wayland-egl/wayland-egl-symbols-check diff --git a/src/egl/wayland/wayland-egl/Makefile.am b/src/egl/wayland/wayland-egl/Makefile.am index 138c170df4e..6e92b2960d8 100644 --- a/src/egl/wayland/wayland-egl/Makefile.am +++ b/src/egl/wayland/wayland-egl/Makefile.am @@ -9,3 +9,5 @@ lib_LTLIBRARIES = libwayland-egl.la noinst_HEADERS = wayland-egl-priv.h libwayland_egl_la_SOURCES = wayland-egl.c libwayland_egl_la_LDFLAGS = -version-info 1 + +TESTS = wayland-egl-symbols-check diff --git a/src/egl/wayland/wayland-egl/wayland-egl-symbols-check b/src/egl/wayland/wayland-egl/wayland-egl-symbols-check new file mode 100755 index 00000000000..0c5fd09a012 --- /dev/null +++ b/src/egl/wayland/wayland-egl/wayland-egl-symbols-check @@ -0,0 +1,16 @@ +#!/bin/bash + +FUNCS=$(nm -D --defined-only ${1-.libs/libwayland-egl.so} | grep -o "T .*" | cut -c 3- | while read func; do +( grep -q "^$func$" || echo $func ) <