# is left with 50 extents and as many holes. Then call collapse range
# on the previously inserted ranges to test merge code of collapse
# range. Also check for data integrity and file system consistency.
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick prealloc collapse insert
-here=`pwd`
-tmp=/tmp/$$
-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
# real QA test starts here
_require_xfs_io_command "finsert"
_require_xfs_io_command "fcollapse"
-rm -f $seqres.full
-
_scratch_mkfs >> $seqres.full 2>&1 || _fail "mkfs failed"
_scratch_mount