fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 312
index 1d3d8e4f4a46ff64e63479cdb567f90ce6cdbfe1..1926deb836ed32c67dd1b32ede636dc789d6498e 100755 (executable)
@@ -9,23 +9,10 @@
 # Regression test for commit
 # 29ae07b ext4: Fix overflow caused by missing cast in ext4_fallocate()
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick prealloc enospc
 
-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
@@ -36,7 +23,6 @@ _require_scratch
 # 5G in byte
 fssize=$((2**30 * 5))
 
-rm -f $seqres.full
 _scratch_mkfs_sized $fssize >>$seqres.full 2>&1
 _scratch_mount >>$seqres.full 2>&1