File: run-writetest.sh

package info (click to toggle)
ardour 1:5.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 74,708 kB
  • sloc: cpp: 512,951; xml: 123,656; ansic: 65,010; python: 22,599; sh: 5,368; asm: 1,347; perl: 888; php: 770; makefile: 253; objc: 28
file content (26 lines) | stat: -rwxr-xr-x 477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

dir=/tmp
numfiles=128
nocache=
sync=
filesize=`expr 10 \* 1048576`

while [ $# -gt 1 ] ; do
    case $1 in
	-d) dir=$2; shift; shift ;;
	-n) numfiles=$2; shift; shift ;;
	-D) nocache="-D"; shift ;;
        -s) sync="-s"; shift;;
        -S) filesize=$2; shift; shift ;;
        *) break ;;
    esac
done

rm -r $dir/sftest

for bs in $@ ; do
    echo "Blocksize $bs"
    ./sftest $sync $nocache -b $bs -q -d $dir -n $numfiles -S $filesize
    rm -r $dir/sftest
done