Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / test_csyn.sh
1 #!/bin/bash -x
2
3 #
4 # Runs the synthetic client
5 #
6
7 # Includes
8 source "`dirname $0`/test_common.sh"
9
10 # Functions
11 setup() {
12         export CEPH_NUM_OSD=$1
13
14         # Start ceph
15         ./stop.sh
16
17         # set recovery start to a really long time to ensure that we don't start recovery
18         ./vstart.sh -d -n -o 'osd recovery delay start = 10000
19 osd max scrubs = 0' || die "vstart failed"
20 }
21
22 csyn_simple1_impl() {
23   ./ceph-syn -c ./ceph.conf --syn writefile 100 1000 --syn writefile 100 1000 || die "csyn failed"
24 }
25
26 csyn_simple1() {
27   setup 2
28   csyn_simple1_impl
29 }
30
31 run() {
32         csyn_simple1 || die "test failed"
33 }
34
35 $@