Makefile: Add security compiling option (RELRO, SC, and FORTIFY)
[platform/upstream/cryptsetup.git] / tests / run-all-symbols
1 #!/bin/bash
2
3 DIR=../.libs
4 FILE=$DIR/libcryptsetup.so
5
6 function fail()
7 {
8         [ -n "$1" ] && echo "$1"
9         exit 2
10 }
11
12 function skip()
13 {
14         [ -n "$1" ] && echo "$1"
15         exit 77
16 }
17
18 test -d $DIR || fail "Directory $DIR is missing."
19 test -f $FILE || skip "WARNING: Shared $FILE is missing, test skipped."
20
21 ./all-symbols-test $FILE $@