test/spdkcli: test lvol_stores show_details method
Add a match test for lvol_stores show_details methods. This method is one of few ones that left untested in spdkcli. Change-Id: I86197dace4cb40b108f61a138be01f095a38e97a Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/461558 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
parent
218f53b115
commit
ed486dc4ef
9
test/spdkcli/match_files/spdkcli_details_lvs.test.match
Normal file
9
test/spdkcli/match_files/spdkcli_details_lvs.test.match
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"base_bdev": "Malloc0",
|
||||
"block_size": 4096,
|
||||
"cluster_size": 4194304,
|
||||
"free_clusters": 1,
|
||||
"name": "lvs0",
|
||||
"total_data_clusters": 9,
|
||||
"uuid": "$(S)"
|
||||
}
|
@ -46,6 +46,12 @@ $spdkcli_job "'/lvol_stores create lvs0 Malloc0' 'lvs0' True
|
||||
"
|
||||
timing_exit spdkcli_create_lvols_config
|
||||
|
||||
timing_enter spdkcli_check_match_details
|
||||
$rootdir/scripts/spdkcli.py /lvol_stores/lvs0 show_details | jq -r -S '.' > $testdir/match_files/spdkcli_details_lvs.test
|
||||
$rootdir/test/app/match/match $testdir/match_files/spdkcli_details_lvs.test.match
|
||||
rm -f $testdir/match_files/spdkcli_details_lvs.test
|
||||
timing_exit spdkcli_check_match_details
|
||||
|
||||
timing_enter spdkcli_create_vhosts_config
|
||||
$spdkcli_job "'vhost/block create vhost_blk1 Nvme0n1p0' 'Nvme0n1p0' True
|
||||
'vhost/block create vhost_blk2 Nvme0n1p1 0x1 readonly' 'Nvme0n1p1' True
|
||||
|
Loading…
Reference in New Issue
Block a user