mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
wayland-egl: fail the symbol check if lib is missing
Based on a similar patch (in Mesa) by Eric Engestrom. v2: Rebase on top of $NM patch v3: Rebase Reviewed-by: Eric Engestrom <eric@engestrom.ch> (v1) Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
79cc3ad6bd
commit
2ba70f1f6d
1 changed files with 9 additions and 1 deletions
|
|
@ -1,6 +1,14 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
FUNCS=$($NM -D --defined-only ${WAYLAND_EGL_LIB} | grep -o "T .*" | cut -c 3- | while read func; do
|
||||
LIB=${WAYLAND_EGL_LIB}
|
||||
|
||||
if [ ! -f "$LIB" ]; then
|
||||
echo "The test binary \"$LIB\" does no exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
FUNCS=$($NM -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do
|
||||
( grep -q "^$func$" || echo $func ) <<EOF
|
||||
wl_egl_window_resize
|
||||
wl_egl_window_create
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue