844c8ec383
Change-Id: I93e7b9d355870b0528a0ac3382fba1a10a558d45 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1718 Community-CI: Mellanox Build Bot Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
32 lines
1.0 KiB
Bash
Executable File
32 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir=$(readlink -f $testdir/../..)
|
|
source $rootdir/test/common/autotest_common.sh
|
|
source $testdir/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
|
|
use_append=$2
|
|
rpc_py=$rootdir/scripts/rpc.py
|
|
|
|
for ((i = 0; i < ${#tests[@]}; i++)); do
|
|
timing_enter "${tests[$i]}"
|
|
"$rootdir/test/bdev/bdevperf/bdevperf" -z -T ftl0 ${tests[$i]} --json <(gen_ftl_nvme_conf) &
|
|
bdevperf_pid=$!
|
|
|
|
trap 'killprocess $bdevperf_pid; exit 1' SIGINT SIGTERM EXIT
|
|
waitforlisten $bdevperf_pid
|
|
$rpc_py bdev_nvme_attach_controller -b nvme0 -a $device -t pcie
|
|
$rpc_py bdev_ocssd_create -c nvme0 -b nvme0n1
|
|
$rpc_py bdev_ftl_create -b ftl0 -d nvme0n1 $use_append
|
|
|
|
$rootdir/test/bdev/bdevperf/bdevperf.py perform_tests
|
|
$rpc_py delete_ftl_bdev -b ftl0
|
|
$rpc_py bdev_ocssd_delete nvme0n1
|
|
$rpc_py bdev_nvme_detach_controller nvme0
|
|
killprocess $bdevperf_pid
|
|
trap - SIGINT SIGTERM EXIT
|
|
timing_exit "${tests[$i]}"
|
|
done
|