test/ftl: Change fio_plugin from basic test to bdevperf
Ftl tests won't pass with fio_plugin when asan is enabled. Change-Id: I6f07f661c19ecab302e291bbd76a7aad964000c7 Signed-off-by: Pawel Niedzwiecki <pawelx.niedzwiecki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447318 (master) Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448716 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
9de25dc80d
commit
d1a00ccd13
22
test/ftl/bdevperf.sh
Executable file
22
test/ftl/bdevperf.sh
Executable file
@ -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
|
@ -30,11 +30,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
|
||||
run_test suite $testdir/bdevperf.sh $device
|
||||
|
||||
timing_exit fio
|
||||
timing_exit bdevperf
|
||||
|
||||
timing_enter restore
|
||||
run_test suite $testdir/restore.sh $device $uuid
|
||||
@ -43,4 +43,4 @@ timing_exit restore
|
||||
timing_exit ftl
|
||||
|
||||
trap - SIGINT SIGTERM EXIT
|
||||
ftl_kill
|
||||
at_ftl_exit
|
||||
|
Loading…
Reference in New Issue
Block a user