aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-02-07 19:06:02 +0000
committerEmil Velikov <[email protected]>2014-02-11 20:19:46 +0000
commitd84e0eb40676ff47356496c5ff9d354b863bea96 (patch)
treeb29977daa250937a16f3c4bd3229621165d0db0a /src/egl
parent64055637830336686bebed4db370ce83ede5c679 (diff)
wayland-egl: automake: add symbol test
Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/wayland/wayland-egl/Makefile.am2
-rwxr-xr-xsrc/egl/wayland/wayland-egl/wayland-egl-symbols-check16
2 files changed, 18 insertions, 0 deletions
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 ) <<EOF
+wl_egl_window_resize
+wl_egl_window_create
+wl_egl_window_destroy
+wl_egl_window_get_attached_size
+_fini
+_init
+EOF
+done)
+
+test ! -n "$FUNCS" || echo $FUNCS
+test ! -n "$FUNCS"
+