Minor updates to qa/bench infrastructure.

ensure mkfs and mount parameters in use are echoed into the results file.
This commit is contained in:
fsgqa
2002-11-28 08:37:02 +00:00
parent 27d11d5200
commit 8a85218f02
2 changed files with 14 additions and 11 deletions
+13 -10
View File
@@ -133,11 +133,11 @@ _run_benchmark()
_merge_results()
{
echo Results for $bench benchmark >>$OUT
echo Results for $bench benchmark
headers=`$here/run.$bench -h`
echo "[$headers]" >>$OUT
echo results.$bench.* | sort -nu | xargs cat >>$OUT
echo >>$OUT
echo "[$headers]"
echo results.$bench.* | sort -nu | xargs cat
echo
}
# real QA test starts here
@@ -162,12 +162,15 @@ fi
trap "_cleanup; exit \$status" 0 1 2 3 15
_require_scratch
echo "MKFS_OPTIONS=$MKFS_OPTIONS" >>$OUT
echo "MOUNT_OPTIONS=$MOUNT_OPTIONS" >>$OUT
echo "" >>$OUT
rm -f bench.*
# $OUT is the report which will ultimately be sent, keep it tidy.
cat >$OUT <<EOF
bench: MKFS_OPTIONS=$MKFS_OPTIONS
bench: MOUNT_OPTIONS=$MOUNT_OPTIONS
EOF
for bench in $benches
do
echo "" >$FULL
@@ -180,7 +183,7 @@ do
umount $SCRATCH_DEV 2>&1 | _fix_malloc >>$FULL
_run_benchmark | _fix_malloc
_merge_results
_merge_results >>$OUT
_log "*** done $bench"
done
+1 -1
View File
@@ -68,11 +68,11 @@ export EXTRA=${EXTRA:=-xfs-qa}
SOAK_PROC=3 # -p option to fsstress
SOAK_STRESS=10000 # -n option to fsstress
SOAK_PASSES=-1 # count of repetitions of fsstress (while soaking)
BENCH_PASSES=5 # count of repetitions of benchmarks (want averages)
EMAIL=root@localhost # where auto-qa will send its status messages
export MKFS_OPTIONS=${MKFS_OPTIONS:=-bsize=4096}
export MOUNT_OPTIONS=${MOUNT_OPTIONS:=-ologbufs=2}
export MALLOCLIB=${MALLOCLIB:=/usr/lib/libefence.a}
export BENCH_PASSES=${BENCH_PASSES:=5}
case "$HOST"
in