summaryrefslogtreecommitdiffstats
path: root/bin/tests/system/xfer/prereq.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tests/system/xfer/prereq.sh')
-rw-r--r--bin/tests/system/xfer/prereq.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/tests/system/xfer/prereq.sh b/bin/tests/system/xfer/prereq.sh
index c7b7828..c517aed 100644
--- a/bin/tests/system/xfer/prereq.sh
+++ b/bin/tests/system/xfer/prereq.sh
@@ -16,11 +16,15 @@
# macOS ships with Net::DNS 0.74 which does not work with
# HMAC-SHA256, despite the workarounds in ans.pl
-if perl -MNet::DNS -e 'exit $Net::DNS::VERSION >= 1.0'
-then
- version=$(perl -MNet::DNS -e 'print $Net::DNS::VERSION')
- echo_i "perl Net::DNS $version is too old - skipping xfer test"
- exit 1
+if ${PERL} -MNet::DNS -e 'exit ($Net::DNS::VERSION >= 1.0)'; then
+ version=$(${PERL} -MNet::DNS -e 'print $Net::DNS::VERSION')
+ echo_i "perl Net::DNS $version is too old - skipping xfer test"
+ exit 1
+fi
+
+if ! ${PERL} -MDigest::HMAC -e ''; then
+ echo_i "perl Digest::HMAC module is required"
+ exit 1
fi
exit 0