mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic: relocate xfs shutdown tests into tests/generic/
This patch moves the generic testcases defined in xfs into tests/generic/. xfs/053 -> generic/042 xfs/137 -> generic/043 xfs/138 -> generic/044 xfs/139 -> generic/045 xfs/140 -> generic/046 xfs/179 -> generic/047 xfs/180 -> generic/048 xfs/182 -> generic/049 xfs/200 -> generic/050 xfs/306 -> generic/051 Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
bc7cf7b94a
commit
9db4da5c43
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FS QA Test No. 053
|
# FS QA Test No. 042
|
||||||
#
|
#
|
||||||
# Test stale data exposure via writeback using various file allocation
|
# Test stale data exposure via writeback using various file allocation
|
||||||
# modification commands. The presumption is that such commands result in partial
|
# modification commands. The presumption is that such commands result in partial
|
||||||
@@ -83,7 +83,7 @@ _crashtest()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Modify as appropriate.
|
# Modify as appropriate.
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux
|
_supported_os Linux
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
QA output created by 053
|
QA output created by 042
|
||||||
falloc -k
|
falloc -k
|
||||||
wrote 65536/65536 bytes at offset 0
|
wrote 65536/65536 bytes at offset 0
|
||||||
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FSQA Test No. 137
|
# FSQA Test No. 043
|
||||||
#
|
#
|
||||||
# Test for NULL files problem
|
# Test for NULL files problem
|
||||||
#
|
#
|
||||||
@@ -36,13 +36,13 @@ trap "exit \$status" 0 1 2 3 15
|
|||||||
. ./common/filter
|
. ./common/filter
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux IRIX
|
_supported_os Linux IRIX
|
||||||
|
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_fiemap
|
_require_fiemap
|
||||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
_scratch_mkfs >/dev/null 2>&1
|
||||||
_scratch_mount
|
_scratch_mount
|
||||||
|
|
||||||
# create files
|
# create files
|
||||||
@@ -103,4 +103,4 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
QA output created by 043
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FSQA Test No. 138
|
# FSQA Test No. 044
|
||||||
#
|
#
|
||||||
# Test for NULL files problem
|
# Test for NULL files problem
|
||||||
#
|
#
|
||||||
@@ -36,13 +36,13 @@ trap "exit \$status" 0 1 2 3 15
|
|||||||
. ./common/filter
|
. ./common/filter
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux IRIX
|
_supported_os Linux IRIX
|
||||||
|
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_fiemap
|
_require_fiemap
|
||||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
_scratch_mkfs >/dev/null 2>&1
|
||||||
_scratch_mount
|
_scratch_mount
|
||||||
|
|
||||||
# create files
|
# create files
|
||||||
@@ -109,4 +109,4 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
QA output created by 044
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FSQA Test No. 139
|
# FSQA Test No. 045
|
||||||
#
|
#
|
||||||
# Test for NULL files problem
|
# Test for NULL files problem
|
||||||
#
|
#
|
||||||
@@ -36,13 +36,13 @@ trap "exit \$status" 0 1 2 3 15
|
|||||||
. ./common/filter
|
. ./common/filter
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux IRIX
|
_supported_os Linux IRIX
|
||||||
|
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_fiemap
|
_require_fiemap
|
||||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
_scratch_mkfs >/dev/null 2>&1
|
||||||
_scratch_mount
|
_scratch_mount
|
||||||
|
|
||||||
# create files
|
# create files
|
||||||
@@ -109,4 +109,4 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
QA output created by 045
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FSQA Test No. 140
|
# FSQA Test No. 046
|
||||||
#
|
#
|
||||||
# Test for NULL files problem
|
# Test for NULL files problem
|
||||||
#
|
#
|
||||||
@@ -36,13 +36,13 @@ trap "exit \$status" 0 1 2 3 15
|
|||||||
. ./common/filter
|
. ./common/filter
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux IRIX
|
_supported_os Linux IRIX
|
||||||
|
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_fiemap
|
_require_fiemap
|
||||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
_scratch_mkfs >/dev/null 2>&1
|
||||||
_scratch_mount
|
_scratch_mount
|
||||||
|
|
||||||
# create files
|
# create files
|
||||||
@@ -106,4 +106,4 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
QA output created by 046
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FSQA Test No. 179
|
# FSQA Test No. 047
|
||||||
#
|
#
|
||||||
# Test for NULL files problem
|
# Test for NULL files problem
|
||||||
# test inode size is on disk after fsync
|
# test inode size is on disk after fsync
|
||||||
@@ -37,13 +37,13 @@ trap "exit \$status" 0 1 2 3 15
|
|||||||
. ./common/filter
|
. ./common/filter
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux IRIX
|
_supported_os Linux IRIX
|
||||||
|
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_fiemap
|
_require_fiemap
|
||||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
_scratch_mkfs >/dev/null 2>&1
|
||||||
_scratch_mount
|
_scratch_mount
|
||||||
|
|
||||||
_check_files()
|
_check_files()
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
QA output created by 047
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FSQA Test No. 180
|
# FSQA Test No. 048
|
||||||
#
|
#
|
||||||
# Test for NULL files problem
|
# Test for NULL files problem
|
||||||
# test inode size is on disk after sync
|
# test inode size is on disk after sync
|
||||||
@@ -37,13 +37,13 @@ trap "exit \$status" 0 1 2 3 15
|
|||||||
. ./common/filter
|
. ./common/filter
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux IRIX
|
_supported_os Linux IRIX
|
||||||
|
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_fiemap
|
_require_fiemap
|
||||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
_scratch_mkfs >/dev/null 2>&1
|
||||||
_scratch_mount
|
_scratch_mount
|
||||||
|
|
||||||
# Do we have enough space on disk? 10G
|
# Do we have enough space on disk? 10G
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
QA output created by 048
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FSQA Test No. 182
|
# FSQA Test No. 049
|
||||||
#
|
#
|
||||||
# Test for NULL files problem
|
# Test for NULL files problem
|
||||||
# test inode size is on disk after sync - expose log replay bug
|
# test inode size is on disk after sync - expose log replay bug
|
||||||
@@ -37,13 +37,13 @@ trap "exit \$status" 0 1 2 3 15
|
|||||||
. ./common/filter
|
. ./common/filter
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux IRIX
|
_supported_os Linux IRIX
|
||||||
|
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_fiemap
|
_require_fiemap
|
||||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
_scratch_mkfs >/dev/null 2>&1
|
||||||
_scratch_mount
|
_scratch_mount
|
||||||
|
|
||||||
_check_files()
|
_check_files()
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
QA output created by 049
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FS QA Test No. 200
|
# FS QA Test No. 050
|
||||||
#
|
#
|
||||||
# Check out various mount/remount/unmount scenarious on a read-only blockdev.
|
# Check out various mount/remount/unmount scenarious on a read-only blockdev.
|
||||||
#
|
#
|
||||||
@@ -41,14 +41,14 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
|||||||
. ./common/filter
|
. ./common/filter
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux
|
_supported_os Linux
|
||||||
|
|
||||||
_require_scratch_nocheck
|
_require_scratch_nocheck
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_norecovery
|
_require_norecovery
|
||||||
|
|
||||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
_scratch_mkfs >/dev/null 2>&1
|
||||||
|
|
||||||
#
|
#
|
||||||
# Mark the device read-only
|
# Mark the device read-only
|
||||||
@@ -119,7 +119,7 @@ blockdev --setrw $SCRATCH_DEV
|
|||||||
# the underlying device is not write protected.
|
# the underlying device is not write protected.
|
||||||
#
|
#
|
||||||
echo "mounting filesystem that needs recovery with -o ro:"
|
echo "mounting filesystem that needs recovery with -o ro:"
|
||||||
_scratch_mount -o ro 2>&1 | _filter_scratch
|
_scratch_mount -o ro 2>&1 | _filter_scratch
|
||||||
|
|
||||||
# success, all done
|
# success, all done
|
||||||
echo "*** done"
|
echo "*** done"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
QA output created by 200
|
QA output created by 050
|
||||||
setting device read-only
|
setting device read-only
|
||||||
mounting read-only block device:
|
mounting read-only block device:
|
||||||
mount: SCRATCH_DEV is write-protected, mounting read-only
|
mount: SCRATCH_DEV is write-protected, mounting read-only
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# FS QA Test No. xfs/306
|
# FS QA Test No. 051
|
||||||
#
|
#
|
||||||
# Basic log recovery stress test - do lots of stuff, shut down in the middle of
|
# Basic log recovery stress test - do lots of stuff, shut down in the middle of
|
||||||
# it and check that recovery runs to completion and everything can be
|
# it and check that recovery runs to completion and everything can be
|
||||||
@@ -45,7 +45,7 @@ _cleanup()
|
|||||||
trap "_cleanup; exit \$status" 0 1 2 3 15
|
trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os Linux
|
_supported_os Linux
|
||||||
|
|
||||||
_require_scratch
|
_require_scratch
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
QA output created by 306
|
QA output created by 051
|
||||||
No output is good. Failures are loud.
|
No output is good. Failures are loud.
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user