mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
wayland-egl: automake: add symbol test
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
6405563783
commit
d84e0eb406
2 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
16
src/egl/wayland/wayland-egl/wayland-egl-symbols-check
Executable file
16
src/egl/wayland/wayland-egl/wayland-egl-symbols-check
Executable file
|
|
@ -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"
|
||||
|
||||
Loading…
Add table
Reference in a new issue