mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-09 00:42:51 -04:00
t_client.sh: Check for fping/fping6 availability
Check if fping and fping6 is available before running the real tests, to avoid misleading test failures. Signed-off-by: David Sommerseth <davids@redhat.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1384535524-6366-1-git-send-email-dazo@users.sourceforge.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/7981 Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
e0a7471f25
commit
f0892e6590
1 changed files with 12 additions and 0 deletions
|
|
@ -24,6 +24,18 @@ else
|
|||
exit 77
|
||||
fi
|
||||
|
||||
# Check for external dependencies
|
||||
which fping > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "$0: fping is not available in \$PATH"
|
||||
exit 77
|
||||
fi
|
||||
which fping6 > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "$0: fping6 is not available in \$PATH"
|
||||
exit 77
|
||||
fi
|
||||
|
||||
if [ ! -x "${top_builddir}/src/openvpn/openvpn" ]
|
||||
then
|
||||
echo "no (executable) openvpn binary in current build tree. FAIL." >&2
|
||||
|
|
|
|||
Loading…
Reference in a new issue