diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/test/test_csyn.sh | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/test_csyn.sh')
-rw-r--r-- | src/test/test_csyn.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/test/test_csyn.sh b/src/test/test_csyn.sh new file mode 100644 index 000000000..04efcb2ac --- /dev/null +++ b/src/test/test_csyn.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +set -x + +# +# Runs the synthetic client +# + +# Includes +source "`dirname $0`/test_common.sh" + +# Functions +setup() { + export CEPH_NUM_OSD=$1 + + # Start ceph + ./stop.sh + + # set recovery start to a really long time to ensure that we don't start recovery + ./vstart.sh -d -n -o 'osd recovery delay start = 10000 +osd max scrubs = 0' || die "vstart failed" +} + +csyn_simple1_impl() { + ./ceph-syn -c ./ceph.conf --syn writefile 100 1000 --syn writefile 100 1000 || die "csyn failed" +} + +csyn_simple1() { + setup 2 + csyn_simple1_impl +} + +run() { + csyn_simple1 || die "test failed" +} + +$@ |