TMP: add a ctdb snapshot of current ctdb master (git://git.samba.org/ctdb.git) to...
[obnox/samba/samba-obnox.git] / ctdb / tests / eventscripts / simple / 50.samba.monitor.107.sh
1 #!/bin/sh
2
3 . "${EVENTSCRIPTS_TESTS_DIR}/common.sh"
4
5 define_test "port 139 down, default tcp checker, debug"
6
7 # This has to go before the setup, otherwise it will write a dud file.
8 export CTDB_DEBUGLEVEL=4
9
10 setup_samba
11 tcp_port_down 139
12
13 required_result 1 <<EOF
14 ERROR: samba tcp port 139 is not responding
15 DEBUG: "ctdb checktcpport 139" was able to bind to port
16 EOF
17
18 simple_test