fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 227
index 9d65730ad5bcc2452537238f6fc41ba3b17471b7..cd927dc4b8230af8f997d34b6ab495f5c1befc67 100755 (executable)
 # the indoes to be swapped. It also is good for validating fsr's attribute fork
 # generation code.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto fsr
 
-here=`pwd`
-tmp=/tmp/$$
-status=1       # failure is the default!
-
-_cleanup()
-{
-    rm -f $tmp.*
-}
-
-trap "_cleanup ; exit \$status" 0 1 2 3 15
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
 _supported_fs xfs
 _require_scratch
 
-rm -f $seqres.full
-
 [ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found"
 
 # create freespace holes of 1-3 blocks in length