X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=tools%2Frun-readtest.sh;h=abdfb254c7b6260fbddfea7d29cfcc8dcb2dd5aa;hb=2dc3c8b3650266eba09cf7fe53c39c6728d4d5b6;hp=38fb61d1d2cc7d50f42968a2482409e95aa4c5a6;hpb=85f9615c264f088238f775579932e438ae7c2ad6;p=ardour.git diff --git a/tools/run-readtest.sh b/tools/run-readtest.sh index 38fb61d1d2..abdfb254c7 100755 --- a/tools/run-readtest.sh +++ b/tools/run-readtest.sh @@ -7,6 +7,7 @@ nocache= interleave= needfiles=1 write_blocksize=262144 +args= if uname -a | grep --silent arwin ; then ddmega=m @@ -19,7 +20,9 @@ while [ $# -gt 1 ] ; do -d) dir=$2; shift; shift ;; -f) filesize=$2; shift; shift ;; -n) numfiles=$2; shift; shift ;; - -N) nocache="-s"; shift;; + -M) args="$args -M"; shift ;; + -D) args="$args -D"; shift ;; + -R) args="$args -R"; shift ;; *) break ;; esac done @@ -27,7 +30,7 @@ done if [ -d $dir -a -f $dir/testfile_1 ] ; then # dir exists and has a testfile within it - reuse to avoid # recreating files - echo "Re-using files in $dir" + echo "# Re-using files in $dir" needfiles= else dir=$dir/readtest_$$ @@ -40,7 +43,7 @@ else fi if [ x$needfiles != x ] ; then - echo "Building files for test..." + echo "# Building files for test..." if [ x$interleave = x ] ; then # @@ -81,6 +84,6 @@ for bs in $@ ; do : fi - echo "Blocksize $bs" - ./readtest $nocache -b $bs -q $dir/testfile_%d + echo "# Blocksize $bs" + ./readtest $args -b $bs -q $dir/testfile_%d done