summaryrefslogtreecommitdiff
path: root/test/API/tst-API.sh
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-04-13 16:14:14 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-04-13 16:35:41 +0200
commitd61066fcfe7f00843c4660182ea38ba3a5e41803 (patch)
tree1150d6abdf8943d3da6b3b8afcd8f7affb5a109d /test/API/tst-API.sh
parente90c33f951efc032ca23f48326343a83c0b54b10 (diff)
test: add API test
part1; Needs improvement: Think about a sensible way to map feature sets to the mandated syms. Our LEGACY stuff maps to OB, OBXSI for example. A "normal" config should satisfy the BASE (i.e. $foo.SUSv4.syms) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.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