git.samba.org
/
metze
/
samba
/
wip.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ctdb-tests: 05.system event script setup modularisation
[metze/samba/wip.git]
/
ctdb
/
tests
/
eventscripts
/
05.system.monitor.011.sh
1
#!/bin/sh
2
3
. "${TEST_SCRIPTS_DIR}/unit.sh"
4
5
define_test "Memory check, bad situation, default checks enabled"
6
7
setup
8
9
set_mem_usage 100 100
10
ok <<EOF
11
WARNING: System memory utilization 100% >= threshold 80%
12
WARNING: System swap utilization 100% >= threshold 25%
13
EOF
14
simple_test