From 21b1f22eb056cd9a9c90555749f1744f07b38d3f Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 15 Mar 2018 14:30:28 +0000 Subject: [PATCH] wayland-egl: enhance the symbol test The current test had a few fall-outs: - it was checking only for T (.text) symbols - did not consider symbol removal Fix that by fetching all the symbols and doing a bidirectional check - for added and removed symbols. Error out with informative message for each case. v2: Rebase on top of $NM patch. Signed-off-by: Emil Velikov Reviewed-by: Daniel Stone --- egl/wayland-egl-symbols-check | 36 +++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/egl/wayland-egl-symbols-check b/egl/wayland-egl-symbols-check index 8b3d711..c47026b 100755 --- a/egl/wayland-egl-symbols-check +++ b/egl/wayland-egl-symbols-check @@ -8,17 +8,37 @@ if [ ! -f "$LIB" ]; then exit 1 fi -FUNCS=$($NM -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do -( grep -q "^$func$" || echo $func ) <