summaryrefslogtreecommitdiff
path: root/test/API/tst-API.sh
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2010-04-14 11:08:37 -0700
committerAustin Foxley <austinf@cetoncorp.com>2010-04-14 11:08:44 -0700
commite035abf89fbe11a88a26372f1695c768aff7d9e1 (patch)
tree5ea3b4a66e223ede91ad4073bab7081afbfd560e /test/API/tst-API.sh
parent9ed510ad034f9327e7e032d2c6550bfb1f750eb9 (diff)
parent718dcdc32bc831b2c141b020124501515afb9adc (diff)
Merge commit 'origin/master' into nptl
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'test/API/tst-API.sh')
-rw-r--r--test/API/tst-API.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/API/tst-API.sh b/test/API/tst-API.sh
new file mode 100644
index 000000000..38a339945
--- /dev/null
+++ b/test/API/tst-API.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+std="$1"
+shift
+cod="$*"
+
+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}'; \
+ done | sort | uniq > $uclibc_out
+for code in $cod; do cat $code.$std.syms; done | sort | uniq > $glibc_out
+result=0
+exit $result