mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
make more tests generic
Use _scratch_mkfs / _scratch_mkfs_sized instead of _scratch_mkfs_xfs where possible. Execute 015, 062, 083, 117, 120 and 192 for all filesystems, these tests used to be XFS specific. Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
7d92016617
commit
b2b36d0a4e
@@ -48,13 +48,14 @@ _free()
|
||||
}
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs
|
||||
_supported_fs generic
|
||||
_supported_os IRIX Linux
|
||||
|
||||
_require_scratch
|
||||
_require_nobigloopfs
|
||||
|
||||
_scratch_mkfs_xfs -d size=50m >/dev/null || _fail "mkfs failed"
|
||||
_scratch_mkfs_sized `expr 50 \* 1024 \* 1024` >/dev/null 2>&1 \
|
||||
|| _fail "mkfs failed"
|
||||
_scratch_mount || _fail "mount failed"
|
||||
out=$SCRATCH_MNT/fillup.$$
|
||||
rm -f $seq.full
|
||||
|
||||
@@ -71,7 +71,7 @@ _create_test_bed()
|
||||
}
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs udf nfs
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
|
||||
_require_scratch
|
||||
@@ -80,7 +80,7 @@ _require_attrs
|
||||
rm -f $tmp.backup1 $tmp.backup2 $seq.full
|
||||
|
||||
# real QA test starts here
|
||||
_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
|
||||
_scratch_mkfs > /dev/null 2>&1 || _fail "mkfs failed"
|
||||
_scratch_mount || _fail "mount failed"
|
||||
_create_test_bed
|
||||
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
QA output created by 062
|
||||
meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks
|
||||
data = bsize=XXX blocks=XXX, imaxpct=PCT
|
||||
= sunit=XXX swidth=XXX, unwritten=X
|
||||
naming =VERN bsize=XXX
|
||||
log =LDEV bsize=XXX blocks=XXX
|
||||
realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX
|
||||
*** create test bed
|
||||
SCRATCH_MNT
|
||||
SCRATCH_MNT/dev
|
||||
|
||||
@@ -54,7 +54,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs
|
||||
_supported_fs generic
|
||||
_supported_os IRIX Linux
|
||||
|
||||
_require_scratch
|
||||
@@ -72,8 +72,14 @@ workout()
|
||||
umount $SCRATCH_DEV >/dev/null 2>&1
|
||||
echo "*** mkfs -dsize=$fsz,agcount=$ags" >>$seq.full
|
||||
echo "" >>$seq.full
|
||||
_scratch_mkfs_xfs -dsize=$fsz,agcount=$ags >>$seq.full 2>&1 \
|
||||
|| _fail "size=$fsz,agcount=$ags mkfs failed"
|
||||
if [ $FSTYP = xfs ]
|
||||
then
|
||||
_scratch_mkfs_xfs -dsize=$fsz,agcount=$ags >>$seq.full 2>&1 \
|
||||
|| _fail "size=$fsz,agcount=$ags mkfs failed"
|
||||
else
|
||||
_scratch_mkfs_sized $fsz >>$seq.full 2>&1 \
|
||||
|| _fail "size=$fsz mkfs failed"
|
||||
fi
|
||||
_scratch_mount >>$seq.full 2>&1 \
|
||||
|| _fail "mount failed"
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ _cleanup()
|
||||
. ./common.attr
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs
|
||||
_supported_fs generic
|
||||
_supported_os IRIX Linux
|
||||
|
||||
_setup_testdir
|
||||
@@ -62,7 +62,7 @@ rm -f $seq.full
|
||||
umount $SCRATCH_DEV >/dev/null 2>&1
|
||||
echo "*** MKFS ***" >>$seq.full
|
||||
echo "" >>$seq.full
|
||||
_scratch_mkfs_xfs >>$seq.full 2>&1 \
|
||||
_scratch_mkfs >>$seq.full 2>&1 \
|
||||
|| _fail "mkfs failed"
|
||||
_scratch_mount >>$seq.full 2>&1 \
|
||||
|| _fail "mount failed"
|
||||
|
||||
@@ -37,11 +37,11 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs
|
||||
_supported_fs generic
|
||||
_supported_os Linux IRIX
|
||||
|
||||
_require_scratch
|
||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
||||
_scratch_mkfs >/dev/null 2>&1 || _fail "mkfs failed"
|
||||
|
||||
_compare_access_times()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user