File: 0symbol-check.t

package info (click to toggle)
glusterfs 11.2-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 28,244 kB
  • sloc: ansic: 471,238; sh: 45,610; python: 16,893; perl: 3,328; makefile: 2,014; yacc: 487; ruby: 171; lisp: 124; xml: 75; lex: 61
file content (45 lines) | stat: -rwxr-xr-x 851 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#

. $(dirname $0)/../include.rc

buildscratch=""

case $OSTYPE in
Linux)
        ;;
*)
        echo "Skip Linux specific test" >&2
        SKIP_TESTS
        exit 0
        ;;
esac

# look in the usual places for the build tree
if [ -d /build/scratch ]; then
        buildscratch="/build/scratch"
else
        # might be in developer's tree
        if [ -d ./libglusterfs/src/.libs ]; then
                buildscratch="."
        elif [ -d ../libglusterfs/src/.libs ]; then
                buildscratch=".."
        fi
fi

if [ -z ${buildscratch} ]; then
        echo "could find build tree in /build/scratch, . or .." >&2
        SKIP_TESTS
        exit 0
fi

# check symbols

rm -f ./.symbol-check-errors

TEST ./tests/basic/symbol-check.sh "${buildscratch}"
TEST [ ! -e ./.symbol-check-errors ]

rm -f ./.symbol-check-errors

cleanup