pimp readtest.

This commit is contained in:
Robin Gareus 2015-03-12 13:15:12 +01:00
parent 421d4aae2e
commit b0405c3c2c
2 changed files with 85 additions and 7 deletions

View file

@ -7,6 +7,7 @@ nocache=
interleave=
needfiles=1
write_blocksize=262144
args=
if uname -a | grep --silent arwin ; then
ddmega=m
@ -19,6 +20,9 @@ while [ $# -gt 1 ] ; do
-d) dir=$2; shift; shift ;;
-f) filesize=$2; shift; shift ;;
-n) numfiles=$2; shift; shift ;;
-M) args="$args -M"; shift ;;
-D) args="$args -D"; shift ;;
-R) args="$args -R"; shift ;;
*) break ;;
esac
done
@ -81,5 +85,5 @@ for bs in $@ ; do
fi
echo "# Blocksize $bs"
./readtest -b $bs -q $dir/testfile_%d
./readtest $args -b $bs -q $dir/testfile_%d
done