fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 517
index e960e4c2709ab1d66655335df3ca133fad213d12..cf3031ed2db4aca4474e0f8e8c8db61ef3860437 100755 (executable)
@@ -8,21 +8,10 @@
 # to the filesystem's block size into the middle of a different file does not
 # corrupt the destination's file data by reflinking the last (eof) block.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-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
+. ./common/preamble
+_begin_fstest auto quick dedupe clone
+
+# Import common functions.
 . ./common/filter
 . ./common/reflink
 
@@ -30,8 +19,6 @@ _cleanup()
 _supported_fs generic
 _require_scratch_dedupe
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _scratch_mount