fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 076
index 5eb2cf729944b35b943c525d88e58bc166c9a19c..eac7410e9595e96920b95e79514513df6a2195ef 100755 (executable)
 # space, allocates inodes to ENOSPC and then verifies that most of the available
 # inodes (.i.e., free space) have been consumed.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto enospc punch
 
-here=`pwd`
-tmp=/tmp/$$
-status=1       # failure is the default!
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
        _scratch_unmount 2>/dev/null
        rm -f $tmp.*
 }
-trap "_cleanup; exit \$status" 0 1 2 3 15
 
 _consume_freesp()
 {
@@ -66,8 +60,6 @@ _require_xfs_io_command "falloc"
 _require_xfs_io_command "fpunch"
 _require_xfs_sparse_inodes
 
-rm -f $seqres.full
-
 _scratch_mkfs "-d size=50m -m crc=1 -i sparse" |
        _filter_mkfs > /dev/null 2> $tmp.mkfs
 . $tmp.mkfs    # for isize