summaryrefslogtreecommitdiff
path: root/cpp/src/tests/storePerftools/asyncStorePerf_smoke_test.sh
blob: 9e8880e1289bdc81e0d08d0cdf8fdb9da97f2ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

run_test() {
    local cmd=$1
    echo $cmd
    $cmd
    if (( $? != 0 )); then
        exit 1
    fi    
}

NUM_MSGS=10000
TEST_PROG="./asyncStorePerf"

# Default (no args)
run_test "${TEST_PROG}"

# Help
run_test "${TEST_PROG} --help"

# Limited combinations of major params
for q in 1 2; do
    for p in 1 2; do
        for c in 1 2; do
            for e in 0 1 3; do
                for d in 0 1 3; do
                    for dur in "" "--durable"; do
                        run_test "${TEST_PROG} --num-queues $q --num-msgs ${NUM_MSGS} --num-producers $p --num-consumers $c --enq-txn-size $e --deq-txn-size $d ${dur}"
                    done
                done
            done
        done
    done
done