Additional refinements of auto-bench stuff.

Fix up producing the results files.
This commit is contained in:
Nathan Scott
2002-09-20 01:35:55 +00:00
parent 4fa64f8a9d
commit 42e886a101
2 changed files with 10 additions and 7 deletions
+9 -6
View File
@@ -110,12 +110,15 @@ _run_benchmark()
|| _fail " !!! couldn't chown benchdir" || _fail " !!! couldn't chown benchdir"
cd $SCRATCH_MNT/bench cd $SCRATCH_MNT/bench
seq=`perl -e 'printf "results.%s.%03d\n", '$bench, $pass` seq=`perl -e 'printf "results.%s.%03d\n", '$bench', '$pass`
rm -f $seq $tmp.out
_log " *** bench [$seq]"
$here/src/runas -u $uid -g $gid $here/run.$bench > $tmp.out
[ $? -eq 0 ] || _fail " !!! $bench pass $pass failed"
_log " *** bench [src/runas -u $uid -g $gid run.$bench]"
$here/src/runas -u $uid -g $gid $here/run.$bench \
| _fix_malloc | tee $seq | _logp
cd $here cd $here
_fix_malloc < $tmp.out | tee $seq | _logp
_log " *** unmounting scratch device" _log " *** unmounting scratch device"
umount $SCRATCH_DEV 2>&1 | _logp \ umount $SCRATCH_DEV 2>&1 | _logp \
@@ -159,8 +162,8 @@ for bench in $benches
do do
echo "" >$FULL echo "" >$FULL
echo "" >$LOG echo "" >$LOG
_log "*** benchmark started (passes=$passes, benchmark=$bench)" _log "*** benchmark started [passes=$passes, benchmark=$bench]"
_log "*** (`date`)" _log "*** (`date`)"
_log " *** unmounting scratch device" _log " *** unmounting scratch device"
umount $SCRATCH_DEV 2>&1 | _fix_malloc >>$FULL umount $SCRATCH_DEV 2>&1 | _fix_malloc >>$FULL
+1 -1
View File
@@ -492,7 +492,7 @@ do
_log "" _log ""
_log " *** send results mail" _log " *** send results mail"
mail -s "XFS QA benchmark results" $EMAIL < $ROOT/bench.out 2>&1 mail -s "XFS QA benchmark results" $EMAIL < $QADIR/bench.out 2>&1
new_state="done" new_state="done"
;; ;;