ctdb-tests: Clean up and rename simple message_ring test
authorMartin Schwenke <martin@meltin.net>
Tue, 2 Aug 2016 04:47:39 +0000 (14:47 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 8 Aug 2016 06:17:32 +0000 (08:17 +0200)
commite7a220377ec14090435f448c9a900f8f8e852a77
treec67a8b80fb74b045dbe3aee2c94b035c79851808
parentfbb3ef46b99f4e3ccf710367e50f8b9f89fee52c
ctdb-tests: Clean up and rename simple message_ring test

* Rename to clarify purpose of test

* Simplify test info to avoid unnecessary bit-rot

* Have message_ring print PNN for clearer output and update patterns
  in test script to suit.

* Drop quantitative percentage check since this is hard to predict
  when under extreme load.  To compensate, tighten up expectations for
  the total number of messages in each direction: at least 10 messages
  are required over 10 seconds.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12109

Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/51_ctdb_bench.sh [deleted file]
ctdb/tests/simple/51_message_ring.sh [new file with mode: 0755]
ctdb/tests/src/message_ring.c