From: Martin Schwenke Date: Tue, 2 Aug 2016 04:42:45 +0000 (+1000) Subject: ctdb-tests: Clean up and rename simple fetch_ring test X-Git-Tag: tevent-0.9.30~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c10dcc7b91df62f740a4789763234f8bb2f0a27f;p=thirdparty%2Fsamba.git ctdb-tests: Clean up and rename simple fetch_ring test * Rename to clarify purpose of test * Simplify test info to avoid unnecessary bit-rot * Have fetch_ring print PNN for clearer output and update patterns in test script to suit * Simplify sanity checking pattern due to less data because of --interactive/-i option BUG: https://bugzilla.samba.org/show_bug.cgi?id=12109 Pair-programmed-with: Amitay Isaacs Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/simple/52_ctdb_fetch.sh b/ctdb/tests/simple/52_ctdb_fetch.sh deleted file mode 100755 index 60beef2c17a..00000000000 --- a/ctdb/tests/simple/52_ctdb_fetch.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -test_info() -{ - cat <= 10 msgs/sec" -else - echo "BAD: $mps msgs/sec < 10 msgs/sec" - exit 1 -fi diff --git a/ctdb/tests/simple/52_fetch_ring.sh b/ctdb/tests/simple/52_fetch_ring.sh new file mode 100755 index 00000000000..81e6a7a6bb0 --- /dev/null +++ b/ctdb/tests/simple/52_fetch_ring.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +test_info() +{ + cat <= 10 msgs/sec" +else + echo "BAD: $mps msgs/sec < 10 msgs/sec" + exit 1 +fi diff --git a/ctdb/tests/src/fetch_ring.c b/ctdb/tests/src/fetch_ring.c index c875aed3a28..eb64648139e 100644 --- a/ctdb/tests/src/fetch_ring.c +++ b/ctdb/tests/src/fetch_ring.c @@ -270,7 +270,8 @@ static void fetch_ring_finish(struct tevent_req *subreq) t = timeval_elapsed(&state->start_time); - printf("Fetch: %.2f msgs/sec\n", state->msg_count / t); + printf("Fetch[%u]: %.2f msgs/sec\n", ctdb_client_pnn(state->client), + state->msg_count / t); subreq = ctdb_fetch_lock_send(state, state->ev, state->client, state->ctdb_db, state->key, false);