stress_tests: improve output

This commit is contained in:
Jakob Unterwurzacher 2016-05-08 22:23:59 +02:00
parent d56f1ee179
commit 4b6cf43521
2 changed files with 4 additions and 6 deletions

View File

@ -9,6 +9,7 @@ DIR1=$(mktemp -d)
DIR2=$(mktemp -d)
gocryptfs -q -init -extpass="echo test" $DIR1
gocryptfs -q -extpass="echo test" -nosyslog $DIR1 $DIR2
#gocryptfs -q -extpass="echo test" -nosyslog -memprofile /tmp/extractloop-mem $DIR1 $DIR2
cd $DIR2
# Cleanup trap
@ -24,7 +25,7 @@ function loop {
N=1
while true
do
echo "Process $BASHPID iteration $N: $(date)"
echo "[pid $BASHPID] $N: $(date +%H:%M:%S)"
tar xf /tmp/linux-3.0.tar.gz
diff -ur linux-3.0 /tmp/linux-3.0
rm -Rf linux-3.0

View File

@ -5,8 +5,6 @@ set -eu
DIR=/tmp/a
# Mountpoint
MNT=/tmp/b
# Debug log
LOG=/tmp/log.txt
# fsstress binary
FSSTRESS=~/src/xfstests/ltp/fsstress
@ -41,19 +39,18 @@ else
fi
echo -n "Waiting for mount: "
sleep 0.5
while ! grep "$MNT fuse" /proc/self/mounts > /dev/null
do
sleep 1
echo -n x
done
echo " done, debug log goes to $LOG"
echo
echo "Starting fsstress loop"
N=1
while true
do
> $LOG
echo $N
mkdir $MNT/fsstress.1
echo -n " fsstress.1 "