-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/json: Test for vhost subsystem.
Change-Id: I913d378fe3f324043e8e86c1df209ad19680c60b Signed-off-by: Pawel Kaminski <[email protected]> Reviewed-on: https://review.gerrithub.io/410789 Tested-by: SPDK Automated Test System <[email protected]> Reviewed-by: Pawel Wodkowski <[email protected]> Reviewed-by: Shuhei Matsumoto <[email protected]> Reviewed-by: Ben Walker <[email protected]>
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
VHOST_JSON_DIR=$(readlink -f $(dirname $0)) | ||
. $VHOST_JSON_DIR/../../json_config/common.sh | ||
|
||
function test_subsystems() { | ||
run_spdk_tgt | ||
|
||
rpc_py="$spdk_rpc_py" | ||
clear_config_py="$spdk_clear_config_py" | ||
load_nvme | ||
|
||
upload_vhost | ||
test_json_config | ||
$clear_config_py clear_config | ||
|
||
kill_targets | ||
} | ||
|
||
trap 'on_error_exit "${FUNCNAME}" "${LINENO}"' ERR | ||
timing_enter json_config_vhost | ||
|
||
test_subsystems | ||
timing_exit json_config_vhost | ||
report_test_completion json_config_vhost |