test/vfio-user: enable NVMe compliance tests with vfio-user
Also add "-g" parameter to use single segment file. Change-Id: If12c75ccdf1e6074951819fb94cc85a982f9d843 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9677 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> 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
232ed2a3d3
commit
2dc55b19e8
@ -36,7 +36,7 @@ $rpc_py nvmf_create_subsystem $nqn -a -s spdk
|
||||
$rpc_py nvmf_subsystem_add_ns $nqn malloc0
|
||||
$rpc_py nvmf_subsystem_add_listener $nqn -t $TEST_TRANSPORT -a $traddr -s 0
|
||||
|
||||
$testdir/nvme_compliance -r "trtype:$TEST_TRANSPORT traddr:$traddr subnqn:$nqn"
|
||||
$testdir/nvme_compliance -g -r "trtype:$TEST_TRANSPORT traddr:$traddr subnqn:$nqn"
|
||||
|
||||
killprocess $nvmfpid
|
||||
|
||||
|
@ -118,8 +118,11 @@ parse_args(int argc, char **argv, struct spdk_env_opts *opts)
|
||||
{
|
||||
char op;
|
||||
|
||||
while ((op = getopt(argc, argv, "r:")) != -1) {
|
||||
while ((op = getopt(argc, argv, "gr:")) != -1) {
|
||||
switch (op) {
|
||||
case 'g':
|
||||
opts->hugepage_single_segments = true;
|
||||
break;
|
||||
case 'r':
|
||||
g_trid_str = optarg;
|
||||
break;
|
||||
|
@ -45,6 +45,7 @@ run_test "nvmf_delete_subsystem" test/nvmf/target/delete_subsystem.sh "${TEST_AR
|
||||
|
||||
if [ $SPDK_TEST_VFIOUSER -eq 1 ]; then
|
||||
run_test "nvmf_vfio_user" test/nvmf/target/nvmf_vfio_user.sh "${TEST_ARGS[@]}"
|
||||
run_test "nvmf_vfio_user_nvme_compliance" test/nvme/compliance/compliance.sh "${TEST_ARGS[@]}"
|
||||
fi
|
||||
|
||||
if ! check_ip_is_soft_roce $NVMF_FIRST_TARGET_IP; then
|
||||
|
Loading…
Reference in New Issue
Block a user