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

DIR=../.libs
FILE=$DIR/libcryptsetup.so

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

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

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

./all-symbols-test $FILE $@