fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 578
index e7cd7e687989209c94f820f0fd40b6e3ea1bb7e5..01929a280f8c3406ee4e0120fc638ed3bc6078f3 100755 (executable)
@@ -6,23 +6,17 @@
 #
 # Make sure that we can handle multiple mmap writers to the same 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 rw 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 @@ _require_command "$FILEFRAG_PROG" filefrag
 _require_test_reflink
 _require_cp_reflink
 
-rm -f $seqres.full
-
 compare() {
        for i in $(seq 1 8); do
                md5sum $testdir/file$i | _filter_test_dir
@@ -80,7 +72,6 @@ $here/src/mmap-write-concurrent $len \
                $((filesz - 777)) $testdir/file3 \
                $(((blksz * 3) - 168)) $testdir/file4 \
 
-
 echo "Compare files before remount" | tee -a $seqres.full
 compare
 _test_cycle_mount