fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 008
index c488954e6c3a5d1aa159aa09f2b5cacc5983c59f..a53f6c9296f525b1acf5dccd6c3a4e44021b8cdd 100755 (executable)
@@ -6,16 +6,13 @@
 #
 # randholes test
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest rw ioctl auto quick
 
-here=`pwd`
-tmp=/tmp/$$
 status=0       # success is the default!
 pgsize=`$here/src/feature -s`
-trap "_cleanup; exit \$status" 0 1 2 3 15
 
+# Override the default cleanup function.
 _cleanup()
 {
     rm -f $tmp.*
@@ -28,8 +25,7 @@ _filter()
        -e "s/-l .* -c/-l FSIZE -c/g"
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 _do_test()
@@ -72,8 +68,6 @@ _do_test()
 _supported_fs xfs
 _require_test
 
-rm -f $seqres.full
-
 # Note on special numbers here.
 #
 # We are trying to create roughly 50 or 100 holes in a file