1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/sh . "${TEST_SCRIPTS_DIR}/unit.sh" define_test "Memory check, bad situation, only swap check" setup_memcheck "bad" CTDB_MONITOR_FREE_MEMORY="" CTDB_MONITOR_FREE_MEMORY_WARN="" CTDB_CHECK_SWAP_IS_NOT_USED="yes" ok <<EOF We are swapping: $FAKE_PROC_MEMINFO $(ps foobar) EOF simple_test