summaryrefslogtreecommitdiffstats
path: root/tests/run-all-symbols
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-all-symbols')
-rwxr-xr-xtests/run-all-symbols6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run-all-symbols b/tests/run-all-symbols
index 775d5bb..58a1ba6 100755
--- a/tests/run-all-symbols
+++ b/tests/run-all-symbols
@@ -1,7 +1,7 @@
#!/bin/bash
-DIR=../.libs
-FILE=$DIR/libcryptsetup.so
+[ -z "$LIBCRYPTSETUP_DIR" ] && LIBCRYPTSETUP_DIR=../.libs
+FILE=$LIBCRYPTSETUP_DIR/libcryptsetup.so
function fail()
{
@@ -15,7 +15,7 @@ function skip()
exit 77
}
-test -d $DIR || fail "Directory $DIR is missing."
+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 $@