mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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 <emil.velikov@collabora.com> Tested-by: Kai Wasserbäch <kai@dev.carbon-project.org> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Acked-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
5a79e0a8e3
commit
166314dd88
2 changed files with 58 additions and 0 deletions
|
|
@ -119,7 +119,10 @@ egl_HEADERS = \
|
||||||
$(top_srcdir)/include/EGL/eglmesaext.h \
|
$(top_srcdir)/include/EGL/eglmesaext.h \
|
||||||
$(top_srcdir)/include/EGL/eglplatform.h
|
$(top_srcdir)/include/EGL/eglplatform.h
|
||||||
|
|
||||||
|
TESTS = egl-symbols-check
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
|
egl-symbols-check \
|
||||||
SConscript \
|
SConscript \
|
||||||
drivers/haiku \
|
drivers/haiku \
|
||||||
docs \
|
docs \
|
||||||
|
|
|
||||||
55
src/egl/egl-symbols-check
Executable file
55
src/egl/egl-symbols-check
Executable file
|
|
@ -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 ) <<EOF
|
||||||
|
eglBindAPI
|
||||||
|
eglBindTexImage
|
||||||
|
eglChooseConfig
|
||||||
|
eglClientWaitSync
|
||||||
|
eglCopyBuffers
|
||||||
|
eglCreateContext
|
||||||
|
eglCreateImage
|
||||||
|
eglCreatePbufferFromClientBuffer
|
||||||
|
eglCreatePbufferSurface
|
||||||
|
eglCreatePixmapSurface
|
||||||
|
eglCreatePlatformPixmapSurface
|
||||||
|
eglCreatePlatformWindowSurface
|
||||||
|
eglCreateSync
|
||||||
|
eglCreateWindowSurface
|
||||||
|
eglDestroyContext
|
||||||
|
eglDestroyImage
|
||||||
|
eglDestroySurface
|
||||||
|
eglDestroySync
|
||||||
|
eglGetConfigAttrib
|
||||||
|
eglGetConfigs
|
||||||
|
eglGetCurrentContext
|
||||||
|
eglGetCurrentDisplay
|
||||||
|
eglGetCurrentSurface
|
||||||
|
eglGetDisplay
|
||||||
|
eglGetError
|
||||||
|
eglGetPlatformDisplay
|
||||||
|
eglGetProcAddress
|
||||||
|
eglGetSyncAttrib
|
||||||
|
eglInitialize
|
||||||
|
eglMakeCurrent
|
||||||
|
eglQueryAPI
|
||||||
|
eglQueryContext
|
||||||
|
eglQueryString
|
||||||
|
eglQuerySurface
|
||||||
|
eglReleaseTexImage
|
||||||
|
eglReleaseThread
|
||||||
|
eglSurfaceAttrib
|
||||||
|
eglSwapBuffers
|
||||||
|
eglSwapInterval
|
||||||
|
eglTerminate
|
||||||
|
eglWaitClient
|
||||||
|
eglWaitGL
|
||||||
|
eglWaitNative
|
||||||
|
eglWaitSync
|
||||||
|
_fini
|
||||||
|
_init
|
||||||
|
EOF
|
||||||
|
done)
|
||||||
|
|
||||||
|
test ! -n "$FUNCS" || echo $FUNCS
|
||||||
|
test ! -n "$FUNCS"
|
||||||
Loading…
Add table
Reference in a new issue