summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2013-11-15 18:12:04 +0100
committerGert Doering <gert@greenie.muc.de>2013-11-15 18:19:25 +0100
commitf0892e6590cb247ef1012b0fe89f80eee2d56cc4 (patch)
treeaf89a9cadfbfd168948ae98c16491a5cf4ea3765 /tests
parente0a7471f250e25a384a23dfb9efd2ffef83be913 (diff)
downloadopenvpn-f0892e6590cb247ef1012b0fe89f80eee2d56cc4.tar.gz
openvpn-f0892e6590cb247ef1012b0fe89f80eee2d56cc4.tar.xz
openvpn-f0892e6590cb247ef1012b0fe89f80eee2d56cc4.zip
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>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/t_client.sh.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in
index 189eecc..af12e2d 100755
--- a/tests/t_client.sh.in
+++ b/tests/t_client.sh.in
@@ -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