diff options
author | Amitay Isaacs <amitay@gmail.com> | 2016-07-26 14:32:39 +1000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-07-28 05:00:16 +0200 |
commit | 0f5bfa67b7bb355dd2f4b92cd52af67af7a6ecde (patch) | |
tree | 722eff2c201359fd0540929e7366f50970073396 /ctdb | |
parent | bea12529390fdfd95089183711e371b3eb325d7c (diff) | |
download | samba-0f5bfa67b7bb355dd2f4b92cd52af67af7a6ecde.tar.gz |
ctdb-tests: Improve test to match exact output
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/tests/tool/ctdb.listvars.001.sh | 64 |
1 files changed, 57 insertions, 7 deletions
diff --git a/ctdb/tests/tool/ctdb.listvars.001.sh b/ctdb/tests/tool/ctdb.listvars.001.sh index ae6f2bb9b34..b24bd0203b8 100755 --- a/ctdb/tests/tool/ctdb.listvars.001.sh +++ b/ctdb/tests/tool/ctdb.listvars.001.sh @@ -2,7 +2,7 @@ . "${TEST_SCRIPTS_DIR}/unit.sh" -define_test "weak check of output format" +define_test "exact check of output" setup_ctdbd <<EOF NODEMAP @@ -11,11 +11,61 @@ NODEMAP 2 192.168.20.43 0x0 EOF -result_filter () -{ - sed -e 's@^[A-Za-z][A-Za-z0-9]*[[:space:]]*= [0-9][0-9]*$@GOOD_LINE@' | - sort -u -} +ok << EOF +SeqnumInterval = 1000 +ControlTimeout = 60 +TraverseTimeout = 20 +KeepaliveInterval = 5 +KeepaliveLimit = 5 +RecoverTimeout = 30 +RecoverInterval = 1 +ElectionTimeout = 3 +TakeoverTimeout = 9 +MonitorInterval = 15 +TickleUpdateInterval = 20 +EventScriptTimeout = 30 +MonitorTimeoutCount = 20 +RecoveryGracePeriod = 120 +RecoveryBanPeriod = 300 +DatabaseHashSize = 100001 +DatabaseMaxDead = 5 +RerecoveryTimeout = 10 +EnableBans = 1 +DeterministicIPs = 0 +LCP2PublicIPs = 1 +NoIPFailback = 0 +DisableIPFailover = 0 +VerboseMemoryNames = 0 +RecdPingTimeout = 60 +RecdFailCount = 10 +LogLatencyMs = 0 +RecLockLatencyMs = 1000 +RecoveryDropAllIPs = 120 +VacuumInterval = 10 +VacuumMaxRunTime = 120 +RepackLimit = 10000 +VacuumLimit = 5000 +VacuumFastPathCount = 60 +MaxQueueDropMsg = 1000000 +AllowUnhealthyDBRead = 0 +StatHistoryInterval = 1 +DeferredAttachTO = 120 +AllowClientDBAttach = 1 +RecoverPDBBySeqNum = 1 +FetchCollapse = 1 +HopcountMakeSticky = 50 +StickyDuration = 600 +StickyPindown = 200 +NoIPTakeover = 0 +DBRecordCountWarn = 100000 +DBRecordSizeWarn = 10000000 +DBSizeWarn = 100000000 +PullDBPreallocation = 10485760 +NoIPHostOnAllDisabled = 0 +TDBMutexEnabled = 0 +LockProcessesPerDB = 200 +RecBufferSizeLimit = 1000000 +QueueBufferSize = 1024 +EOF -ok "GOOD_LINE" simple_test |