#!/bin/sh set -eu 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 ) <