initial code repo
[stor4nfv.git] / src / ceph / src / test / test_csyn.sh
diff --git a/src/ceph/src/test/test_csyn.sh b/src/ceph/src/test/test_csyn.sh
new file mode 100644 (file)
index 0000000..98003aa
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/bash -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"
+}
+
+$@