fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 152
index f87e5fd4c9749bd82175d9e726fae437a51e411b..8ee353c57cb9839f00299c844c6ce2afd19e41ed 100755 (executable)
 #   - Punch all blocks of the copies
 #   - Compare fs block usage to (2), (1), and (0)
 #
-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 punch
 
+# 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
 
@@ -38,8 +32,6 @@ _require_test_reflink
 _require_cp_reflink
 _require_xfs_io_command "fpunch"
 
-rm -f $seqres.full
-
 testdir=$TEST_DIR/test-$seq
 rm -rf $testdir
 mkdir $testdir