fstests: move test group info to test files
[xfstests-dev.git] / tests / ext4 / 004
index 9adfc7e78d4d6fb82ee0efa5da079eff7adeb2e0..0c2ad8979536c8390c5dd463a113c0a97a55b50e 100755 (executable)
@@ -6,15 +6,10 @@
 #
 # Test "dump | restore"(as opposed to a tape)
 #
-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 dump
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -23,8 +18,7 @@ _cleanup()
        rm -rf $restore_dir
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 dump_dir=$SCRATCH_MNT/dump_restore_dir
@@ -58,7 +52,6 @@ _require_scratch
 _require_command "$DUMP_PROG" dump
 _require_command "$RESTORE_PROG" restore
 
-rm -f $seqres.full
 echo "Silence is golden"
 
 _scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1