#! /bin/bash # SPDX-License-Identifier: GPL-2.0 # # perf/001 Test # # Buffered random write performance test. # . ./common/preamble _begin_fstest auto fio_config=$tmp.fio fio_results=$tmp.json # Import common functions. . ./common/filter . ./common/perf # real QA test starts here _supported_fs generic _require_scratch _require_block_device $SCRATCH_DEV _require_fio_results _size=$((16 * $LOAD_FACTOR)) cat >$fio_config <> $seqres.full 2>&1 _scratch_mount _require_fs_space $SCRATCH_MNT $_size cat $fio_config >> $seqres.full $FIO_PROG --output-format=json --output=$fio_results $fio_config _scratch_unmount cat $fio_results >> $seqres.full _fio_results_compare $seq $fio_results echo "Silence is golden" status=0; exit