fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 003
index b2a3db399851f6611688008a43bffc9490fbb966..999aed1425287aeb58cc2395ba8c3b6051f40f58 100755 (executable)
@@ -9,23 +9,10 @@
 # never updated on read-only subvolumes. (Regression test for bug fixed
 # with commit 93fd63c2f001ca6797c6b15b696a484b165b4800)
 #
-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 atime auto quick
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -35,8 +22,6 @@ _require_scratch
 _require_atime
 _require_relatime
 
-rm -f $seqres.full
-
 if [ "$FSTYP" = "exfat" ]; then
        # exfat's timestamp for access_time has double seconds granularity
        access_delay=2.1