replace ::cast_dynamic() with relevant ActionManager::get_*_action() calls
[ardour.git] / tools / run-writetest.sh
1 #!/bin/sh
2
3 dir=/tmp
4 numfiles=128
5 nocache=
6 sync=
7 filesize=`expr 10 \* 1048576`
8
9 while [ $# -gt 1 ] ; do
10     case $1 in
11         -d) dir=$2; shift; shift ;;
12         -n) numfiles=$2; shift; shift ;;
13         -D) nocache="-D"; shift ;;
14         -s) sync="-s"; shift;;
15         -S) filesize=$2; shift; shift ;;
16         *) break ;;
17     esac
18 done
19
20 rm -r $dir/sftest
21
22 for bs in $@ ; do
23     echo "Blocksize $bs"
24     ./sftest $sync $nocache -b $bs -q -d $dir -n $numfiles -S $filesize
25     rm -r $dir/sftest
26 done