fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 012
index fca419b8e7142f2071eda75a818cd28e0ba8e967..5ebc9058127887153e604319c6967d6b7e5d156d 100755 (executable)
@@ -6,15 +6,12 @@
 #
 # holes
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest rw auto quick
 
-here=`pwd`
-tmp=/tmp/$$
 status=0       # success is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
 
+# Override the default cleanup function.
 _cleanup()
 {
     cd /
@@ -27,8 +24,7 @@ _filesize()
     ls -l $1 | $AWK_PROG '{print "    filesize = " $5}'
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 _do_test()
@@ -89,8 +85,6 @@ _do_test()
 _supported_fs xfs
 _require_test
 
-rm -f $seqres.full
-
 # small & fairly dense
 _do_test 1 "-l 40960000 -b 40960 -i 10 -c 1" 100