diff options
| -rwxr-xr-x | egl/wayland-egl-symbols-check | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/egl/wayland-egl-symbols-check b/egl/wayland-egl-symbols-check index 6ad28f3..8b3d711 100755 --- a/egl/wayland-egl-symbols-check +++ b/egl/wayland-egl-symbols-check @@ -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 |
