mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
aed77a8fb2
The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
27 lines
491 B
Bash
Executable File
27 lines
491 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Thrash the VFS tests
|
|
|
|
set -e
|
|
|
|
# Optionally set the iterations with the first parameter
|
|
iterations=${1:-100}
|
|
|
|
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
|
|
echo "Testing ${testdir} with ${iterations} iterations"
|
|
cd ${base}/${testdir}
|
|
${run} -i=${iterations} -race -tags=cmount
|
|
done
|