summaryrefslogtreecommitdiffstats
path: root/tests/run-all-symbols
blob: 58a1ba68e5a2683029293a350c0e87e5b59712d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

[ -z "$LIBCRYPTSETUP_DIR" ] && LIBCRYPTSETUP_DIR=../.libs
FILE=$LIBCRYPTSETUP_DIR/libcryptsetup.so

function fail()
{
	[ -n "$1" ] && echo "$1"
	exit 2
}

function skip()
{
	[ -n "$1" ] && echo "$1"
	exit 77
}

test -d $LIBCRYPTSETUP_DIR || fail "Directory $LIBCRYPTSETUP_DIR is missing."
test -f $FILE || skip "WARNING: Shared $FILE is missing, test skipped."

./all-symbols-test $FILE $@