diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-20 17:19:23 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-20 17:19:23 -0500 |
commit | 174838f3c7ae090a7832362e8e554a1b56fc526a (patch) | |
tree | dfece38ce7441511e397beba0d088e79cb3a2db1 /tools/run-readtest.sh | |
parent | 752d837ddc0d17a76b89c477e5fa094712bd082b (diff) |
correct run-readtest.sh for use on OS X as well
Diffstat (limited to 'tools/run-readtest.sh')
-rwxr-xr-x | tools/run-readtest.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/run-readtest.sh b/tools/run-readtest.sh index 952804c72c..b082c2a1a1 100755 --- a/tools/run-readtest.sh +++ b/tools/run-readtest.sh @@ -8,6 +8,11 @@ interleave= blocksize=262144 needfiles=1 +if uname -a | grep --silent arwin ; then + ddmega=m +else + ddmega=M +fi while [ $# -gt 1 ] ; do case $1 in @@ -42,7 +47,7 @@ if [ x$needfiles != x ] ; then # for i in `seq 1 $numfiles` ; do - dd of=$dir/testfile_$i if=/dev/zero bs=1M count=$filesize + dd of=$dir/testfile_$i if=/dev/zero bs=1$ddmega count=$filesize echo $i done else @@ -64,7 +69,7 @@ if [ x$needfiles != x ] ; then fi fi -if uname -a | grep -s arwin ; then +if uname -a | grep --silent arwin ; then # clears cache on OS X sudo purge elif [ -f /proc/sys/vm/drop_cache ] ; then |