Imported Upstream version 0.1.17
[platform/upstream/libnice.git] / nice / test-symbols.sh
1 #!/bin/sh
2
3 set -e
4
5 if test -z "$srcdir"; then
6         srcdir=$(dirname $0)
7 fi
8
9 check_symbols=$srcdir/../scripts/check-symbols.sh
10
11 if ! test -f $check_symbols; then
12         echo "cannot find check-symbols.sh"
13         exit 1
14 fi
15
16 if ! test -f .libs/libnice.so; then
17         echo "no shared object found" >&2
18         exit 77
19 fi
20
21 sh $check_symbols .libs/libnice.so libnice.symbols