test/vmd: enable_vmd RPC test
Added test for enabling VMD with enable_vmd RPC. Change-Id: Ic5eac746409bf2e8dbdf42bda87b223d7bbc2150 Signed-off-by: Wojciech Malikowski <wojciech.malikowski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459950 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
3cbb9690d4
commit
86c7f4be2a
@ -5,6 +5,8 @@ rootdir=$(readlink -f $testdir/../..)
|
|||||||
source $rootdir/scripts/common.sh
|
source $rootdir/scripts/common.sh
|
||||||
source $rootdir/test/common/autotest_common.sh
|
source $rootdir/test/common/autotest_common.sh
|
||||||
|
|
||||||
|
rpc_py=$rootdir/scripts/rpc.py
|
||||||
|
|
||||||
pci_devs=$($rootdir/app/spdk_lspci/spdk_lspci | grep "NVMe disk behind VMD" | awk '{print $1}')
|
pci_devs=$($rootdir/app/spdk_lspci/spdk_lspci | grep "NVMe disk behind VMD" | awk '{print $1}')
|
||||||
|
|
||||||
if [ -z $pci_devs]; then
|
if [ -z $pci_devs]; then
|
||||||
@ -40,4 +42,16 @@ if [ -d /usr/src/fio ]; then
|
|||||||
timing_exit fio_plugin
|
timing_exit fio_plugin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$rootdir/test/app/bdev_svc/bdev_svc --wait-for-rpc & svcpid=$!
|
||||||
|
trap "killprocess $svcpid; exit 1" SIGINT SIGTERM EXIT
|
||||||
|
# Wait until bdev_svc starts
|
||||||
|
waitforlisten $svcpid
|
||||||
|
|
||||||
|
$rpc_py enable_vmd
|
||||||
|
$rpc_py start_subsystem_init
|
||||||
|
|
||||||
|
for bdf in $pci_devs; do
|
||||||
|
$rpc_py construct_nvme_bdev -b NVMe_$bdf -t PCIe -a $bdf
|
||||||
|
done
|
||||||
|
|
||||||
timing_exit vmd
|
timing_exit vmd
|
||||||
|
Loading…
Reference in New Issue
Block a user