fstests: move test group info to test files
[xfstests-dev.git] / tests / overlay / 061
index 54a28c3dc667ec777408a39b56b74fa6330f3446..b80cf5a0074782c15adea0f0f6f3f0d6844927e5 100755 (executable)
 # - process B writes new data to shared mmap
 # - process A reads old data from shared mmap
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest posix copyup
 
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-_cleanup()
-{
-       cd /
-       rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -37,8 +25,6 @@ _supported_fs overlay
 _require_scratch
 _require_xfs_io_command "open"
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 
 # Create our test files.
@@ -48,7 +34,6 @@ echo "This is old news" > $lowerdir/foo
 
 _scratch_mount
 
-
 filter_xfs_io_mmap()
 {
        # filter out these lines: