From 89db1ca27c82fe13ef8813404d68fe1a8e5789e7 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 3 Dec 2013 23:03:10 +0000 Subject: [PATCH] Don't fail nsock/tests/run_tests if ncat can't be found --- nsock/tests/run_tests.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nsock/tests/run_tests.sh b/nsock/tests/run_tests.sh index c010e6f7e..6c3bf4486 100755 --- a/nsock/tests/run_tests.sh +++ b/nsock/tests/run_tests.sh @@ -11,6 +11,11 @@ PORT_TCPSSL=$(grep "PORT_TCPSSL " test-common.h | awk '{print $3}') EXEC_MAIN=./tests_main NCAT=${NCAT:-ncat} +if [ ! -x "$NCAT" -a -z "$(which $NCAT)" ]; then + echo "Can't find your ncat: $NCAT" + echo "Skipping nsock tests." + exit 0 +fi if [ -n "$1" ]