summaryrefslogtreecommitdiff
path: root/test/API/tst-API.sh
blob: 38a339945f3c3a6922c5d05eb4aac9e2012db2a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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