stress_tests: improve output
This commit is contained in:
parent
d56f1ee179
commit
4b6cf43521
@ -9,6 +9,7 @@ DIR1=$(mktemp -d)
|
|||||||
DIR2=$(mktemp -d)
|
DIR2=$(mktemp -d)
|
||||||
gocryptfs -q -init -extpass="echo test" $DIR1
|
gocryptfs -q -init -extpass="echo test" $DIR1
|
||||||
gocryptfs -q -extpass="echo test" -nosyslog $DIR1 $DIR2
|
gocryptfs -q -extpass="echo test" -nosyslog $DIR1 $DIR2
|
||||||
|
#gocryptfs -q -extpass="echo test" -nosyslog -memprofile /tmp/extractloop-mem $DIR1 $DIR2
|
||||||
cd $DIR2
|
cd $DIR2
|
||||||
|
|
||||||
# Cleanup trap
|
# Cleanup trap
|
||||||
@ -24,7 +25,7 @@ function loop {
|
|||||||
N=1
|
N=1
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
echo "Process $BASHPID iteration $N: $(date)"
|
echo "[pid $BASHPID] $N: $(date +%H:%M:%S)"
|
||||||
tar xf /tmp/linux-3.0.tar.gz
|
tar xf /tmp/linux-3.0.tar.gz
|
||||||
diff -ur linux-3.0 /tmp/linux-3.0
|
diff -ur linux-3.0 /tmp/linux-3.0
|
||||||
rm -Rf linux-3.0
|
rm -Rf linux-3.0
|
||||||
|
@ -5,8 +5,6 @@ set -eu
|
|||||||
DIR=/tmp/a
|
DIR=/tmp/a
|
||||||
# Mountpoint
|
# Mountpoint
|
||||||
MNT=/tmp/b
|
MNT=/tmp/b
|
||||||
# Debug log
|
|
||||||
LOG=/tmp/log.txt
|
|
||||||
# fsstress binary
|
# fsstress binary
|
||||||
FSSTRESS=~/src/xfstests/ltp/fsstress
|
FSSTRESS=~/src/xfstests/ltp/fsstress
|
||||||
|
|
||||||
@ -41,19 +39,18 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Waiting for mount: "
|
echo -n "Waiting for mount: "
|
||||||
|
sleep 0.5
|
||||||
while ! grep "$MNT fuse" /proc/self/mounts > /dev/null
|
while ! grep "$MNT fuse" /proc/self/mounts > /dev/null
|
||||||
do
|
do
|
||||||
sleep 1
|
sleep 1
|
||||||
echo -n x
|
echo -n x
|
||||||
done
|
done
|
||||||
echo " done, debug log goes to $LOG"
|
echo
|
||||||
|
|
||||||
echo "Starting fsstress loop"
|
echo "Starting fsstress loop"
|
||||||
N=1
|
N=1
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
> $LOG
|
|
||||||
|
|
||||||
echo $N
|
echo $N
|
||||||
mkdir $MNT/fsstress.1
|
mkdir $MNT/fsstress.1
|
||||||
echo -n " fsstress.1 "
|
echo -n " fsstress.1 "
|
||||||
|
Loading…
Reference in New Issue
Block a user