fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 432
index b590d9a3b26c1fe13987ac758b0a449044f457b3..402c5f231a7c58de2e9098436fa6078417a12551 100755 (executable)
@@ -9,23 +9,10 @@
 #   - Use copy to swap data at beginning and end
 #   - Use copy to swap data in the middle
 #   - Use copy to simultaneously overwrite and append to destination 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
-
-_cleanup()
-{
-       cd /
-       rm -rf $tmp.*
-}
+. ./common/preamble
+_begin_fstest auto quick copy_range
 
 # get standard environment
-. common/rc
 . common/filter
 
 # real QA test starts here
@@ -37,7 +24,6 @@ _require_test
 testdir=$TEST_DIR/test-$seq
 rm -rf $testdir
 mkdir $testdir
-rm -f $seqres.full
 
 echo "Create the original file and then copy"
 $XFS_IO_PROG -f -c 'pwrite -S 0x61 0    1000' $testdir/file >> $seqres.full 2>&1