浏览代码

test: ignore undefined symbols for API

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 13 年之前
父节点
当前提交
46aa707fc5
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      test/API/tst-API.sh

+ 3 - 2
test/API/tst-API.sh

@@ -8,8 +8,9 @@ result=0
 
 for l in $top_builddir/lib/lib*-*.so; do \
 	readelf -D -W -s $l | \
-	egrep -v "(UND|LOCAL|^Symbol table for image:|^[[:space:]]*Num[[:space:]])" | \
-	$AWK '{print $NF}'; \
+	$AWK '
+/^[[:space:]]*[[:digit:]]/ { if ($8 != "UND") print $NF; }
+'; \
 	done | sort | uniq > $uclibc_out
 for code in $cod; do cat $code.$std.syms; done | sort | uniq > $glibc_out
 result=0