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