charset/tests: assert the exact values of str[n]casecmp_m()
[Samba.git] / ctdb / tests / simple / 53_transaction_loop.sh
blob8291a8d55b1b8dab6501141f9cf559c05d01616d
1 #!/bin/bash
3 test_info()
5 cat <<EOF
6 Verify that the transaction_loop test succeeds.
8 Prerequisites:
10 * An active CTDB cluster with at least 2 active nodes.
11 EOF
14 . "${TEST_SCRIPTS_DIR}/integration.bash"
16 ctdb_test_init "$@"
18 set -e
20 cluster_is_healthy
22 TESTDB="persistent_trans.tdb"
24 try_command_on_node 0 "$CTDB attach $TESTDB persistent"
25 try_command_on_node 0 "$CTDB wipedb $TESTDB"
27 try_command_on_node 0 "$CTDB listnodes"
28 num_nodes=$(echo "$out" | wc -l)
30 if [ -z "$CTDB_TEST_TIMELIMIT" ] ; then
31 CTDB_TEST_TIMELIMIT=30
34 t="$CTDB_TEST_WRAPPER $VALGRIND transaction_loop \
35 -n ${num_nodes} -t ${CTDB_TEST_TIMELIMIT} \
36 -D ${TESTDB} -T persistent -k testkey"
38 echo "Running transaction_loop on all $num_nodes nodes."
39 try_command_on_node -v -p all "$t"