test: Add iscsi tgt hotplug test in bdev layer.
Change-Id: Ib45cfc3431189cd4c5b829c9b1396c4732adb40e Signed-off-by: Cunyin Chang <cunyin.chang@intel.com> Reviewed-on: https://review.gerrithub.io/386361 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
5fa2274ccb
commit
9124d31bb1
@ -109,6 +109,29 @@ if [ $RUN_NIGHTLY -eq 1 ]; then
|
||||
running_config
|
||||
fi
|
||||
|
||||
# Start hotplug test case.
|
||||
$fio_py 1048576 128 rw 10 &
|
||||
fio_pid=$!
|
||||
|
||||
sleep 3
|
||||
set +e
|
||||
$rpc_py delete_bdev 'Malloc0'
|
||||
|
||||
wait $fio_pid
|
||||
fio_status=$?
|
||||
|
||||
if [ $fio_status -eq 0 ]; then
|
||||
echo "iscsi hotplug test: fio successful - expected failure"
|
||||
iscsicleanup
|
||||
rm -f $testdir/iscsi.conf
|
||||
killprocess $pid
|
||||
exit 1
|
||||
else
|
||||
echo "iscsi hotplug test: fio failed as expected"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
iscsicleanup
|
||||
$rpc_py delete_target_node 'iqn.2016-06.io.spdk:Target3'
|
||||
|
||||
|
@ -32,6 +32,7 @@ run_test ./test/iscsi_tgt/reset/reset.sh
|
||||
run_test ./test/iscsi_tgt/rpc_config/rpc_config.sh
|
||||
run_test ./test/iscsi_tgt/idle_migration/idle_migration.sh
|
||||
run_test ./test/iscsi_tgt/lvol/iscsi_lvol.sh
|
||||
run_test ./test/iscsi_tgt/fio/fio.sh
|
||||
|
||||
if [ $SPDK_TEST_NVML -eq 1 ]; then
|
||||
run_test ./test/iscsi_tgt/pmem/iscsi_pmem.sh 4096 10
|
||||
@ -58,5 +59,4 @@ kill_stub
|
||||
run_test ./test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh 0
|
||||
#Test configure remote NVMe device from conf file
|
||||
run_test ./test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh 1
|
||||
run_test ./test/iscsi_tgt/fio/fio.sh
|
||||
timing_exit iscsi_tgt
|
||||
|
Loading…
Reference in New Issue
Block a user