fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 238
index d96c0588951bf17c812e8850754d6fdd7ac89339..410dbc0e176c8f8b5a785048b7dc1944475a634b 100755 (executable)
 # This test is dependent on the system page size, so we cannot use md5 in
 # the golden output; we can only compare to a check file.
 #
-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
 
@@ -35,8 +29,6 @@ _require_scratch_reflink
 _require_xfs_io_command "falloc"
 _require_odirect
 
-rm -f $seqres.full
-
 pagesz=$(getconf PAGE_SIZE)
 blksz=$((pagesz / 4))
 
@@ -76,8 +68,6 @@ runtest() {
                ;;
        esac
 
-
-
        case $b4 in
        "regular")
                _pwrite_byte 0x61 $((blksz * 3)) $blksz $dir/file2 >> $seqres.full