fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 099
index dafc7c4d35f8619b4216e33813460e2f5219e95a..375cc2b97ff8de15117d1af8c626b8c9adf06e26 100755 (executable)
@@ -7,23 +7,10 @@
 # Check for qgroup reserved space leaks caused by re-writing dirty ranges
 # This bug has been present in btrfs qgroup for a long time
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick qgroup limit
 
-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_btrfs_qgroup_report
 BLOCKSIZE=$(( 2 * 1024 * 1024 )) # 2M block size
 FILESIZE=$(( 128 * 1024 * 1024 )) # 128M file size
 
-rm -f $seqres.full
-
 _scratch_mkfs >> $seqres.full 2>&1
 _scratch_mount
 _require_fs_space $SCRATCH_MNT $(($FILESIZE * 2 / 1024))