Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: add script for torturing the VFS

Nick Craig-Wood177d2f2f79d7
diff --git a/bin/test-repeat-vfs.sh b/bin/test-repeat-vfs.sh
new file mode 100755
index 000000000..396b232c8
--- /dev/null
+++ b/bin/test-repeat-vfs.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+# Thrash the VFS tests
+
+set -e
+
+base=$(dirname $(dirname $(realpath "$0")))
+echo ${base}
+run=${base}/bin/test-repeat.sh
+echo ${run}
+
+testdirs="
+vfs
+vfs/vfscache
+vfs/vfscache/writeback
+vfs/vfscache/downloaders
+cmd/cmount
+"
+
+testdirs="
+cmd/cmount
+"
+
+for testdir in ${testdirs}; do
+ echo "Testing ${testdir}"
+ cd ${base}/${testdir}
+ ${run} -c=100 -race -tags=cmount
+done