fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 147
index 5cc363aab11d58410d7b8f18fd50a7582759142b..e21fdd330cb35314dcf2837d14465378fd57cd63 100755 (executable)
@@ -8,23 +8,10 @@
 # This is a regression test for fe341eb151ec ("xfs: ensure that fpunch,
 # fcollapse, and finsert operations are aligned to rt extent size")
 
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick rw realtime collapse insert unshare zero prealloc
 
-here=`pwd`
-tmp=/tmp/$$
-status=1    # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-_cleanup()
-{
-       cd /
-       rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -37,8 +24,6 @@ _require_xfs_io_command "funshare"
 _require_xfs_io_command "fzero"
 _require_xfs_io_command "falloc"
 
-rm -f $seqres.full
-
 # Format filesystem with a 256k realtime extent size
 _scratch_mkfs -r extsize=256k > $seqres.full
 _scratch_mount >> $seqres.full