diff --git a/test/ftl/bdevperf.sh b/test/ftl/bdevperf.sh new file mode 100755 index 000000000..2424d5546 --- /dev/null +++ b/test/ftl/bdevperf.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +set -e + +testdir=$(readlink -f $(dirname $0)) +rootdir=$(readlink -f $testdir/../..) + +source $rootdir/test/common/autotest_common.sh + +tests=('-q 1 -w randwrite -t 4 -o 69632' '-q 128 -w randwrite -t 4 -o 4096' '-q 128 -w verify -t 4 -o 4096') +device=$1 +ftl_bdev_conf=$testdir/config/ftl.conf + +$rootdir/scripts/gen_ftl.sh -a $device -n nvme0 -l 0-3 > $ftl_bdev_conf + +for (( i=0; i<${#tests[@]}; i++ )) do + timing_enter "${tests[$i]}" + $rootdir/test/bdev/bdevperf/bdevperf -c $ftl_bdev_conf ${tests[$i]} + timing_exit "${tests[$i]}" +done + +report_test_completion ftl_bdevperf diff --git a/test/ftl/ftl.sh b/test/ftl/ftl.sh index 21083bdd2..f6399e858 100755 --- a/test/ftl/ftl.sh +++ b/test/ftl/ftl.sh @@ -31,11 +31,11 @@ trap "at_ftl_exit" SIGINT SIGTERM EXIT PCI_WHITELIST="$device" PCI_BLACKLIST="" DRIVER_OVERRIDE="" ./scripts/setup.sh timing_enter ftl -timing_enter fio +timing_enter bdevperf -run_test suite $testdir/fio.sh $device basic +run_test suite $testdir/bdevperf.sh $device -timing_exit fio +timing_exit bdevperf timing_enter restore run_test suite $testdir/restore.sh $device @@ -54,7 +54,7 @@ if [ $SPDK_TEST_FTL_EXTENDED -eq 1 ]; then trap - SIGINT SIGTERM EXIT timing_enter fio_extended - run_test suite $testdir/fio.sh $device extended $uuid + run_test suite $testdir/fio.sh extended $device $uuid timing_exit fio_extended fi