fstests: move test group info to test files
[xfstests-dev.git] / tests / perf / 001
index bca68cf37893f3b8c4e0d858d2538d394b4d1a80..5e622b69dd19ee09a1c6b882341ca7785f6c48a4 100755 (executable)
@@ -6,19 +6,13 @@
 #
 # Buffered random write performance test.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto
 
-here=`pwd`
-tmp=/tmp/$$
 fio_config=$tmp.fio
 fio_results=$tmp.json
-status=1       # failure is the default!
-trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/perf
 
@@ -28,8 +22,6 @@ _require_scratch
 _require_block_device $SCRATCH_DEV
 _require_fio_results
 
-rm -f $seqres.full
-
 _size=$((16 * $LOAD_FACTOR))
 cat >$fio_config <<EOF
 [t1]