From: Lukas Czerner Date: Wed, 13 Aug 2014 01:08:41 +0000 (+1000) Subject: common: Check fs consistency on TEST_DEV only when needed X-Git-Tag: v2022.05.01~3103 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=83ef157;p=users%2Fhch%2Fxfstests-dev.git common: Check fs consistency on TEST_DEV only when needed Currently we're checking file system consistency on TEST_DEV after every successful test run even though the TEST_DEV might not even be used in that test. Fix it by introducing _require_test to for the test ti indicate that it's about to use TEST_DEV. Also add _require_test to the new script so that this requirement is a default. Signed-off-by: Lukas Czerner Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/check b/check index 5b76fabd6..77c655912 100755 --- a/check +++ b/check @@ -625,7 +625,8 @@ for section in $HOST_OPTIONS_SECTIONS; do then try="$try $seqnum" n_try=`expr $n_try + 1` - _check_test_fs + test -f ${RESULT_DIR}/require_test && _check_test_fs + rm -f ${RESULT_DIR}/require_test test -f ${RESULT_DIR}/require_scratch && _check_scratch_fs rm -f ${RESULT_DIR}/require_scratch fi diff --git a/common/rc b/common/rc index be3d3ca0a..ce57b69ee 100644 --- a/common/rc +++ b/common/rc @@ -989,6 +989,55 @@ _require_scratch() touch ${RESULT_DIR}/require_scratch } +# this test needs a test partition - check we're ok & unmount it +# +_require_test() +{ + case "$FSTYP" in + nfs*) + _notrun "requires a test device" + ;; + tmpfs) + if [ -z "$TEST_DEV" -o ! -d "$TEST_DIR" ]; + then + _notrun "this test requires a valid \$TEST_DIR and unique $TEST_DEV" + fi + ;; + *) + if [ -z "$TEST_DEV" -o "`_is_block_dev $TEST_DEV`" = "" ] + then + _notrun "this test requires a valid \$TEST_DEV" + fi + if [ "`_is_block_dev $SCRATCH_DEV`" = "`_is_block_dev $TEST_DEV`" ] + then + _notrun "this test requires a valid \$TEST_DEV" + fi + if [ ! -d "$TEST_DIR" ] + then + _notrun "this test requires a valid \$TEST_DIR" + fi + ;; + esac + + # mounted? + if _mount | grep -q $TEST_DEV + then + # if it's mounted, make sure its on $TEST_DIR + if ! _mount | grep $TEST_DEV | grep -q $TEST_DIR + then + echo "\$TEST_DEV is mounted but not on \$TEST_DIR - aborting" + exit 1 + fi + else + out=`_mount_or_remount_rw "$MOUNT_OPTIONS" $TEST_DEV $TEST_DIR` + if [ $? -ne 1 ]; then + echo $out + exit 1 + fi + fi + touch ${RESULT_DIR}/require_test +} + # this test needs a logdev # _require_logdev() diff --git a/new b/new index f712892bc..f3e6fa1fb 100755 --- a/new +++ b/new @@ -129,6 +129,7 @@ _cleanup() # Modify as appropriate. _supported_fs generic _supported_os IRIX Linux +_require_test # if error exit diff --git a/tests/btrfs/008 b/tests/btrfs/008 index 9fa36a613..019af0415 100755 --- a/tests/btrfs/008 +++ b/tests/btrfs/008 @@ -50,6 +50,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _scratch_mkfs > /dev/null 2>&1 diff --git a/tests/btrfs/016 b/tests/btrfs/016 index d04c21ad3..c8fc70892 100755 --- a/tests/btrfs/016 +++ b/tests/btrfs/016 @@ -49,6 +49,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _require_fssum diff --git a/tests/btrfs/019 b/tests/btrfs/019 index 45bba5ef9..452d24b80 100755 --- a/tests/btrfs/019 +++ b/tests/btrfs/019 @@ -50,6 +50,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _scratch_mkfs > /dev/null 2>&1 diff --git a/tests/btrfs/020 b/tests/btrfs/020 index 7464bd031..5a928dde2 100755 --- a/tests/btrfs/020 +++ b/tests/btrfs/020 @@ -55,6 +55,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test rm -f $seqres.full echo "Silence is golden" diff --git a/tests/btrfs/026 b/tests/btrfs/026 index c2ac56176..7559ca270 100644 --- a/tests/btrfs/026 +++ b/tests/btrfs/026 @@ -50,6 +50,7 @@ _supported_os Linux _require_xfs_io_command "fiemap" _require_cp_reflink +_require_test TESTDIR1=$TEST_DIR/test-$seq rm -rf $TESTDIR1 diff --git a/tests/btrfs/027 b/tests/btrfs/027 index d615efd35..d2b812bb1 100644 --- a/tests/btrfs/027 +++ b/tests/btrfs/027 @@ -50,6 +50,7 @@ _supported_os Linux _require_xfs_io_command "fiemap" _require_cp_reflink +_require_test TESTDIR1=$TEST_DIR/test-$seq rm -rf $TESTDIR1 diff --git a/tests/btrfs/028 b/tests/btrfs/028 index 50cffd35a..7193337cc 100644 --- a/tests/btrfs/028 +++ b/tests/btrfs/028 @@ -48,6 +48,7 @@ _supported_os Linux _require_xfs_io_command "fiemap" _require_cp_reflink +_require_test rm -f $seqres.full diff --git a/tests/btrfs/029 b/tests/btrfs/029 index 80c05e31b..0b77b3362 100644 --- a/tests/btrfs/029 +++ b/tests/btrfs/029 @@ -52,6 +52,7 @@ _cleanup() _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _require_cp_reflink diff --git a/tests/btrfs/031 b/tests/btrfs/031 index e158a57d1..bcd332c38 100644 --- a/tests/btrfs/031 +++ b/tests/btrfs/031 @@ -53,6 +53,7 @@ _cleanup() _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _require_cp_reflink diff --git a/tests/btrfs/041 b/tests/btrfs/041 index b86e2f59e..963978747 100755 --- a/tests/btrfs/041 +++ b/tests/btrfs/041 @@ -51,6 +51,7 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _need_to_be_root diff --git a/tests/btrfs/046 b/tests/btrfs/046 index c0d10e1b6..288fb7f61 100644 --- a/tests/btrfs/046 +++ b/tests/btrfs/046 @@ -51,6 +51,7 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _require_fssum _need_to_be_root diff --git a/tests/btrfs/047 b/tests/btrfs/047 index 8b20e79e9..2c50bf697 100755 --- a/tests/btrfs/047 +++ b/tests/btrfs/047 @@ -57,6 +57,7 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _require_fssum _require_xfs_io_command "fiemap" diff --git a/tests/btrfs/048 b/tests/btrfs/048 index 2a9bfc396..dc7386d79 100755 --- a/tests/btrfs/048 +++ b/tests/btrfs/048 @@ -45,6 +45,7 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _require_btrfs "property" _need_to_be_root diff --git a/tests/btrfs/050 b/tests/btrfs/050 index 907940853..b72408aa6 100755 --- a/tests/btrfs/050 +++ b/tests/btrfs/050 @@ -51,6 +51,7 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _require_fssum _need_to_be_root diff --git a/tests/btrfs/051 b/tests/btrfs/051 index deaa76545..1ddfb7449 100755 --- a/tests/btrfs/051 +++ b/tests/btrfs/051 @@ -48,6 +48,7 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _require_fssum _need_to_be_root diff --git a/tests/btrfs/053 b/tests/btrfs/053 index 7eef55ffc..43a831cdd 100755 --- a/tests/btrfs/053 +++ b/tests/btrfs/053 @@ -50,6 +50,7 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _require_fssum _require_attrs diff --git a/tests/btrfs/054 b/tests/btrfs/054 index 258eead54..33241b0f9 100755 --- a/tests/btrfs/054 +++ b/tests/btrfs/054 @@ -58,6 +58,7 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux +_require_test _require_scratch _need_to_be_root diff --git a/tests/ext4/001 b/tests/ext4/001 index 827d8066c..5409f488d 100755 --- a/tests/ext4/001 +++ b/tests/ext4/001 @@ -46,6 +46,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 _supported_fs ext4 _supported_os Linux _require_xfs_io_command "fzero" +_require_test testfile=$TEST_DIR/001.$$ diff --git a/tests/ext4/002 b/tests/ext4/002 index 8cb3fd14a..035ea7b5e 100755 --- a/tests/ext4/002 +++ b/tests/ext4/002 @@ -120,6 +120,7 @@ _check_ext4_eof_flag() _supported_fs ext4 _supported_os Linux _require_xfs_io_command "falloc" +_require_test # Real QA test starts here. rm -f $seqres.full diff --git a/tests/generic/001 b/tests/generic/001 index 6e5f3ddff..e977a0181 100755 --- a/tests/generic/001 +++ b/tests/generic/001 @@ -48,6 +48,7 @@ trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test verbose=true verify=$here/verify_fill diff --git a/tests/generic/002 b/tests/generic/002 index 656d29ff2..f63b208f7 100755 --- a/tests/generic/002 +++ b/tests/generic/002 @@ -43,6 +43,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test echo "Silence is goodness ..." diff --git a/tests/generic/004 b/tests/generic/004 index 23ca34901..c7aa47359 100755 --- a/tests/generic/004 +++ b/tests/generic/004 @@ -44,6 +44,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _require_xfs_io_command "flink" testfile="${TEST_DIR}/tst-tmpfile-flink" diff --git a/tests/generic/005 b/tests/generic/005 index 544af1401..d78e43fbd 100755 --- a/tests/generic/005 +++ b/tests/generic/005 @@ -66,6 +66,7 @@ _touch() # real QA test starts here _supported_fs generic +_require_test # IRIX UDF does not support symlinks if [ $FSTYP == 'udf' ]; then diff --git a/tests/generic/006 b/tests/generic/006 index 481e1f132..7a38dbfab 100755 --- a/tests/generic/006 +++ b/tests/generic/006 @@ -54,6 +54,7 @@ _count() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test mkdir $TEST_DIR/permname.$$ diff --git a/tests/generic/007 b/tests/generic/007 index abbee74a8..88cd6ccf0 100755 --- a/tests/generic/007 +++ b/tests/generic/007 @@ -48,6 +48,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test status=1 # default failure sourcefile=$tmp.nametest diff --git a/tests/generic/008 b/tests/generic/008 index 65e16617b..9b70b2877 100755 --- a/tests/generic/008 +++ b/tests/generic/008 @@ -44,6 +44,7 @@ trap "exit \$status" 0 1 2 3 15 _supported_os Linux _require_xfs_io_command "fzero" +_require_test testfile=$TEST_DIR/008.$$ diff --git a/tests/generic/009 b/tests/generic/009 index 08eafb90f..7fbec3443 100755 --- a/tests/generic/009 +++ b/tests/generic/009 @@ -45,6 +45,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _require_xfs_io_command "fzero" +_require_test testfile=$TEST_DIR/009.$$ diff --git a/tests/generic/010 b/tests/generic/010 index 9d2e76ab4..ea8ea50ac 100755 --- a/tests/generic/010 +++ b/tests/generic/010 @@ -56,6 +56,7 @@ _filter_dbtest() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test rm -f $seqres.full diff --git a/tests/generic/011 b/tests/generic/011 index bed23aa74..f3c2f7cfc 100755 --- a/tests/generic/011 +++ b/tests/generic/011 @@ -46,6 +46,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test out=$TEST_DIR/dirstress.$$ diff --git a/tests/generic/012 b/tests/generic/012 index 730625bba..6b1e20b8a 100755 --- a/tests/generic/012 +++ b/tests/generic/012 @@ -51,6 +51,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux +_require_test _require_xfs_io_command "fpunch" _require_xfs_io_command "falloc" _require_xfs_io_command "fiemap" diff --git a/tests/generic/013 b/tests/generic/013 index 8e76d3da7..93d99047e 100755 --- a/tests/generic/013 +++ b/tests/generic/013 @@ -91,6 +91,7 @@ _do_test() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test rm -f $seqres.full echo "brevity is wit..." diff --git a/tests/generic/014 b/tests/generic/014 index a9c26381d..79619619e 100755 --- a/tests/generic/014 +++ b/tests/generic/014 @@ -45,6 +45,7 @@ _cleanup() _supported_fs generic _supported_os IRIX Linux +_require_test _require_sparse_files # ensure EOF preallocation doesn't massively extend the runtime of this test diff --git a/tests/generic/016 b/tests/generic/016 index 15a255190..b994775e1 100755 --- a/tests/generic/016 +++ b/tests/generic/016 @@ -51,6 +51,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux +_require_test _require_xfs_io_command "fpunch" _require_xfs_io_command "falloc" _require_xfs_io_command "fiemap" diff --git a/tests/generic/020 b/tests/generic/020 index a9bd17a0c..49230da0d 100755 --- a/tests/generic/020 +++ b/tests/generic/020 @@ -76,6 +76,7 @@ _attr_list() _supported_fs generic _supported_os Linux +_require_test _require_attrs rm -f $seqres.full diff --git a/tests/generic/021 b/tests/generic/021 index eb88e016d..4729400fb 100755 --- a/tests/generic/021 +++ b/tests/generic/021 @@ -51,6 +51,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux +_require_test _require_xfs_io_command "fpunch" _require_xfs_io_command "falloc" _require_xfs_io_command "fiemap" diff --git a/tests/generic/022 b/tests/generic/022 index 55bf8c549..1228e5169 100755 --- a/tests/generic/022 +++ b/tests/generic/022 @@ -51,6 +51,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux +_require_test _require_xfs_io_command "fpunch" _require_xfs_io_command "falloc" _require_xfs_io_command "fiemap" diff --git a/tests/generic/023 b/tests/generic/023 index aaf196a29..114485c22 100755 --- a/tests/generic/023 +++ b/tests/generic/023 @@ -43,6 +43,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _requires_renameat2 # real QA test starts here diff --git a/tests/generic/024 b/tests/generic/024 index fa61169fa..8945191cf 100755 --- a/tests/generic/024 +++ b/tests/generic/024 @@ -43,6 +43,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _requires_renameat2 rename_dir=$TEST_DIR/$$ diff --git a/tests/generic/025 b/tests/generic/025 index 251fffe55..6b6c8abb1 100755 --- a/tests/generic/025 +++ b/tests/generic/025 @@ -43,6 +43,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _requires_renameat2 rename_dir=$TEST_DIR/$$ diff --git a/tests/generic/026 b/tests/generic/026 index 6dae9669e..ab75839cf 100755 --- a/tests/generic/026 +++ b/tests/generic/026 @@ -48,6 +48,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os Linux +_require_test _require_scratch _need_to_be_root _acl_setup_ids diff --git a/tests/generic/028 b/tests/generic/028 index eb3c7996f..f181d3e8b 100755 --- a/tests/generic/028 +++ b/tests/generic/028 @@ -50,6 +50,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os Linux +_require_test echo "Silence is golden" diff --git a/tests/generic/070 b/tests/generic/070 index f593d84eb..7591b25cd 100755 --- a/tests/generic/070 +++ b/tests/generic/070 @@ -47,6 +47,7 @@ _cleanup() _supported_fs generic _supported_os IRIX Linux +_require_test _require_attrs FSSTRESS_ARGS=`_scale_fsstress_args \ diff --git a/tests/generic/074 b/tests/generic/074 index 668132ed3..df85d662a 100755 --- a/tests/generic/074 +++ b/tests/generic/074 @@ -110,6 +110,7 @@ rm -f $seqres.full _supported_fs generic _supported_os IRIX Linux +_require_test # # set params diff --git a/tests/generic/075 b/tests/generic/075 index af4f34b21..a2411c66c 100755 --- a/tests/generic/075 +++ b/tests/generic/075 @@ -123,6 +123,7 @@ _process_args() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test size10=`expr 10 \* 1024 \* 1024` # 10 megabytes filelen=$size10 diff --git a/tests/generic/088 b/tests/generic/088 index fce6489e2..983de983c 100755 --- a/tests/generic/088 +++ b/tests/generic/088 @@ -48,6 +48,7 @@ _link_out_file $seq.out $seqfull.out # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test path=$TEST_DIR/t_access src/t_access_root $path | tee $seqres.full | _filter diff --git a/tests/generic/089 b/tests/generic/089 index fdddad41b..4324f83a4 100755 --- a/tests/generic/089 +++ b/tests/generic/089 @@ -51,6 +51,7 @@ addentries() # real QA test starts here _supported_fs generic _supported_os Linux +_require_test rm -f $seqres.full [ "X$TEST_DIR" = "X" ] && exit 1 diff --git a/tests/generic/091 b/tests/generic/091 index e7b60fef1..3775016bb 100755 --- a/tests/generic/091 +++ b/tests/generic/091 @@ -38,6 +38,7 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux +_require_test rm -f $seqres.full diff --git a/tests/generic/093 b/tests/generic/093 index fe20f380a..8f810a663 100755 --- a/tests/generic/093 +++ b/tests/generic/093 @@ -58,6 +58,7 @@ _filefilter() _supported_fs generic _supported_os IRIX +_require_test _require_attrs [ -x $runas ] || _notrun "$runas executable not found" diff --git a/tests/generic/097 b/tests/generic/097 index f40d5d5d1..637c73b70 100755 --- a/tests/generic/097 +++ b/tests/generic/097 @@ -75,6 +75,7 @@ fi _supported_fs generic _supported_os IRIX +_require_test _require_scratch _require_attrs diff --git a/tests/generic/099 b/tests/generic/099 index 83097e915..b544fe265 100755 --- a/tests/generic/099 +++ b/tests/generic/099 @@ -80,6 +80,7 @@ rm -f $seqres.full _supported_fs generic _supported_os IRIX +_require_test _acl_setup_ids _require_acls diff --git a/tests/generic/100 b/tests/generic/100 index 00ba23edd..59b8e7539 100755 --- a/tests/generic/100 +++ b/tests/generic/100 @@ -44,6 +44,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test # Use _populate_fs() in common/rc to create a directory structure. TEMP_DIR=/tmp diff --git a/tests/generic/112 b/tests/generic/112 index 1e34d99de..b59cbfa2c 100755 --- a/tests/generic/112 +++ b/tests/generic/112 @@ -121,6 +121,7 @@ _process_args() # real QA test starts here _supported_fs generic _supported_os Linux +_require_test [ -x $here/ltp/aio-stress ] || \ _notrun "fsx not built with AIO for this platform" diff --git a/tests/generic/113 b/tests/generic/113 index 56672f036..7208fa29c 100755 --- a/tests/generic/113 +++ b/tests/generic/113 @@ -76,6 +76,7 @@ _do_test() # real QA test starts here _supported_fs generic _supported_os Linux +_require_test [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform" diff --git a/tests/generic/123 b/tests/generic/123 index 911e9d2fc..453ede4b4 100755 --- a/tests/generic/123 +++ b/tests/generic/123 @@ -48,6 +48,7 @@ _cleanup() _supported_fs generic _supported_os Linux IRIX +_require_test _require_user my_test_subdir=$TEST_DIR/123subdir diff --git a/tests/generic/124 b/tests/generic/124 index 77f6e7d72..888bbc0bc 100755 --- a/tests/generic/124 +++ b/tests/generic/124 @@ -48,6 +48,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _require_scratch _scratch_mkfs >/dev/null 2>&1 _scratch_mount diff --git a/tests/generic/125 b/tests/generic/125 index f4ffea5b1..bcf9b3e3d 100755 --- a/tests/generic/125 +++ b/tests/generic/125 @@ -39,6 +39,7 @@ trap "exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux +_require_test _require_user TESTDIR=$TEST_DIR/ftrunc diff --git a/tests/generic/126 b/tests/generic/126 index 17965270d..a22d5872e 100755 --- a/tests/generic/126 +++ b/tests/generic/126 @@ -43,6 +43,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os Linux +_require_test QA_FS_PERMS=$here/src/fs_perms diff --git a/tests/generic/127 b/tests/generic/127 index f6b7f9553..94d15b291 100755 --- a/tests/generic/127 +++ b/tests/generic/127 @@ -104,6 +104,7 @@ _fsx_std_mmap() # real QA test starts here _supported_fs generic _supported_os Linux +_require_test _fsx_lite_nommap _fsx_lite_mmap diff --git a/tests/generic/131 b/tests/generic/131 index ce3e490e4..b4e3ff067 100755 --- a/tests/generic/131 +++ b/tests/generic/131 @@ -44,6 +44,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os Linux +_require_test TESTFILE=$TEST_DIR/lock_file diff --git a/tests/generic/133 b/tests/generic/133 index 7fb1695e0..f1d67aa60 100755 --- a/tests/generic/133 +++ b/tests/generic/133 @@ -38,6 +38,7 @@ trap "exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux IRIX +_require_test echo "Buffered writer, buffered reader" $XFS_IO_PROG -f -d -c 'pwrite -b 64k 0 512m' $TEST_DIR/io_test > /dev/null diff --git a/tests/generic/184 b/tests/generic/184 index dcc8b4efb..d7c0eb9a9 100755 --- a/tests/generic/184 +++ b/tests/generic/184 @@ -44,6 +44,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test rm -f $TEST_DIR/null mknod $TEST_DIR/null c 1 3 diff --git a/tests/generic/192 b/tests/generic/192 index 2b4e41c37..f630be9c5 100755 --- a/tests/generic/192 +++ b/tests/generic/192 @@ -53,6 +53,7 @@ is_noatime_set() { _supported_fs generic _supported_os Linux +_require_test #delay=150 #delay=75 #delay=60 diff --git a/tests/generic/193 b/tests/generic/193 index 4fa20ffde..cd3c0b0e6 100755 --- a/tests/generic/193 +++ b/tests/generic/193 @@ -70,6 +70,7 @@ _filter_files() _supported_fs generic _supported_os Linux +_require_test _require_user _need_to_be_root diff --git a/tests/generic/198 b/tests/generic/198 index 5190d3475..5978f54a8 100755 --- a/tests/generic/198 +++ b/tests/generic/198 @@ -44,6 +44,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_aiodio aiodio_sparse2 +_require_test echo "Silence is golden." diff --git a/tests/generic/207 b/tests/generic/207 index 0709061a5..8f22c55b8 100755 --- a/tests/generic/207 +++ b/tests/generic/207 @@ -44,6 +44,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _run_aiodio aio-dio-extend-stat diff --git a/tests/generic/208 b/tests/generic/208 index 58d1d083a..f57e2bc76 100755 --- a/tests/generic/208 +++ b/tests/generic/208 @@ -44,6 +44,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test rm -f $seqres.full diff --git a/tests/generic/209 b/tests/generic/209 index 2abafcff0..aface5675 100755 --- a/tests/generic/209 +++ b/tests/generic/209 @@ -44,6 +44,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _run_aiodio aio-dio-invalidate-readahead diff --git a/tests/generic/210 b/tests/generic/210 index ebeb137bd..6abd3b41f 100755 --- a/tests/generic/210 +++ b/tests/generic/210 @@ -44,6 +44,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _run_aiodio aio-dio-subblock-eof-read diff --git a/tests/generic/211 b/tests/generic/211 index d1110f5e3..e0afeff10 100755 --- a/tests/generic/211 +++ b/tests/generic/211 @@ -44,6 +44,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _run_aiodio aio-free-ring-with-bogus-nr-pages diff --git a/tests/generic/212 b/tests/generic/212 index 23ceae053..e3b2dad66 100755 --- a/tests/generic/212 +++ b/tests/generic/212 @@ -45,6 +45,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _run_aiodio aio-io-setup-with-nonwritable-context-pointer diff --git a/tests/generic/213 b/tests/generic/213 index c99520ffc..609fcf148 100755 --- a/tests/generic/213 +++ b/tests/generic/213 @@ -54,6 +54,7 @@ _supported_os Linux rm -f $seqres.full +_require_test _require_xfs_io_command "falloc" # check there's enough freespace on $TEST_DIR ... (1GiB + 1MiB) diff --git a/tests/generic/214 b/tests/generic/214 index 444c1fe1a..dff267e86 100755 --- a/tests/generic/214 +++ b/tests/generic/214 @@ -47,6 +47,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic # only Linux supports fallocate _supported_os Linux +_require_test [ -n "$XFS_IO_PROG" ] || _notrun "xfs_io executable not found" diff --git a/tests/generic/215 b/tests/generic/215 index eaae8d8cb..6ddd1fcff 100755 --- a/tests/generic/215 +++ b/tests/generic/215 @@ -45,6 +45,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux +_require_test testfile=$TEST_DIR/tst.mmap diff --git a/tests/generic/221 b/tests/generic/221 index e7d474095..aa42f65b5 100755 --- a/tests/generic/221 +++ b/tests/generic/221 @@ -39,6 +39,7 @@ status=1 # failure is the default! # real QA test starts here _supported_fs generic _supported_os Linux +_require_test echo "Silence is golden." diff --git a/tests/generic/228 b/tests/generic/228 index 7ac0872a6..1856dec50 100755 --- a/tests/generic/228 +++ b/tests/generic/228 @@ -47,6 +47,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 25 _supported_fs generic # only Linux supports fallocate _supported_os Linux +_require_test [ -n "$XFS_IO_PROG" ] || _notrun "xfs_io executable not found" diff --git a/tests/generic/236 b/tests/generic/236 index 10cf71afd..12ea0bc68 100755 --- a/tests/generic/236 +++ b/tests/generic/236 @@ -43,6 +43,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic # only Linux supports fallocate _supported_os Linux +_require_test rm -f $TEST_DIR/ouch* diff --git a/tests/generic/237 b/tests/generic/237 index 6a61ec891..ff11ed35a 100755 --- a/tests/generic/237 +++ b/tests/generic/237 @@ -49,6 +49,7 @@ _cleanup() _supported_fs generic # only Linux supports fallocate _supported_os Linux +_require_test [ -x $runas ] || _notrun "$runas executable not found" diff --git a/tests/generic/239 b/tests/generic/239 index bf39953f0..4f764c223 100755 --- a/tests/generic/239 +++ b/tests/generic/239 @@ -44,6 +44,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _require_sparse_files _require_aiodio aio-dio-hole-filling-race diff --git a/tests/generic/240 b/tests/generic/240 index 74dbba67a..c063dd48c 100755 --- a/tests/generic/240 +++ b/tests/generic/240 @@ -50,6 +50,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _require_sparse_files _require_aiodio aiodio_sparse2 diff --git a/tests/generic/241 b/tests/generic/241 index 7c3f6e8ef..b45f5e96a 100755 --- a/tests/generic/241 +++ b/tests/generic/241 @@ -42,6 +42,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test [ "$DBENCH_PROG" = "" ] && _notrun "dbench not found" diff --git a/tests/generic/245 b/tests/generic/245 index 9b87fbbf0..4034d0493 100755 --- a/tests/generic/245 +++ b/tests/generic/245 @@ -39,6 +39,7 @@ status=1 # failure is the default! # real QA test starts here _supported_fs generic _supported_os Linux +_require_test dir=$TEST_DIR/test-mv diff --git a/tests/generic/246 b/tests/generic/246 index dd809fb20..4184cfc63 100755 --- a/tests/generic/246 +++ b/tests/generic/246 @@ -40,6 +40,7 @@ status=1 # failure is the default! # real QA test starts here _supported_fs generic _supported_os Linux +_require_test file=$TEST_DIR/mmap-writev diff --git a/tests/generic/247 b/tests/generic/247 index 5f16281c3..c8648a2a5 100755 --- a/tests/generic/247 +++ b/tests/generic/247 @@ -46,6 +46,7 @@ _cleanup() # Modify as appropriate. _supported_fs generic _supported_os Linux +_require_test testfile=$TEST_DIR/$seq.$$ diff --git a/tests/generic/248 b/tests/generic/248 index 873313db6..f47d47f71 100755 --- a/tests/generic/248 +++ b/tests/generic/248 @@ -46,6 +46,7 @@ _cleanup() # Modify as appropriate. _supported_fs generic _supported_os Linux +_require_test TESTFILE=$TEST_DIR/test_file TEST_PROG=$here/src/pwrite_mmap_blocked diff --git a/tests/generic/249 b/tests/generic/249 index 306e820dd..d8b4df474 100755 --- a/tests/generic/249 +++ b/tests/generic/249 @@ -44,6 +44,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os Linux +_require_test echo "Feel the serenity." diff --git a/tests/generic/255 b/tests/generic/255 index 8419065ee..14de49ed4 100755 --- a/tests/generic/255 +++ b/tests/generic/255 @@ -46,6 +46,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux +_require_test _require_xfs_io_command "fpunch" _require_xfs_io_command "falloc" _require_xfs_io_command "fiemap" diff --git a/tests/generic/256 b/tests/generic/256 index e6cc7dcff..8ee8aaccc 100755 --- a/tests/generic/256 +++ b/tests/generic/256 @@ -49,6 +49,7 @@ _supported_os Linux _require_xfs_io_command "fpunch" _require_scratch _require_user +_require_test testfile=$TEST_DIR/256.$$ diff --git a/tests/generic/257 b/tests/generic/257 index a9ce73b97..64f210017 100755 --- a/tests/generic/257 +++ b/tests/generic/257 @@ -42,6 +42,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux +_require_test mkdir $TEST_DIR/ttt for n in {1..168}; do diff --git a/tests/generic/258 b/tests/generic/258 index 3aeb5ce0d..b9b5cf9bf 100755 --- a/tests/generic/258 +++ b/tests/generic/258 @@ -45,6 +45,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux +_require_test TESTFILE=$TEST_DIR/timestamp-test.txt diff --git a/tests/generic/263 b/tests/generic/263 index 6ecb74ddf..6ee21654f 100755 --- a/tests/generic/263 +++ b/tests/generic/263 @@ -38,6 +38,7 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux +_require_test rm -f $seqres.full diff --git a/tests/generic/285 b/tests/generic/285 index ac34d34e7..d6275b5fd 100755 --- a/tests/generic/285 +++ b/tests/generic/285 @@ -40,6 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux +_require_test _require_seek_data_hole BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile diff --git a/tests/generic/286 b/tests/generic/286 index f4fe39a83..94c22c62c 100755 --- a/tests/generic/286 +++ b/tests/generic/286 @@ -38,6 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux +_require_test _require_seek_data_hole src=$TEST_DIR/seek_copy_testfile diff --git a/tests/generic/306 b/tests/generic/306 index 04d28dff5..64d8cded1 100755 --- a/tests/generic/306 +++ b/tests/generic/306 @@ -47,6 +47,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_test DEVNULL=$SCRATCH_MNT/devnull DEVZERO=$SCRATCH_MNT/devzero diff --git a/tests/generic/308 b/tests/generic/308 index 8037c085f..418dbf27a 100755 --- a/tests/generic/308 +++ b/tests/generic/308 @@ -44,6 +44,7 @@ testfile=$TEST_DIR/testfile.$seq # real QA test starts here _supported_fs generic _supported_os Linux +_require_test rm -f $seqres.full echo "Silence is golden" diff --git a/tests/generic/309 b/tests/generic/309 index cbaf3071e..c6b89db99 100755 --- a/tests/generic/309 +++ b/tests/generic/309 @@ -46,6 +46,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test echo "Silence is golden" diff --git a/tests/generic/310 b/tests/generic/310 index 26d2d4a7e..9d46e87ec 100755 --- a/tests/generic/310 +++ b/tests/generic/310 @@ -57,6 +57,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux +_require_test dmesg -c > /dev/null diff --git a/tests/generic/313 b/tests/generic/313 index 623c777f6..a90692609 100755 --- a/tests/generic/313 +++ b/tests/generic/313 @@ -45,6 +45,7 @@ _cleanup() # real QA test starts here _supported_fs generic _supported_os IRIX Linux +_require_test testfile=$TEST_DIR/testfile.$seq diff --git a/tests/generic/314 b/tests/generic/314 index f430b8254..294fb234a 100755 --- a/tests/generic/314 +++ b/tests/generic/314 @@ -43,6 +43,7 @@ _cleanup() # real QA test starts here _supported_fs generic +_require_test _require_acls _require_user _need_to_be_root diff --git a/tests/generic/315 b/tests/generic/315 index 9c01b5efd..62fdc0116 100755 --- a/tests/generic/315 +++ b/tests/generic/315 @@ -48,6 +48,7 @@ _cleanup() # Modify as appropriate. _supported_fs generic _supported_os Linux +_require_test rm -f $seqres.full diff --git a/tests/generic/316 b/tests/generic/316 index 29a4331f9..0ccf01f5e 100755 --- a/tests/generic/316 +++ b/tests/generic/316 @@ -45,6 +45,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _require_xfs_io_command "fpunch" _require_xfs_io_command "fiemap" diff --git a/tests/generic/323 b/tests/generic/323 index b84cfc85a..16b811c7f 100644 --- a/tests/generic/323 +++ b/tests/generic/323 @@ -47,6 +47,7 @@ _cleanup() _supported_fs generic _supported_os Linux +_require_test _require_aiodio aio-last-ref-held-by-io diff --git a/tests/shared/051 b/tests/shared/051 index 2b61f45bd..44dfd64ca 100755 --- a/tests/shared/051 +++ b/tests/shared/051 @@ -70,6 +70,7 @@ _cleanup() # real QA test starts here _supported_fs xfs udf _supported_os Linux +_require_test [ -x $runas ] || _notrun "$runas executable not found" diff --git a/tests/shared/298 b/tests/shared/298 index 8211da39d..372fd026d 100755 --- a/tests/shared/298 +++ b/tests/shared/298 @@ -32,6 +32,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs ext4 xfs _supported_os Linux +_require_test _require_loop _require_fstrim _require_xfs_io_command "fiemap" diff --git a/tests/xfs/003 b/tests/xfs/003 index 228dd179f..2eed40fbf 100755 --- a/tests/xfs/003 +++ b/tests/xfs/003 @@ -40,6 +40,7 @@ _need_to_be_root # real QA test starts here _supported_fs xfs _supported_os IRIX Linux +_require_test [ -f core ] && rm -f core [ -f core ] && echo "Warning: can't nuke existing core file!" diff --git a/tests/xfs/008 b/tests/xfs/008 index 56be923b8..9f22087dd 100755 --- a/tests/xfs/008 +++ b/tests/xfs/008 @@ -87,6 +87,7 @@ _do_test() # real QA test starts here _supported_fs xfs _supported_os IRIX Linux +_require_test rm -f $seqres.full diff --git a/tests/xfs/012 b/tests/xfs/012 index 41272226c..7b9a54d29 100755 --- a/tests/xfs/012 +++ b/tests/xfs/012 @@ -104,6 +104,7 @@ _do_test() # real QA test starts here _supported_fs xfs _supported_os IRIX Linux +_require_test rm -f $seqres.full diff --git a/tests/xfs/045 b/tests/xfs/045 index 84ca802b2..31516b35d 100755 --- a/tests/xfs/045 +++ b/tests/xfs/045 @@ -44,6 +44,7 @@ _get_existing_uuid() _supported_fs xfs _supported_os Linux +_require_test _require_scratch echo "*** get uuid" diff --git a/tests/xfs/048 b/tests/xfs/048 index f9fb16fcd..3dd685f06 100755 --- a/tests/xfs/048 +++ b/tests/xfs/048 @@ -44,6 +44,7 @@ _cleanup() # real QA test starts here _supported_fs xfs _supported_os IRIX Linux +_require_test src/fault $TEST_DIR || exit diff --git a/tests/xfs/066 b/tests/xfs/066 index db292497d..736439b4f 100755 --- a/tests/xfs/066 +++ b/tests/xfs/066 @@ -45,6 +45,7 @@ _cleanup() # real QA test starts here _supported_fs xfs _supported_os IRIX Linux +_require_test _my_stat_filter() { diff --git a/tests/xfs/073 b/tests/xfs/073 index ca553ae6f..f9557719c 100755 --- a/tests/xfs/073 +++ b/tests/xfs/073 @@ -126,6 +126,7 @@ _verify_copy() # real QA test starts here _supported_fs xfs _supported_os Linux +_require_test [ "$USE_EXTERNAL" = yes ] && _notrun "Cannot xfs_copy with external devices" [ -n "$XFS_COPY_PROG" ] || _notrun "xfs_copy binary not yet installed" diff --git a/tests/xfs/078 b/tests/xfs/078 index e04c6cccb..f859efcff 100755 --- a/tests/xfs/078 +++ b/tests/xfs/078 @@ -48,6 +48,7 @@ _cleanup() _supported_fs xfs _supported_os Linux +_require_test # Must have loop device _require_loop diff --git a/tests/xfs/080 b/tests/xfs/080 index 59c6104c2..e0f5b1b9f 100755 --- a/tests/xfs/080 +++ b/tests/xfs/080 @@ -46,6 +46,7 @@ _supported_fs xfs # Apparently should be able to work on IRIX, # but not at the moment. _supported_os Linux +_require_test quiet=-q clean=-c diff --git a/tests/xfs/084 b/tests/xfs/084 index 0d17cf354..7aa193b51 100755 --- a/tests/xfs/084 +++ b/tests/xfs/084 @@ -51,6 +51,7 @@ pgsize=`$here/src/feature -s` # real QA test starts here _supported_fs xfs _supported_os IRIX Linux +_require_test if [ $HOSTOS == "IRIX" ]; then if uname -R | grep -iq debug; then diff --git a/tests/xfs/134 b/tests/xfs/134 index 6f092f2ca..adafa3967 100755 --- a/tests/xfs/134 +++ b/tests/xfs/134 @@ -48,6 +48,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs xfs _supported_os Linux IRIX +_require_test _require_xfs_quota dir=$SCRATCH_MNT/project diff --git a/tests/xfs/164 b/tests/xfs/164 index 33a038fcc..404c2080a 100755 --- a/tests/xfs/164 +++ b/tests/xfs/164 @@ -67,6 +67,7 @@ _filter_bmap() # Modify as appropriate. _supported_fs xfs _supported_os IRIX Linux +_require_test testfile=$TEST_DIR/file.$seq diff --git a/tests/xfs/165 b/tests/xfs/165 index bc882daa7..4080a88d8 100755 --- a/tests/xfs/165 +++ b/tests/xfs/165 @@ -64,6 +64,7 @@ _filter_bmap() # Modify as appropriate. _supported_fs xfs _supported_os IRIX Linux +_require_test # io tests testfile=$TEST_DIR/file.$seq diff --git a/tests/xfs/195 b/tests/xfs/195 index d67ce9fba..6abddbcae 100755 --- a/tests/xfs/195 +++ b/tests/xfs/195 @@ -63,6 +63,7 @@ _do_dump() _supported_fs xfs _supported_os Linux +_require_test _require_user echo "Preparing subtree" diff --git a/tests/xfs/197 b/tests/xfs/197 index bc2de9def..7706e03a6 100755 --- a/tests/xfs/197 +++ b/tests/xfs/197 @@ -48,6 +48,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs xfs _supported_os Linux +_require_test bitsperlong=`src/feature -w` if [ "$bitsperlong" -ne 32 ]; then diff --git a/tests/xfs/206 b/tests/xfs/206 index f739597fb..f6dcca6c6 100755 --- a/tests/xfs/206 +++ b/tests/xfs/206 @@ -53,6 +53,7 @@ _cleanup() # Modify as appropriate. _supported_fs xfs _supported_os IRIX Linux +_require_test _require_loop bitsperlong=`src/feature -w` diff --git a/tests/xfs/222 b/tests/xfs/222 index 0e5aaf6ac..77ecfc614 100755 --- a/tests/xfs/222 +++ b/tests/xfs/222 @@ -47,6 +47,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs xfs _supported_os Linux +_require_test [ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found" diff --git a/tests/xfs/229 b/tests/xfs/229 index 3e0242101..c057677c5 100755 --- a/tests/xfs/229 +++ b/tests/xfs/229 @@ -49,6 +49,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs xfs _supported_os Linux +_require_test TDIR="${TEST_DIR}/t_holes" NFILES="10" diff --git a/tests/xfs/242 b/tests/xfs/242 index 24a572a06..304e69f6f 100755 --- a/tests/xfs/242 +++ b/tests/xfs/242 @@ -45,6 +45,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs xfs _supported_os Linux +_require_test _test_io_zero() { diff --git a/tests/xfs/250 b/tests/xfs/250 index 3b67c3fcb..c1622a4b4 100755 --- a/tests/xfs/250 +++ b/tests/xfs/250 @@ -45,6 +45,7 @@ _cleanup() # real QA test starts here _supported_fs xfs _supported_os Linux +_require_test _require_loop LOOP_DEV=$TEST_DIR/$seq.fs diff --git a/tests/xfs/252 b/tests/xfs/252 index b2c4c089d..ddafda6f6 100755 --- a/tests/xfs/252 +++ b/tests/xfs/252 @@ -46,6 +46,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 _supported_fs xfs _supported_os Linux +_require_test _require_xfs_io_command "fpunch" _require_xfs_io_command "fiemap" diff --git a/tests/xfs/253 b/tests/xfs/253 index 411979428..91eb0417b 100755 --- a/tests/xfs/253 +++ b/tests/xfs/253 @@ -53,6 +53,7 @@ _cleanup() . ./common/rc . ./common/filter +_require_test _require_scratch # real QA test starts here diff --git a/tests/xfs/259 b/tests/xfs/259 index 8241d94db..6587a653b 100755 --- a/tests/xfs/259 +++ b/tests/xfs/259 @@ -41,6 +41,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs xfs _supported_os Linux +_require_test _require_loop _require_math diff --git a/tests/xfs/290 b/tests/xfs/290 index 55322ec96..adc398f0c 100755 --- a/tests/xfs/290 +++ b/tests/xfs/290 @@ -46,6 +46,7 @@ trap "exit \$status" 0 1 2 3 15 _supported_fs xfs _supported_os Linux +_require_test _require_xfs_io_command "zero" testfile=$TEST_DIR/290.$$ diff --git a/tests/xfs/292 b/tests/xfs/292 index b4a392f0f..a476d91a1 100755 --- a/tests/xfs/292 +++ b/tests/xfs/292 @@ -46,6 +46,7 @@ _cleanup() # Modify as appropriate. _supported_fs xfs _supported_os IRIX Linux +_require_test fsfile=$TEST_DIR/fsfile.$seq