fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 011
index 7de9ff8d297de7f5ecd83a83214175893d26b48a..d6e9099e961a79d4a033a472f7ad1ebb3e11554e 100755 (executable)
@@ -8,17 +8,12 @@
 # include a variety of fs operations, freeze the filesystem and verify that
 # there are no oustanding reservations against the log.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto freeze log metadata quick
 
-here=`pwd`
-tmp=/tmp/$$
-status=1       # failure is the default!
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 
+# Override the default cleanup function.
 _cleanup()
 {
        $KILLALL_PROG -9 fsstress 2>/dev/null
@@ -27,7 +22,6 @@ _cleanup()
        _scratch_unmount 2>/dev/null
        rm -f $tmp.*
 }
-trap "_cleanup; exit \$status" 0 1 2 3 15
 
 # Use the information exported by XFS to sysfs to determine whether the log has
 # active reservations after a filesystem freeze.
@@ -71,8 +65,6 @@ _require_freeze
 _require_xfs_sysfs $(_short_dev $TEST_DEV)/log
 _require_command "$KILLALL_PROG" killall
 
-rm -f $seqres.full
-
 echo "Silence is golden."
 
 _scratch_mkfs_xfs >> $seqres.full 2>&1