ctdb-tests: Use setup_script_options() in 05.system tests
[amitay/samba.git] / ctdb / tests / eventscripts / 05.system.monitor.016.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "Memory check, bad situation, both memory checks, causes warning"
6
7 setup
8
9 setup_script_options <<EOF
10 CTDB_MONITOR_MEMORY_USAGE="80:90"
11 CTDB_MONITOR_SWAP_USAGE=""
12 EOF
13
14 set_mem_usage 87 0
15 ok <<EOF
16 WARNING: System memory utilization 87% >= threshold 80%
17 EOF
18
19 simple_test