fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 115
index 0bdf91d9f4621d02830ea51bdeb9cd7ed55873c8..daaca523723a258ff0ffd0357357f38827472b33 100755 (executable)
@@ -9,23 +9,17 @@
 #   - Move both to a directory
 #   - Delete the original (moved) file, check that the copy still exists.
 #
-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 quick clone
 
+# Override the default cleanup function.
 _cleanup()
 {
     cd /
     rm -f $tmp.* $testdir
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/reflink
 
@@ -36,8 +30,6 @@ _require_xfs_io_command "fiemap"
 _require_cp_reflink
 _require_test
 
-rm -f $seqres.full
-
 testdir1=$TEST_DIR/test-$seq
 rm -rf $testdir1
 mkdir $testdir1