Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nettle / testsuite / symbols-test
blobec8f49183abf574d59d9e807c1a1654dceb90989
1 #! /bin/sh
3 # Check that all exported symbols use the nettle prefix.
5 if [ -z "$srcdir" ] ; then
6 srcdir=`pwd`
7 fi
9 : ${NM:=nm}
11 # * nm on aix seems to generate bogus outbut including random binary
12 # data. Using -g is a workaround to get rid of that. But nm -g
13 # doesn't work on Solaris-2.4, so try nm -g first, and plain nm if
14 # -g isn't recognized.
16 # * gcc on x86 generates functions like __i686.get_pc_thunk.bx in pic
17 # code.
19 ( $NM -g ../libnettle.a || $NM ../libnettle.a ) \
20 | grep ' [DRT] ' | egrep -v '( |^)\.?_?(_?nettle_|memxor)|get_pc_thunk' \
21 | sort -k3 > test1.out
23 if [ -s test1.out ] ; then
24 echo Exported symbols in libnettle.a, lacking the nettle prefix:
25 cat test1.out
26 exit 1
29 if [ -s ../libhogweed.a ] ; then
30 ( $NM -g ../libhogweed.a || $NM ../libhogweed.a ) \
31 | grep ' [DRT] ' | egrep -v '( |^)\.?_?_?nettle_|get_pc_thunk' \
32 | sort -k3 > test1.out
34 if [ -s test1.out ] ; then
35 echo Exported symbols in libhogweed.a, lacking the nettle prefix:
36 cat test1.out
37 exit 1
41 exit 0