OSDN Git Service

test: ignore undefined symbols for API
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 29 Jan 2012 14:10:01 +0000 (15:10 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 29 Jan 2012 14:10:01 +0000 (15:10 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
test/API/tst-API.sh

index 38a3399..3d0302c 100755 (executable)
@@ -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