Numerous changes to QA scripts allowing tests to run with external log/rt devices; also allow multiple mkfs/mount options at once now.

This commit is contained in:
fsgqa
2003-05-22 04:16:45 +00:00
parent 0cac704bdf
commit 8050efd492
40 changed files with 311 additions and 282 deletions
+10 -15
View File
@@ -53,15 +53,6 @@ _cleanup()
}
trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15
_clean_log()
{
echo "" >>$seq.full
echo "*** xfs_logprint ***" >>$seq.full
echo "" >>$seq.full
xfs_logprint -tb $1 | tee -a $seq.full \
| head | grep -q "<CLEAN>" || _fail "DIRTY LOG"
}
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -76,9 +67,9 @@ rm -f $seq.full
umount $SCRATCH_DEV >/dev/null 2>&1
echo "*** MKFS ***" >>$seq.full
echo "" >>$seq.full
mkfs_xfs $SCRATCH_DEV >>$seq.full 2>&1 \
_scratch_mkfs_xfs >>$seq.full 2>&1 \
|| _fail "mkfs failed"
mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >>$seq.full 2>&1 \
_scratch_mount >>$seq.full 2>&1 \
|| _fail "mount failed"
echo "*** test"
@@ -88,17 +79,21 @@ do
echo " *** test $l"
src/fsstress -d $SCRATCH_MNT -n 1000 $FSSTRESS_AVOID >>$seq.full
mount -o remount,ro $SCRATCH_DEV \
_scratch_mount -o remount,ro \
|| _fail "remount ro failed"
_clean_log $SCRATCH_DEV
echo "" >>$seq.full
echo "*** xfs_logprint ***" >>$seq.full
echo "" >>$seq.full
_scratch_xfs_logprint -tb | tee -a $seq.full \
| head | grep -q "<CLEAN>" || _fail "DIRTY LOG"
echo "" >>$seq.full
echo "*** XFS_CHECK ***" >>$seq.full
echo "" >>$seq.full
xfs_check $SCRATCH_DEV >>$seq.full 2>&1 \
|| _fail "xfs_check failed"
mount -o remount,rw $SCRATCH_DEV \
_scratch_mount -o remount,rw \
|| _fail "remount rw failed"
done