build: add script for torturing the VFS

This commit is contained in:
Nick Craig-Wood 2020-08-06 17:25:47 +01:00
parent f5439ddc54
commit 177d2f2f79

27
bin/test-repeat-vfs.sh Executable file
View File

@ -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