summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/test_check_tcp_ports.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/tests/test_check_tcp_ports.sh')
-rwxr-xr-xctdb/tests/test_check_tcp_ports.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/ctdb/tests/test_check_tcp_ports.sh b/ctdb/tests/test_check_tcp_ports.sh
new file mode 100755
index 0000000..1272d88
--- /dev/null
+++ b/ctdb/tests/test_check_tcp_ports.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+DIRNAME=$(dirname $0)
+
+CTDB_BASE="${DIRNAME}/../config"
+. "${CTDB_BASE}/functions"
+
+SERVICE="test-service"
+
+PORTS="$@"
+
+if [ "x${PORTS}" = "x" ] ; then
+ PORTS=139
+fi
+
+ctdb_check_tcp_ports ${SERVICE} ${PORTS}
+
+echo "Test for service '${SERVICE}' on tcp ports ${PORTS} succeeded!"