2024-05-24 10:01:58 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-08-06 16:25:47 +00:00
|
|
|
# Thrash the VFS tests
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-08-20 15:01:55 +00:00
|
|
|
# Optionally set the iterations with the first parameter
|
|
|
|
iterations=${1:-100}
|
|
|
|
|
2020-08-06 16:25:47 +00:00
|
|
|
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
|
|
|
|
"
|
|
|
|
|
|
|
|
for testdir in ${testdirs}; do
|
2020-08-20 15:01:55 +00:00
|
|
|
echo "Testing ${testdir} with ${iterations} iterations"
|
2020-08-06 16:25:47 +00:00
|
|
|
cd ${base}/${testdir}
|
2020-08-20 15:01:55 +00:00
|
|
|
${run} -i=${iterations} -race -tags=cmount
|
2020-08-06 16:25:47 +00:00
|
|
|
done
|