fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 150
index cf21b5c0cafe35c3ec444ea0e38615ccd9e5fe69..2830dd26688e0a9c403e2eaa5878d10a14a36dde 100755 (executable)
@@ -9,23 +9,17 @@
 #   - Create some reflink copies
 #   - Compare fs block usage to before
 #
-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 -rf $tmp.* $testdir
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/reflink
 
@@ -33,8 +27,6 @@ _cleanup()
 _require_test_reflink
 _require_cp_reflink
 
-rm -f $seqres.full
-
 testdir=$TEST_DIR/test-$seq
 rm -rf $testdir
 mkdir $testdir