From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/test/test_csyn.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/test/test_csyn.sh (limited to 'src/test/test_csyn.sh') diff --git a/src/test/test_csyn.sh b/src/test/test_csyn.sh new file mode 100644 index 00000000..04efcb2a --- /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" +} + +$@ -- cgit v1.2.3