fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 010
index a9394077dde6cb08aa1d683aa18faa6cbe1ea4e9..16c08b8522eedddb90dab36048450fde1ea670b4 100755 (executable)
@@ -8,26 +8,20 @@
 # corruptions and verify that xfs_repair detects and repairs the filesystem to
 # a consistent state.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick repair
 
-here=`pwd`
-tmp=/tmp/$$
-status=1       # failure is the default!
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/repair
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
        _scratch_unmount 2>/dev/null
        rm -f $tmp.*
 }
-trap "_cleanup; exit \$status" 0 1 2 3 15
 
 _sparse_inode_populate()
 {
@@ -93,8 +87,6 @@ _require_scratch
 _require_xfs_mkfs_finobt
 _require_xfs_finobt
 
-rm -f $seqres.full
-
 _scratch_mkfs_xfs "-m crc=1,finobt=1 -d agcount=2" | _filter_mkfs 2>$seqres.full
 
 # sparsely populate the fs such that we create records with free inodes