fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 568
index c403a82686d523aceb45507b7362b2713a737443..958e5e9448a6925650b54b31874c106a95f34fcc 100755 (executable)
@@ -7,15 +7,10 @@
 # Test that fallocating an unaligned range allocates all blocks
 # touched by that range
 #
-seq=$(basename $0)
-seqres="$RESULT_DIR/$seq"
-echo "QA output created by $seq"
-
-here=$PWD
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick rw prealloc
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -23,8 +18,7 @@ _cleanup()
        rm -f "$TEST_DIR/falloctest-$seq"
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here