test/spdkcli: test vhost_ctrl show_details method
Add a match test for vhost_ctrl show_details method. In spdkcli source the equivalent function is `UIVhostCtrl.show_details`. This method is one of few that left untested in spdkcli. This patch is related to trello task: https://trello.com/c/CHOOxcGj/151-spdkcli-extend-test-coverage Change-Id: I4f13f863bdc815430c5fb2b67b12056f01201f8c Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/462860 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
56c696a9a7
commit
b2caa1f0eb
@ -0,0 +1,22 @@
|
||||
{
|
||||
"backend_specific": {
|
||||
"scsi": [
|
||||
{
|
||||
"id": 0,
|
||||
"luns": [
|
||||
{
|
||||
"bdev_name": "Malloc2",
|
||||
"id": 0
|
||||
}
|
||||
],
|
||||
"scsi_dev_num": 0,
|
||||
"target_name": "Target 0"
|
||||
}
|
||||
]
|
||||
},
|
||||
"cpumask": "0x3",
|
||||
"ctrlr": "vhost_scsi1",
|
||||
"delay_base_us": 20,
|
||||
"iops_threshold": 1000000,
|
||||
"socket": "$(S)/vhost_scsi1"
|
||||
}
|
@ -80,6 +80,10 @@ timing_enter spdkcli_check_match_details
|
||||
$rootdir/scripts/spdkcli.py bdevs/split_disk/Nvme0n1p0 show_details | jq -r -S '.' > $testdir/match_files/spdkcli_details_vhost.test
|
||||
$rootdir/test/app/match/match $testdir/match_files/spdkcli_details_vhost.test.match
|
||||
rm -f $testdir/match_files/spdkcli_details_vhost.test
|
||||
|
||||
$rootdir/scripts/spdkcli.py vhost/scsi/vhost_scsi1 show_details | jq -r -S '.' > $testdir/match_files/spdkcli_details_vhost_ctrl.test
|
||||
$rootdir/test/app/match/match $testdir/match_files/spdkcli_details_vhost_ctrl.test.match
|
||||
rm -f $testdir/match_files/spdkcli_details_vhost_ctrl.test
|
||||
timing_exit spdkcli_check_match_details
|
||||
|
||||
timing_enter spdkcli_clear_config
|
||||
|
Loading…
Reference in New Issue
Block a user