mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic: Make some shared tests generic
There are couple of tests in shared directory which really should be made generic, so move it. It is mostly collapse range tests, which really can be generic to make super we test every file system which adds collapse range support. Here is what we're moving in this commit. shared/001 -> generic/021 shared/002 -> generic/022 shared/003 -> generic/012 shared/004 -> generic/016 shared/005 -> generic/017 shared/218 -> generic/018 shared/305 -> generic/019 Signed-off-by: Lukas Czerner <lczerner@redhat.com> 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
7baa3e2fab
commit
21723cdbf3
Regular → Executable
+3
-3
@@ -1,8 +1,8 @@
|
||||
#! /bin/bash
|
||||
# FS QA Test No. shared/003
|
||||
# FS QA Test No. generic/012
|
||||
#
|
||||
# Multi collapse range tests
|
||||
# This testcase is one of the 4 testcases (shared 001 - 004) which tries to
|
||||
# This testcase is one of the 4 testcases which tries to
|
||||
# test various corner cases for fcollapse range functionality over different
|
||||
# type of extents. These tests are based on generic/255 test case.
|
||||
# For the type of tests, check the description of _test_generic_punch
|
||||
@@ -48,7 +48,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
. ./common/punch
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs ext4
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
|
||||
_require_xfs_io_falloc_punch
|
||||
@@ -1,4 +1,4 @@
|
||||
QA output created by 003
|
||||
QA output created by 012
|
||||
1. into a hole
|
||||
f4f35d60b3cc18aaa6d8d92f0cd3708a
|
||||
2. into allocated space
|
||||
Regular → Executable
+3
-3
@@ -1,8 +1,8 @@
|
||||
#! /bin/bash
|
||||
# FS QA Test No. shared/004
|
||||
# FS QA Test No. generic/016
|
||||
#
|
||||
# Delayed allocation multi collapse range tests
|
||||
# This testcase is one of the 4 testcases (shared 001 - 004) which tries to
|
||||
# This testcase is one of the 4 testcases which tries to
|
||||
# test various corner cases for fcollapse range functionality over different
|
||||
# type of extents. These tests are based on generic/255 test case.
|
||||
# For the type of tests, check the description of _test_generic_punch
|
||||
@@ -48,7 +48,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
. ./common/punch
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs ext4
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
|
||||
_require_xfs_io_falloc_punch
|
||||
@@ -1,4 +1,4 @@
|
||||
QA output created by 004
|
||||
QA output created by 016
|
||||
1. into a hole
|
||||
f4f35d60b3cc18aaa6d8d92f0cd3708a
|
||||
2. into allocated space
|
||||
Regular → Executable
+2
-2
@@ -1,5 +1,5 @@
|
||||
#! /bin/bash
|
||||
# FS QA Test No. shared/005
|
||||
# FS QA Test No. generci/017
|
||||
#
|
||||
# Test multiple fallocate collapse range calls on same file.
|
||||
# For different blocksizes, collapse a single alternate block multiple times
|
||||
@@ -39,7 +39,7 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
|
||||
. ./common/filter
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs ext4
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
|
||||
_require_scratch
|
||||
@@ -0,0 +1,4 @@
|
||||
QA output created by 017
|
||||
80
|
||||
80
|
||||
80
|
||||
@@ -1,5 +1,5 @@
|
||||
#! /bin/bash
|
||||
# FS QA Test No. 218
|
||||
# FS QA Test No. generic/018
|
||||
#
|
||||
# Basic defragmentation sanity tests
|
||||
#
|
||||
@@ -42,7 +42,7 @@ _cleanup()
|
||||
. ./common/defrag
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs ext4 btrfs
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
|
||||
# We require scratch so that we'll have free contiguous space
|
||||
@@ -1,4 +1,4 @@
|
||||
QA output created by 218
|
||||
QA output created by 018
|
||||
zero-length file:
|
||||
Before: 0
|
||||
After: 0
|
||||
@@ -1,5 +1,5 @@
|
||||
#! /bin/bash
|
||||
# FSQA Test No. 305
|
||||
# FSQA Test No. generic/019
|
||||
#
|
||||
# Run fsstress and fio(dio/aio and mmap) and simulate disk failure
|
||||
# check filesystem consistency at the end.
|
||||
@@ -35,7 +35,7 @@ status=1 # failure is the default!
|
||||
# get standard environment, filters and checks
|
||||
. ./common/rc
|
||||
. ./common/filter
|
||||
_supported_fs ext3 ext4 xfs btrfs reiserfs
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
_need_to_be_root
|
||||
_require_scratch
|
||||
@@ -1,4 +1,4 @@
|
||||
QA output created by 305
|
||||
QA output created by 019
|
||||
Allow global fail_make_request feature
|
||||
|
||||
Start fsstress..
|
||||
@@ -1,8 +1,8 @@
|
||||
#! /bin/bash
|
||||
# FS QA Test No. shared/001
|
||||
# FS QA Test No. generic/021
|
||||
#
|
||||
# Standard collapse range tests
|
||||
# This testcase is one of the 4 testcases (shared 001 - 004) which tries to
|
||||
# This testcase is one of the 4 testcases which tries to
|
||||
# test various corner cases for fcollapse range functionality over different
|
||||
# type of extents. These tests are based on generic/255 test case.
|
||||
# For the type of tests, check the description of _test_generic_punch
|
||||
@@ -48,7 +48,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
. ./common/punch
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs ext4
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
|
||||
_require_xfs_io_falloc_punch
|
||||
@@ -1,4 +1,4 @@
|
||||
QA output created by 001
|
||||
QA output created by 021
|
||||
1. into a hole
|
||||
f4f35d60b3cc18aaa6d8d92f0cd3708a
|
||||
2. into allocated space
|
||||
Regular → Executable
+3
-3
@@ -1,8 +1,8 @@
|
||||
#! /bin/bash
|
||||
# FS QA Test No. shared/002
|
||||
# FS QA Test No. generic/022
|
||||
#
|
||||
# Delayed allocation collapse range tests
|
||||
# This testcase is one of the 4 testcases (shared 001 - 004) which tries to
|
||||
# This testcase is one of the 4 testcases which tries to
|
||||
# test various corner cases for fcollapse range functionality over different
|
||||
# type of extents. These tests are based on generic/255 test case.
|
||||
# For the type of tests, check the description of _test_generic_punch
|
||||
@@ -48,7 +48,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
|
||||
. ./common/punch
|
||||
|
||||
# real QA test starts here
|
||||
_supported_fs xfs ext4
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
|
||||
_require_xfs_io_falloc_punch
|
||||
@@ -1,4 +1,4 @@
|
||||
QA output created by 002
|
||||
QA output created by 009
|
||||
1. into a hole
|
||||
f4f35d60b3cc18aaa6d8d92f0cd3708a
|
||||
2. into allocated space
|
||||
@@ -14,10 +14,17 @@
|
||||
009 auto quick prealloc
|
||||
010 other udf auto
|
||||
011 dir udf auto quick
|
||||
012 auto quick prealloc
|
||||
013 other ioctl udf auto quick
|
||||
014 rw udf auto quick
|
||||
015 other auto quick
|
||||
016 auto quick prealloc
|
||||
017 auto prealloc
|
||||
018 auto fsr quick
|
||||
019 aio dangerous enospc rw stress
|
||||
020 metadata attr udf auto quick
|
||||
021 auto quick prealloc
|
||||
022 auto quick prealloc
|
||||
053 acl repair auto quick
|
||||
062 attr udf auto quick
|
||||
068 other auto freeze dangerous stress
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
QA output created by 005
|
||||
80
|
||||
80
|
||||
80
|
||||
@@ -3,18 +3,10 @@
|
||||
# - do not start group names with a digit
|
||||
# - comment line before each group is "new" description
|
||||
#
|
||||
001 auto quick prealloc
|
||||
002 auto quick prealloc
|
||||
003 auto quick prealloc
|
||||
004 auto quick prealloc
|
||||
005 auto prealloc
|
||||
006 auto enospc
|
||||
032 mkfs auto quick
|
||||
051 acl udf auto quick
|
||||
218 auto fsr quick
|
||||
243 auto quick prealloc
|
||||
272 auto enospc rw
|
||||
289 auto quick
|
||||
298 auto trim
|
||||
305 aio dangerous enospc rw stress
|
||||
|
||||
|
||||
Reference in New Issue
Block a user