fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 013
index 5e03ed4a4b4ba418d5fc76b78d59dffa7847a0ad..1335b8cb321ded48cbf310728407ad25ad87d387 100755 (executable)
 # userspace doesn't get an error when reading the file back so we have to grok
 # dmesg to see if there was a csum error.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick balance
 
-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
@@ -35,8 +21,6 @@ _supported_fs btrfs
 _require_scratch
 _require_xfs_io_command "falloc"
 
-rm -f $seqres.full
-
 _scratch_mkfs > /dev/null 2>&1
 _scratch_mount