projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix mistaken "do not roll" conclusion in TransportFSM::compute_should_roll()
[ardour.git]
/
tools
/
run-readtest.sh
diff --git
a/tools/run-readtest.sh
b/tools/run-readtest.sh
index b50add4944558beeaa22d234b21af0e7b316023a..7a7164b9688454f939d891a94e169391552b6d99 100755
(executable)
--- a/
tools/run-readtest.sh
+++ b/
tools/run-readtest.sh
@@
-1,4
+1,4
@@
-#!/bin/sh
+#!/bin/
ba
sh
dir=/tmp
filesize=100 # megabytes
dir=/tmp
filesize=100 # megabytes
@@
-7,6
+7,7
@@
nocache=
interleave=
needfiles=1
write_blocksize=262144
interleave=
needfiles=1
write_blocksize=262144
+args=
if uname -a | grep --silent arwin ; then
ddmega=m
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 ;;
-d) dir=$2; shift; shift ;;
-f) filesize=$2; shift; shift ;;
-n) numfiles=$2; shift; shift ;;
- -N) nocache="-s"; shift; shift ;;
+ -M) args="$args -M"; shift ;;
+ -D) args="$args -D"; shift ;;
+ -R) args="$args -R"; shift ;;
*) break ;;
esac
done
*) 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
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_$$
needfiles=
else
dir=$dir/readtest_$$
@@
-40,7
+43,7
@@
else
fi
if [ x$needfiles != x ] ; then
fi
if [ x$needfiles != x ] ; then
- echo "Building files for test..."
+ echo "
#
Building files for test..."
if [ x$interleave = x ] ; then
#
if [ x$interleave = x ] ; then
#
@@
-73,7
+76,7
@@
for bs in $@ ; do
if uname -a | grep --silent arwin ; then
# clears cache on OS X
sudo purge
if uname -a | grep --silent arwin ; then
# clears cache on OS X
sudo purge
- elif [ -f /proc/sys/vm/drop_cache ] ; then
+ elif [ -f /proc/sys/vm/drop_cache
s
] ; then
# Linux cache clearing
echo 3 | sudo tee /proc/sys/vm/drop_caches >/dev/null
else
# Linux cache clearing
echo 3 | sudo tee /proc/sys/vm/drop_caches >/dev/null
else
@@
-81,6
+84,6
@@
for bs in $@ ; do
:
fi
:
fi
- echo "Blocksize $bs"
- ./readtest $
nocache
-b $bs -q $dir/testfile_%d
+ echo "
#
Blocksize $bs"
+ ./readtest $
args
-b $bs -q $dir/testfile_%d
done
done