github.com/artpar/rclone@v1.67.3/bin/test-repeat-vfs.sh (about)

     1  #!/bin/bash
     2  # Thrash the VFS tests
     3  
     4  set -e
     5  
     6  # Optionally set the iterations with the first parameter
     7  iterations=${1:-100}
     8  
     9  base=$(dirname $(dirname $(realpath "$0")))
    10  echo ${base}
    11  run=${base}/bin/test-repeat.sh
    12  echo ${run}
    13  
    14  testdirs="
    15  vfs
    16  vfs/vfscache
    17  vfs/vfscache/writeback
    18  vfs/vfscache/downloaders
    19  cmd/cmount
    20  "
    21  
    22  for testdir in ${testdirs}; do
    23      echo "Testing ${testdir} with ${iterations} iterations"
    24      cd ${base}/${testdir}
    25      ${run} -i=${iterations} -race -tags=cmount
    26  done