1
0
Fork 0
cryptsetup/tests/run-all-symbols
Daniel Baumann 309c0fd158
Adding upstream version 2:2.7.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 10:45:47 +02:00

21 lines
403 B
Bash
Executable file

#!/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 $@